<table width="900px">
        <tr><td width="20px"></td><td width="600px" align='right'>
          <img style="height:60px;" alt="logo" src="http://localhost/hades/assets/images/logo.png">
                      <h5 class="font-semibold">INVOICE</h5>
                      <table class="table table-bordered" width="600px">
                      <tr><th colspan="2" align="center"><h2>HadesIndia Order Invoice</h2></th></tr>
                        <tr  style="border-bottom:1px solid #999;">
                          <th width="300px" align="left">Invoice No. HI-<?php echo $order->oid;?></th>
                          <th width="300px" align="right">Invoice Date <?php echo date("d M Y",strtotime($order->odate));?></th>
                        </tr>
                      </table>
                   
                   
                   
                   <table class="table table-bordered" width="600px" style="border:0px solid #CCC;">
                        <tr style="background:#CCC; solid #999;padding:10px;">
                          <th width="300px" align="left">Company Address</th><th width="300px" align="right">Delivery Address</th>
                        </tr>
                        <tr>
                        <td width="300px" align="left">
                        	<p>HADESINDIA<br>
                            123, ABC Road Indore<br/>MadhyaPradesh 452001<br>
                            Phone - 1234567890<br>
                            Email - info@hadesindia.com</p>
                        </td>
                        <td width="300px" align="right">
                        	<p><?php echo $order->bname;?><br>
                          <?php echo $order->baddress;?><br>
                          <?php echo $order->blandmark.' '.$order->bcity.' '.$order->bstate.' '.$order->bpin;?><br>
                          <i class="fa fa-phone"></i> <?php echo $order->bphone;?></p>
                        </td>
                        </tr>
                      </table>
                   
                  
                    
                    <table class="table table-bordered table-striped" style="border:0px solid #333;" width="600px" >
                      <thead>
                        <tr style="padding:10px; background:#999; border:1px solid #000;">
                          <th>SKU</th>
                          <th>DESCRIPTION</th>
                          <th class="text-center" style="width:20px;">QTY</th>
                          <th class="text-right" style="width:120px;">UNIT PRICE</th>
                          <th class="text-right" style="width:120px;">TOTAL</th>
                        </tr>
                      </thead>
                      <tbody>
                      <?php foreach($items as $item){?>
                        <tr style="padding:10px;border:1px solid #000;">
                          <td align="center"><?php echo $item->pid;?></td>
                          <td align="center">
                          <?php echo $item->pname;?></td>
                          <td align="center"><?php echo $item->qty?></td>
                          <td align="center"> <?php echo $item->price.'/- ';?></td>
                          <td align="center"> <?php echo $item->subtotal;?>/-</td>
                          
                        </tr>
                        <?php }?>
                      </tbody>
                      <tfoot style="border:2px solid #666;">
                        <tr>
                          <th colspan="3" rowspan="3" class="bdr"  style="border-top:0px solid #333; padding-top:20px;">
                           </th>
                          <th class="text-right pd-10">Sub Total</th>
                          <th class="text-right pd-10">Rs <?php echo $order->ototal+$order->odis;?>/-</th>
                        </tr>
                        <tr>
                          <th class="text-right  pd-10 no-bd">Discount</th>
                          <th class="text-right  pd-10 vd_red no-bd">Rs <?php echo $order->odis;?>/-</th>
                        </tr>
                        <tr>
                          <th class="text-right  pd-10 no-bd">Shipping Cost</th>
                          <th class="text-right  pd-10 no-bd">0.0</th>
                        </tr>
                        <tr>
                          <th colspan="3" align="left">Thank you for your business. Please remit the total amount due within 30 days.</th>
                          <th class="text-right  pd-10">Order Total</th>
                          <th class="text-right  pd-10 "><span class="vd_green font-sm font-normal">Rs <?php echo $order->ototal;//-$order->odis;?>/-</span></th>
                        </tr>
                        <tr><td colspan="5"></td></tr>
                          <tr style="border-top:1px solid #666;"><th colspan="3" style="border-top:1px solid #666;" align="left">Payment Method- Online Via PayU</th><th colspan="2"></th></tr>
                          
                      </tfoot>
                    </table></td></tr></table>