<?php $this->load->view("common/header"); ?>
<div style="top:5px;" class="panel-tools open">
  <button data-toggle="dropdown" class="btn btn-blue dropdown-toggle" onClick="window.print()"><i class="fa fa-print"></i></button>
</div>
<style type="text/css">
th {
	text-align: left !important;
}
.report_view_th {
	color: #000 !important;
	text-align: center !important;
}
body {
	background-color: #fff !important;
	font-size: 12px;
}
p {
	margin: 0;
}
.modal-body {
	padding: 2px 15px 15px;
	position: relative;
}
body .modal {
	/* new custom width */

	width: 750px;
	/* must be half of the width, minus scrollbar on the left (30px) */

	margin-left: -375px;
}
.print-table td, th {
	padding: 1px;
	vertical-align: top !important;
}
thead {
	display: table-header-group;
}
tfoot {
	display: table-footer-group;
}
.width_cus {
	width: 100px !important;
}
.width_qty {
	width: 100px !important;
}
</style>

<!--https://css-tricks.com/almanac/properties/p/page-break/-->

<!--onLoad="window.print()-->

<body onLoad="window.print()">
<div class="row">
  <div class="col-xs-12" style="font-size:14px"> 
    <!-- <h3 class="center" style="font-family:'Times New Roman', Times, serif; margin-bottom:3px; letter-spacing:2px;"></h3>--> 
    
    <!-- <p class="center">

 	 <?php echo$wharehose_details['address'] ?></p>--> 
    
    <!-- <p class="center">

	<?php echo $wharehose_details['phone'];?></p>

    <p class="center">

	<?php echo $wharehose_details['email'];?></p>-->
    
    <h5 class="center" style="font-family:'Times New Roman', Times, serif; margin-bottom:3px; letter-spacing:2px;">ITEM LOADING SHEET(EXPAND)</h5>
    <div class="col-xs-6">
      <p>Date - <?php
	  
	  $date=date_create($delivary_details['loading_date_time']);
echo date_format($date,"Y-m-d"); ?></p>
      <p> Area - <?php echo $delivary_details['area_name']?></p>
      <p> Vehicle - <?php echo $delivary_details['vehicle_code']?> </p>
      <p> Representative- <?php echo $delivary_details['user_first_name']?></p>
      <p> Delivery REF - <?php echo $delivary_details['loading_ref_no']?></p>
      <br>
    </div>
    <div class="col-xs-6 pull-right" style="padding-left:160px;"> </div>
  </div>
</div>
<div class="print-start">

  <table class="print-table" width="100%" style="border:1px solid #000; text-align:left; font-size:14px;">
    <thead>
      <tr>
        <th  class="col-xs-4" style="border:1px solid #000;">Product</th>
        <th class="col-xs-1" style="border:1px solid #000;">Qty</th>
          <!-- <th class="col-xs-6" style="border:1px solid #000;">Expand Products</th>-->
        <th class="col-xs-1" style="border:1px solid #000;">Laoded<br> Qty</th>
     	<th  style="border:1px solid #000;">Remarks</th>
       
      </tr>
    </thead>
    <tbody>
    <?php 
	$tot_qty=0;
	 foreach($comman_balance_array as $key)
		{	
		$tot_qty+=$key['product_qty'];
		
		?>
    <tr ><td style="border:1px solid #000;"><?php echo $key['product_name']." (".$key['book_year'].")"; ?></td> <td style="border:1px solid #000; text-align:center"> <?php echo $key['product_qty']; ?></td><td style="border:1px solid #000;" >
    
   
    
    
    </td><td style="border:1px solid #000;"></td></tr>
    <?php }?>
    </tbody>
    <tfoot>
    <tr><th style="border:1px solid #000;">Total Qty</th> <th style="border:1px solid #000;"> <?php echo $tot_qty; ?></th><th style="border:1px solid #000;" ></th><th style="border:1px solid #000;"></th></tr>
    </tfoot>
    </table>
     
</div>
<div class="row">


<div class="col-xs-12"> 
  
 
  
</div>
<!--col-xs-12-->

<div class="col-xs-12 pull-right" id="border_print" style="border:0px solid #000; font-size:14px"><br>
  <br>
  Full Total :<br>
  <br>

  Signature Issuing By :<br>
  <br>
 
  Signature Check By :<br>
  <br>
 
  Signature Receiving By : <br>
  <br>
  Printed on : <?php echo date("Y-d-m H:i:s");?>
  
  
  
  </div>
  
  

<!--print-start-->

</body>
