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

@php
					$date_debut= explode('-', $date_debut);
					$date_debut= array_reverse($date_debut);
					$date_debut= implode('/', $date_debut);
					
					$date_fin= explode('-', $date_fin);
					$date_fin= array_reverse($date_fin);
					$date_fin= implode('/', $date_fin);
				  @endphp
<!-- 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>Paiements de l'hôpital du {{$date_debut}} au {{$date_fin}}</title>  
		</head>
			<body style="font-family:'Montserrat';font-size:12px;">
			<h3 align="center"> PAIEMENTS DE L'HOPITAL DU {{$date_debut}} AU {{$date_fin}} </h3>
			<br/>
			  <table border="1" class="table table-striped" id="table-1" style="border-collapse: collapse;font-family:'Montserrat';font-size:12px;width:720px;">
                        <thead>
                          <tr>
                            <th class="text-center" style="height:27px;font-size:17px;"> N° </th>
                            <th class="text-center" style="height:27px;font-size:17px;">Date</th>
                            <th class="text-center" style="height:27px;font-size:17px;">Montant payé</th>
                          </tr>
                        </thead>
                        <tbody>
						@foreach($paie as $paies)
                          <tr>
							<td style="text-align:center;height:27px;font-size:17px;">{{$loop->iteration}}</td>
							@php
							$paies->date= explode('-', $paies->date);
							$paies->date= array_reverse($paies->date);
							$paies->date= implode('/', $paies->date);
							@endphp
							<td style="text-align:center;height:27px;font-size:17px;">{{$paies->date}}</td>
							@php
								$lh = $paies->montant;
								$lh1 =  number_format($lh, 0, ' ', ' ');
							@endphp
							<td style="text-align:center;height:27px;font-size:17px;">{{$lh1}} FCFA</td>
                          </tr>
						  @endforeach
                        </tbody>
                        <tfoot>
							<tr>
								<td style="text-align:right;height:27px;font-size:17px;"></td>
								<td style="text-align:right;height:27px;font-size:17px;"><b>Total paiements</b></td>
								@php
								$lhh = $total;
								$lhh1 =  number_format($lhh, 0, ' ', ' ');
								@endphp
								<td style="text-align:center;height:27px;font-size:17px;"><b>{{$lhh1}} FCFA</b></td>
							</tr>
                        </tfoot>
                      </table>
                    </body>
</html>