@extends('layout')
@section('title','Détail mouvement cuisine produit ')
@section('description','Détail mouvement cuisine produit')
@section('content')
			<br/>
          <div class="section-body">
		  <br/>
			<div class="row">
              <div class="col-12">
                <div class="card">
                  <div class="card-header">
                    <h4>Détail mouvement cuisine produit</h4>
                  </div>
                  <div class="card-body">
                    <div class="table-responsive">
                      <table class="table table-striped" id="table-1">
                        <thead>
                          <tr>
							<th style="text-align:center;">N°</th>
							<th style="text-align:center;">Date</th>
							<th style="text-align:center;">Produit</th>
							<th style="text-align:center;">Type opération</th>
							<th style="text-align:center;">En stock avant</th>
							<th style="text-align:center;">Quantité</th>
							<th style="text-align:center;">En stock après</th>
						</tr>
                        </thead>
                        <tbody>
	@foreach($detail as $details)
	<tr>
		<td>
        {{$loop->iteration}}
        </td>
		<td>
        {{$details->date}}
        </td>
        <td>
        {{ DB::table('produit_vendable')->where('id', $details->produit_id)->first()->designation }}
        </td>
		<td style="text-align:center;font-size:17px;">
           {{$details->type_operation}}
		</td>
		<td style="text-align:center;font-size:17px;">
           {{$details->en_stock}}
		</td>
		<td style="text-align:center;font-size:17px;">
           {{$details->nbre}}
		</td>
		<td style="text-align:center;font-size:17px;">
           {{$details->apres}}
		</td>
    </tr>
	@endforeach
    </tbody>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
		<div class="modal fade bd-example-modal-sm" id="Validermodal">
			<div class="modal-dialog modal-sm">
				<div class="modal-content">
					<div class="modal-body">
						<p>Voulez-vous valider la facture ?</p>
					</div>
					<div class="modal-footer" style="background-color:#ffffff" id="valider">

					</div>
				</div>
			</div>
		</div>
        <div class="modal fade bd-example-modal-sm" id="Annulermodal">
			<div class="modal-dialog modal-sm">
				<div class="modal-content">
					<div class="modal-body">
						<p>Etes-vous sûr d'annuler cette facture ?</p>
					</div>
					<div class="modal-footer" style="background-color:#ffffff" id="annuler">

					</div>
				</div>
			</div>
		</div>
		<div class="modal fade bd-example-modal-sm" id="Supprimermodal">
			<div class="modal-dialog modal-sm">
				<div class="modal-content">
					<div class="modal-body">
						<p>Etes-vous sûr de supprimer cette facture ?</p>
					</div>
					<div class="modal-footer" style="background-color:#ffffff" id="supprimer">

					</div>
				</div>
			</div>
		</div>

@endsection