@extends('layout')
@section('title','Rechercher Inventaire magasin ')
@section('description','Rechercher Inventaire magasin ')
@section('content')
<div class="section-header">
            <h1>Inventory search</h1>
            <div class="section-header-breadcrumb">
              <div class="breadcrumb-item active"><a href="#">Store Inventory</a></div>
              <div class="breadcrumb-item"><a href="#">Search</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>Select date</h4>
                  </div>
				  
                  <div class="card-body">
				  
				  <h7><strong></strong></h7>
				  
				<form method="POST" action="{{route('rinventairemagasinPost')}}">
                         {{csrf_field()}}
				  <div class="row" style="padding-top: 30px">
				        <div class="col-lg-3 col-md-3"> 
    					    <div class="form-group">
                            <label>Date inventaire<font color="red">*</font></label>
                            <input type="text" class="form-control" name="dateinv" id="champ_date2" required>
    					    <div id="calendarMain2"></div>
                            </div>
    					</div>
					  <div class="col-lg-5 col-md-12"> 
					    <div class="form-group">
                        <label>Categorie <font color="red">*</font></label>
                            <select  class="form-control select2" name="categorie_id">
                                <option value="">Select a category</option>
    						    @foreach($categorie as $categories)
    							<option value="{{$categories->idcat}}">{{$categories->libelle}}</option>
    							@endforeach
                            </select>
                        </div>
					</div>
					<div class="col-lg-4 col-md-12">
                            <button class="btn btn-icon icon-left btn-primary"><i class="fas fa-check"></i> Rech.</button>
                        </div>
					</div>
					  
				</form>
					  
					    </div>
						 
                    </div>
                  </div>
                </div>

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

@endsection