
  <html>
<style>
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}
</style>

<br><?php echo $order->prepared_by; ?> has forwarded to you an LPO for the following items<br>
<br>
<?php
$orders = Order::where('order_number', '=', $order->order_number)->get();
 ?>


<div class="panel-title" style="text-align:center"><?php echo HTML::image(Config::get('kblis.organization-logo'),  Config::get('kblis.country') . trans('messages.court-of-arms'), array('width' => '90px')); ?>

  <br>
  <strong><?php echo strtoupper(Config::get('constants.vl_order_form')); ?>

    <br> <?php echo Config::get('kblis.address-info'); ?></strong></div>

    		<h3><style="color:#337ab7">Order Number :: 0<?php echo $order->order_number; ?></h3>
    <table style="border-bottom: 1px solid #cecfd5;">
    	<tr>
    		<td colspan="2"><strong>Store Name::</strong><?php echo $order->store_name; ?></td>
        <br>

    		<td colspan="1"><strong>District::</strong><?php echo $order->district; ?></td>
    		<td colspan="1"><strong>Start Date::</strong> <?php echo $order->start_date; ?></td>
    		<td colspan="1"><strong>End Date::</strong><?php echo $order->end_date; ?></td>
    		<td colspan="1"><strong>Date Prepared::</strong> <?php echo $order->date_prepared; ?></td>
    	</tr>
    </table>


<div class="col-xs-12">
 <table style="border-bottom: 1px solid #cecfd5;">
			<thead>
				<tr>
					<th>#</th>
					<th class="text-center">Product Description</th>
					<th class="text-center">Pack Size</th>
					<th class="text-center">Opening Balance</th>
					<th class="text-center">Qty Received <br><small>During the period</small></th>
					<th class="text-center">Consumption <br><small>During the period</small></th>
					<th class="text-center">Losses / Adjustments <br><small>(- / +)</small></th>
					<th class="text-center">Total Closing Balance</th>
					<th class="text-center">Quantity Required</th>
					<th class="text-center">Comments</th>
				</tr>
			</thead>
			<tbody>
				 <?php $row=1;
         ?>
			<?php foreach($orders as $order): ?>
				<tr>
						<td class="text-center"><?php echo $row; ?></td>
          <td><?php echo $order->commodity->name; ?></td>
          <td><?php echo $order->pack_size; ?></td>
          <td class="text-center"><?php echo $order->opening_balance; ?></td>
          <td class="text-center"><?php echo $order->qty_received; ?></td>
          <td class="text-center"><?php echo $order->consumption; ?></td>
          <td class="text-center"><?php echo $order->losses_adjustments; ?></td>
          <td class="text-center"><?php echo $order->closing_balance; ?></td>
          <td class="text-center"><?php echo $order->qty_required; ?></td>
          <td class="text-center"><?php echo $order->comment; ?></td>
				</tr>
				<?php $row++; ?>
				<?php endforeach; ?>
			</tbody>
    </table>
  </div>
  <br><br><br><br>
  <b>Sent from UNHLS Inventory Management System</b>
<small><b>Please do not reply, this is a system auto-generated message.</b></small>
</html>
