<!DOCTYPE html>
<html lang="en">


<!-- Mirrored from www.radixtouch.in/templates/logicswave/ality/source/light/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Sep 2020 20:02:10 GMT -->
<head>
  <meta charset="UTF-8">
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
  <title>Liste des ventes  du {{$date_debut}} au {{$date_fin}}</title>  
		</head>
			<body style="font-family:'Montserrat';font-size:12px;">
			<h3> Liste des ventes du {{$date_debut}} au {{$date_fin}} </h3>
			  <table border="1" class="table table-striped" style="border-collapse: collapse;font-family:'Montserrat';font-size:12px;width:720px;">
                        <thead>
                          <tr>
                            <th style="height:25px">N°</th>
                            <th>Date</th>
                            <th>Type de vente</th>
                            <th>Client</th>
                            <th>Montant</th>
                          </tr>
                        </thead>
                        <tbody>
						@foreach($ventes as $vente)
                          <tr>
							<td style="text-align:center;height:25px">{{$vente->numero}}</td>
							<td style="text-align:center;">{{$vente->date}}</td>
							<td style="text-align:center;">{{$vente->type_vente}}</td>
							<td style="text-align:center;">{{DB::table('client')->where('id', $vente->client_id)->first()->nom}}</td>
							@php
							$lh = $vente->montant;
							$lh1 =  number_format($lh, 0, ' ', ' ');
							@endphp
							<td style="text-align:center;">{{$lh1}} FCFA</td>
                          </tr>
						  @endforeach
						  <tr>
								<td style="text-align:right;" colspan="4"><b>Total des ventes</b></td>
								@php
									$tt = $total;
									$tt1 =  number_format($tt, 0, ' ', ' ');
								@endphp
								<td style="text-align:right;height:25px"><b> {{$tt1}} FCFA </b></td>
							</tr>
                        </tbody>
                      </table>
                    </body>
</html>