<html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Facture</title>
    </head>
    <style>
	.bloc1{
		display:inline-block;
		position:absolute;	
	}
	.bloc2{
		display:inline-block;
		position:relative;
		margin-left:330px;
		margin-top:-10px;
		width:450px;
		font-family:Tahoma;
		border:1px solid gray;
		border-radius:10px;
		padding-left: 25px;
		padding-top: -10px;
	}
	
    </style>
      <body style="font-family:'Tahoma';font-size:15px;" onload="window.print();">
		    <div class="bloc1">  				
				<img src="{{public_path('assets/img/LOGOIKEMO.jpg')}}"/>
				<p><b></b></p>
		    </div>
			<div class="bloc2">  			
				<p style="margin-left:-15px;color:#025f9a;font-family:'Tahoma';font-size:17px;"><b>DEPOT : </b></p>
				<p style="margin-left:-100px;margin-top:-15px;text-align:center"><b>Vente de pièces détachées, Automobiles et Accessoires etc.</b></p>
		    </div>
					@php
					$db= explode('-', session('date_debut'));
					$db= array_reverse($db);
					$db= implode('/', $db);
					
					$df= explode('-', session('date_fin'));
					$df= array_reverse($df);
					$df= implode('/', $df);
					@endphp
               <br/>
			   <br/>
               <br/>
			   <hr style="background-color:brown;"/>
               <br/>
               
                    <h4>Lignes de tous les transferts reçus au dépôt {{ DB::table('magasin')->where('id', session('user')->magasin_id)->first()->nom}}. Période : @php if ($db == $df){ echo $db;} else { echo $db." - ".$df; } @endphp</h4>
                 <br/>
               <br/>
                      <div style="border:1px dashed black;width:745px;margin-left:-15px;height:520px;">
        <table class="rpp" border='1' style="border-collapse: collapse;width:745px;" cellspacing="3">
                        <thead>
                          <tr>
                            <th class="text-center" style="height:30px;"> N° </th>
                            <th class="text-center">Désignation</th>
							<th class="text-center">Quantité</th>
							<th class="text-center">Etat</th>
                          </tr>
                        </thead>
                        <tbody>
						@foreach($ligne as $lignes)
                          <tr>
							<td style="text-align:center;height:40px;">{{$loop->iteration}}</td>
							
							<td style="text-align:center;"> {{ DB::table('produit_vendable')->where('id', $lignes->produit_id)->first()->desi }} </td>
							
							<td style="text-align:center;">{{$lignes->qte}}</td>
							
							 <td class="text-center">
							    @if( $lignes->etat ==  "En cours")
									
                                  <div class="badge badge-warning badge-shadow">{{$lignes->etat}}</div>
							    @else
                                      <div class="badge badge-success badge-shadow">{{$lignes->etat}}</div>
                                @endif
								  
                            </td>
		
                          </tr>
						  @endforeach
                        </tbody>
                      </table>
                      </div>
		<footer style="position:fixed;bottom:5px;text-align:center;font-size:10px;border-top:2px solid black;color:#025f9a;">
        <p align="center"><strong></strong>  </p>
        <p align="center"><strong>Siège Social : IAI/Lalala à gauche / BP : 19406 Libreville Gabon;
		N° d'Imat. 239962 Y - RCCM : RG LBV 2015 A33478 /Tél : 011 77 51 04 - 011 77 51 05 - 011 74 60 00/ 
		Mob : 00241 077 38 80 15/ 00241 077 16 70 30/ 00241 077 89 81 70 / E-mail : ikemozga1@gmail.com/ ikwom@yahoo.co.uk <br/>
		{{DB::table('magasin')->where('id', session('user')->magasin_id)->first()->nom}} 
		&copy; EasyShop Pro 2.0 2019-2020</strong>  </p>
        </footer>
      </body>
     </html> 