<!-- Modal Edita banner-->
<div class="modal fade" id="modalEditar{{$prod->codigo}}" tabindex="-1" role="dialog" aria-labelledby="modalEditar{{$prod->codigo}}" aria-hidden="true">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
    <form id="FormEditaProd" method="post" action="{{route('admin.updateProd')}}" enctype="multipart/form-data">
      <div class="modal-header text-right">
        <h5 class="text-center">Editar Produto</h5>
      </div>
      <div class="modal-body">
      	<div class="card">
      		<div class="card-body">
    			  	{{ csrf_field() }}
		        	<div class="row">
		        		<input type="hidden" name="id" value="{{$prod->codigo}}" />
			      		<div class="col-3 text-right">
			      		  <label>Descricao</label>
			      		</div>
			      		<div class="col">
			      			<input class="form-control form-control-sm" typ1e="text" name="descricao" value="{{$prod->descricao}}">
			      		</div>
		        	</div>
		        	<div class="row">
			      		<div class="col-3 text-right">
			      		  <label>Descrição Detalhada</label>
			      		</div>
			      		<div class="col">
			      			<textarea class="form-control form-control-sm" typ1e="textarea" name="descrideta" >{{$prod->descrideta}}</textarea>
			      		</div>
		        	</div>
{{--		        	<div class="row">--}}
{{--			      		<div class="col-3 text-right">--}}
{{--			      		  <label>Preço</label>--}}
{{--			      		</div>--}}
{{--			      		<div class="col">--}}
{{--			      			<input class="form-control form-control-sm" typ1e="text" name="preco" value="{{formataValor($prod->preco, true)}}">--}}
{{--			      		</div>--}}
{{--		        	</div>--}}
		        	<div class="row">
			      		<div class="col-3 text-right">
			      		  <label>Imagem</label>
			      		</div>
			      		<div class="col">
			      			<div class="input-group input-group-sm ">
				      		  <div class="custom-file small">
                      <input type="file" id="inputGroupFile04" name="caminho" >
				      		    <input type="hidden" name="caminhoOld" value="{{asset($prod->caminho)}}"/>
				      		  </div>
			      		  </div>
			      		</div>
		        	</div>
		        	<p></p>
		        	<div class="row">
		        	  <div class="container-fluid col-lg-4 col-md-4 col-6">
                   <img class="img-fluid img-thumbnail" src="{{asset($prod->caminho)}}" alt=""
                   data-toggle="modal" data-target="#modalemp{{$prod->codigo}}">
		        	  </div>
		        	</div>
			    </div>
			  </div>
      </div>
	  	<div class="modal-footer">
	    	<div class="row justify-content-center" >
	    	  <button type="button" align="center" class="btn btn-secondary" data-dismiss="modal">Fechar</button>
	        <button type="submit" class="btn btn-success" id="btnModal" align="center"  >Salvar</button>
	      </div>
	    </div>
		</form>
    </div>
  </div>
</div>
