<html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link id="bs-css" href="css/bootstrap-cerulean.min.css" rel="stylesheet">
	<link href="css/charisma-app.css" rel="stylesheet">
    <link href='bower_components/fullcalendar/dist/fullcalendar.css' rel='stylesheet'>
    <link href='bower_components/fullcalendar/dist/fullcalendar.print.css' rel='stylesheet' media='print'>
    <link href='bower_components/chosen/chosen.min.css' rel='stylesheet'>
    <link href='bower_components/colorbox/example3/colorbox.css' rel='stylesheet'>
    <link href='bower_components/responsive-tables/responsive-tables.css' rel='stylesheet'>
    <link href='bower_components/bootstrap-tour/build/css/bootstrap-tour.min.css' rel='stylesheet'>
    <link href='css/jquery.noty.css' rel='stylesheet'>
    <link href='css/noty_theme_default.css' rel='stylesheet'>
    <link href='css/elfinder.min.css' rel='stylesheet'>
    <link href='css/elfinder.theme.css' rel='stylesheet'>
    <link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
    <link href='css/uploadify.css' rel='stylesheet'>
    <link href='css/animate.min.css' rel='stylesheet'>
        <title>Fiche de versement</title>
		<style>
table {
			border-collapse: collapse;
			border-radius: 1em;
			overflow: hidden;
		}
		
		th, td {
			padding : 0.3em;
			background : #ddd;
			border-bottom: 2px solid white;
		}

	.bloc2{
		display:inline-block;
		position:relative;
		text-align:center;
		margin-top:-25px;
		width:100%;
		padding-top: -10px;
		border-bottom:1px solid #000;
	}
	
		
		</style>
    </head>
      <body style="font-family:'Montserrat';" onload="window.print();">
            <div class="bloc"> 
			<div class="bloc2">
				<p style="margin-top:15px;color:#000;font-size:16px;">
				<b><u>{{DB::table('magasin')->where('id', $cloture->magasin_id)->first()->nom}}</u><br>
				Contacts: {{DB::table('magasin')->where('id', $cloture->magasin_id)->first()->telephone}} {{DB::table('magasin')->where('id', $cloture->magasin_id)->first()->email}} <br/>
				Adresse : {{DB::table('magasin')->where('id', $cloture->magasin_id)->first()->adresse}}
				</b>
				
				</p>
				
		    </div>
		    </div>
		<!--BLOC DU GERANT-->
		<div class="container">
		<div class="row"> 
                <div class="col-md-4" style="margin-left:20px;">
					<p><b><font color="brown">FICHE DE VERSEMENT</font></b></p>
					<p><b>Ventes cloturées au : 
					@php
					$datec= explode('-', $cloture->date);
					$datec= array_reverse($datec);
					$datec= implode('/', $datec);
					@endphp
					{{$datec}} / {{$cloture->heure}}
					</b></p>
					<p><b>Versement effectué au : 
					@php
					$datev= explode('-', $cloture->date_versement);
					$datev= array_reverse($datev);
					$datev= implode('/', $datev);
					@endphp
					{{$datev}} / {{$cloture->heure_versement}}
					</b></p>
			        </div>
				<div class="col-md-4">  
                    &nbsp;
		        </div>
		</div>
		</div>
     <center>
	    <br/>
        <table class="rpp" border='1' style="border-collapse: collapse;margin-left:35px;width:auto" cellspacing="3">
		<thead>
                      <tr>
                        <th style="width:200px;height:35px">Etat versement</th>
                        <th style="width:205px;">Libellé</th>
						<th style="width:205px;">Montant versé</th>
                      </tr>
                    </thead>
        <tbody>
           <tr>
		   <td width="30px" height="40px" align="center">{{$cloture->etat}}</td>
		   <td width="30px" height="30px" align="center">{{$cloture->libelle}}</td>
			@php
			$lh = $cloture->montant;
			$lh1 =  number_format($lh, 0, ' ', ' ');
			@endphp
		   <td width="30px" height="30px" align="center">{{$lh1}}</td>
		   </tr>
		</tbody>
        
        </table>
		<div style="margin-left:330px;margin-top:90px;position:relative"><strong>Signature du Caissier,</strong><br/>
        
        </div>
		<div style="margin-left:-50px;position:relative;margin-top:-20px;"><strong>Signature du Gérant,</strong><br/>
        
        </div>
		<p style="margin-left:430px;margin-top:150px;"><strong>Fait,</strong>
        Ce <?php echo date('d-m-Y');?>
        </p>
      </div>
        <footer style="position:fixed;bottom:0;text-align:center;">
        <p align="center"><strong>&copy; {{DB::table('magasin')->where('id', $cloture->magasin_id)->first()->nom}}</strong>  </p>
        </footer>
      </body>
     </html> 