@extends('layout')
@section('title','Utilisation ')
@section('content')


<div class="section-header">
            <h1>Utilisation</h1>
            <div class="section-header-breadcrumb">
              <div class="breadcrumb-item active"><a href="#">Utilisation des produits</a></div>
              <div class="breadcrumb-item"><a href="#">Détails</a></div>
            </div>
          </div>
        
		  
		  
		  <div class="section-body">
            <div class="row">
              <div class="col-12">
                <div class="card">
                  <div class="card-header">
                    <h4>Détails</h4>
                  </div>
                  <div class="card-body">
                    <div class="table-responsive">
                      <table class="table table-striped" id="table-1">
                        <thead>
                          <tr>
                            <th class="text-center"> N° </th>
                            <th class="text-center">Produit</th>
                            <th class="text-center">Quantité</th>
							 <th class="text-center">Nombre obtenu</th>
                   
                          </tr>
                        </thead>
                        <tbody>
						 @foreach($detail as $details)
                          <tr>
                            <td class="text-center">{{$loop->iteration}}</td>
                            <td class="text-center"> {{ DB::table('produit_vendable')->where('id', $details->produit_id)->first()->designation }}</td>
							 
                            <td class="text-center"> {{$details->qte}} </td>
							 <td class="text-center"> {{$details->nbre}}</td>
							  
                          </tr>
                      @endforeach
                        </tbody>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
           
           
          </div>
		  
		  
	   @push('scripts') 
	   
	  
@endpush

@endsection