<!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>Facture de consommation du personnel Hôpital du {{$date_debut}} au {{$date_fin}}</title>  
		</head>
			<body style="font-family:'Montserrat';font-size:12px;">
			<div class="container">
		   <div class="row">
		    <div class="col-md-12">  
                <center>
				<br/>				
				<img src="{{public_path('assets/img/logohopital.jpg')}}"/><br/><br/>
				<p><b>Ordre Hospitalier de St Jean de Dieu TANGUIETA</b></p>
				<hr style="width:150px;" />
				<p><b></b></p>
				</center>
		    </div>
		</div></div>
			<br/>
			<h3 align="right"> Facture de consommation du personnel Hôpital du {{$date_debut}} au {{$date_fin}} </h3>
			<br/>
			<br/>
			  <table border="1" class="table table-striped" id="table-1" style="border-collapse: collapse;font-family:'Montserrat';font-size:15px;width:650px;margin-left:100px;">
				<tfoot>
					<tr>
						<td style="text-align:right;height:45px;text-align:center" colspan="2"><b>Nombre de plats consommés</b></td>
						@php
							$sub = DB::table('subvention')->orderBydesc('id')->take(1)->first()->montant;
							$plat = $total/$sub;
						@endphp
						<td style="text-align:right;"><b> {{$plat}} </b></td>
					</tr>
					<tr>
						<td style="text-align:right;height:45px;text-align:center" colspan="2"><b>Montant total</b></td>
						@php
						$lhh = $total;
						$lhh1 =  number_format($lhh, 0, ' ', ' ');
						@endphp
						<td style="text-align:right;"><b> {{$lhh1}} FCFA </b></td>
					</tr>
				</tfoot>
			  </table>
			  <p style="margin-left:480px;margin-top:90px;font-size:15px;"><strong>La Gérante,</strong><br/>
        Ce <?php echo date('d-m-Y');?>
        </p>
				</body>
</html>