@extends('layout')
@section('title','Transfert  ')
@section('description','Transfert vers magasin ')
@section('content')
<div class="section-header">
            <h1>Transferts </h1>
            <div class="section-header-breadcrumb">
              <div class="breadcrumb-item active"><a href="#">Transfert  </a></div>
              <div class="breadcrumb-item"><a href="#">Recherche </a></div>
            </div>
          </div>
          <div class="section-body">
		    @if (session('status'))
            <div class="alert alert-warning" style="font-size: 15px; background-color: #328039; color: white">
                <i class="fa fa-check"></i> &nbsp; {{ session('status') }}
            </div>
        @endif

        @if (session('error'))
            <div class="alert alert-danger" style="font-size: 15px; background-color: #fb5757; color: white">
                <i class="ti-na"></i> {{ session('error') }}
            </div>
        @endif
        @if ($errors->any())
            <div class="alert alert-danger" style="font-size: 15px; background-color: #fb5757; color: white" >
                <ul>
                    @foreach ($errors->all() as $error)
                        <li> <i class="ti-na"></i> {{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
            <div class="row">
              <div class="col-lg-12 col-md-12 ">
                <div class="card">
                  <div class="card-header">
                    <h4>Recherche de transfert</h4>
                  </div>
				  
                  <div class="card-body">
				  
				  <h7><strong>Veuillez d'abord sélectionner le dépôt, la date début et la date fin</strong></h7>
				  
				<form  action="{{route('transfertdepotdepotPost')}}" method="POST">
                         {{csrf_field()}}
				  <div class="row" style="padding-top: 30px">
					<div class="col-lg-4 col-md-12"> 
					  <div class="form-group">
                      <label>Dépôt<font color="red">*</font></label>
                      <select  class="form-control select2" name="depot_id" required>
                        <option value="">Sélectionner un dépôt</option>
						@foreach($depot as $depots)
						<option value="{{$depots->id}}">{{$depots->nom}}</option>
                        @endforeach
                      </select>
                    </div>
					</div>
					 <div class="col-lg-3 col-md-12"> 
					 <div class="form-group">
                      <label>Date début</label>
                      <input type="date" class="form-control datepicker" name="date_debut" required>
                    </div>
					
					</div>
					
					 <div class="col-lg-3 col-md-12"> 
					 <div class="form-group">
                      <label>Date fin</label>
                      <input type="date" class="form-control datepicker" name="date_fin" required>
                    </div>
					
					</div>
					
					 <div class="col-lg-2 col-md-12" style="margin-top: 30px"> 
					
					 <button class="btn btn-icon  btn-primary " ><i  class="fa fa-search"></i> Rechercher</button>
					</div>
					</div>
	
					  
				</form>
					  
					    </div>
						 
                    </div>
                  </div>
                </div>

			
           
          </div>
		    
            </div>
          </div>
		  
	
	   @push('scripts') 
	   
	  
	   
	   
@endpush

@endsection