<style>
  .ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-draggable.ui-resizable {
    position: absolute!important;
    height: auto!important;
    width: 80%!important;
    top: 190px!important;
    left: 274.5px!important;
    z-index: 101!important;
}
.table-bordered, .table-bordered td, .table-bordered th {
    border: 1px solid #626e82;
}
th {
    white-space: break-spaces;
    padding: 5px;
}
td{
  padding: 5px;
}
</style>
<div class="container">
      <form action="" id="invoice_form_validate" class="uk-form-stacked"  method="post" autocomplete="off">
         <?php
             $count =1;
             if(isset($issue)){
             foreach($issue as $iss)
          ?>
        <table id="" class="table-bordered">
        <thead>
          <tr class="data_details">
            <th>REQ No : <?php echo $iss->mat_req_no; ?></th>         
            <th>REQ Date : <?php echo $iss->request_date; ?></th>
            <th colspan="2">Issues No : <?php echo $iss->issue_no; ?></th>
            <th colspan="2">Issues Date : <?php echo $iss->issue_date; ?></th>
            <th colspan="2">Outlet : <?php echo $iss->outlet_name; ?></th>
          </tr>
          <tr class="data_heading">
            <th><strong>Product Name</strong></th>
            <th><strong>UOM</strong></th>
			<th><strong>Issued Qty</strong></th>
            <th><strong>Price</strong></th>
			<th><strong>Tot Price</strong></th>
			<th><strong>Tax(%)</strong></th>
			<th><strong>Tax Amt</strong></th>
			<th><strong>Total</strong></th>
         </tr>
        </thead>
        <tbody>
          <?php
            $count = 1;
            $tot_tax_amt = 0;
			$tot_basic = 0;
			$tot_amt = 0;
            foreach($issue_item as $isitem){
				$tot_tax_amt = $tot_tax_amt + $isitem->tax_amount;
				$tot_basic = $tot_basic + $isitem->basic_price;
				$tot_amt = $tot_amt + $isitem->total_amount;
              ?>
              <tr class="data_list">
                <td><?php echo $isitem->indent_item_name; ?></td>
                <td><?php echo $isitem->indent_uom; ?></td>
                <td><?php echo $isitem->indent_qty; ?></td>
                <td><?php echo $isitem->issues_price; ?></td>
				<td><?php echo $isitem->basic_price; ?></td>
				<td><?php echo $isitem->tax; ?></td>
                <td><?php echo $isitem->tax_amount; ?></td>
				<td><?php echo $isitem->total_amount; ?></td>
               </tr>
              
          <?php $count++; } ?>  
			<tr>
				<td colspan="4" >Total Amount</td>
				<td><?php echo $tot_basic; ?></td>
				<td></td>
				<td><?php echo $tot_tax_amt; ?></td>
				<td><?php echo round($tot_amt); ?></td>
			</tr>
        </tbody>
      </table>
      <?php } ?>
      </form>
    </div>