<?php
$consignor_name         = $get_bill_details->consignor_name;
$consignor_addr1        = $get_bill_details->consignor_addr1;
$consignor_addr2        = $get_bill_details->consignor_addr2;
$consignor_addr3        = $get_bill_details->consignor_addr3;
$consignor_addr4        = $get_bill_details->consignor_addr4;
$consignor_pin          = $get_bill_details->consignor_pin;
$consignor_con_no       = $get_bill_details->consignor_con_no;
$consignor_fax          = $get_bill_details->consignor_fax;
$consignor_country      = $get_bill_details->consignor_country;
$consignor_state        = $get_bill_details->consignor_state;
$customer_name          = $get_bill_details->customer_name;
$customer_addr1         = $get_bill_details->customer_addr1;
$customer_addr2         = $get_bill_details->customer_addr2;
$customer_addr3         = $get_bill_details->customer_addr3;
$customer_addr4         = $get_bill_details->customer_addr4;
$customer_pin           = $get_bill_details->customer_pin;
$customer_con_no        = $get_bill_details->customer_con_no;
$customer_fax           = $get_bill_details->customer_fax;
$notify_name            = $get_bill_details->notify_name;
$invoice_no             = $get_bill_details->invoice_no;
$job_no  				= $get_bill_details->job_no;

$vessel_berth  				= $get_bill_details->vessel_berth;
$tot_vol  				= $get_bill_details->tot_vol;

$invoice_date           = $get_bill_details->invoice_date;
$place_receipt          = $get_bill_details->place_of_receipt;
$bill_no                = $get_bill_details->bill_no;
$seal_no                = $get_bill_details->seal_no;
$shipping_bill_no       = $get_bill_details->shipping_bill_no;
$container_no           = $get_bill_details->container_no;
$container_type         = $get_bill_details->container_type;
$port_of_loading        = $get_bill_details->port_of_loading;
$port_of_dis            = $get_bill_details->point_of_discharge;
$voyage                 = $get_bill_details->voyage;
$delivery_of_goods      = $get_bill_details->delivery_of_goods;
$place_of_delivery      = $get_bill_details->place_of_delivery;
$gross_weight           = $get_bill_details->gross_weight;
$date_of_issue          = $get_bill_details->date_of_issue;
$freight_payment        = $get_bill_details->freight_payment;
$freight_charges        = $get_bill_details->freight_charges;
$place_receipt          = $get_bill_details->place_receipt;
$place_issue            = $get_bill_details->place_issue;
$port_of_dis_name       = $get_bill_details->port_of_dis_name;
$vessel                 = $get_bill_details->ocean_vessel;
$arrival_date           = $get_bill_details->arrival_date;

$pan           = $get_bill_details->pan_no;
$gst           = $get_bill_details->gst;
$iec           = $get_bill_details->iec;
$state           = $get_bill_details->state;

$ihc_applicable         = $get_bill_details->ihc_applicable;
$ihc_sgst_amount        = $get_bill_details->ihc_sgst_amount;
$ihc_sgst_per           = $get_bill_details->ihc_sgst_per;
$ihc_cgst_per           = $get_bill_details->ihc_cgst_per;
$ihc_cgst_amount        = $get_bill_details->ihc_cgst_amount;
$ihc_igst_per           = $get_bill_details->ihc_igst_per;
$ihc_igst_amount        = $get_bill_details->ihc_igst_amount;
$ihc_tax_amnt           = $get_bill_details->ihc_tax_amnt;
$ihc_amount             = $get_bill_details->ihc_amount;
$ihc_sac                = $get_bill_details->ihc_sac;
$ihc_usd                = $get_bill_details->ihc_usd;
?>


    <div class="container" style="padding-left:0px;padding-right:0px;margin-right: none;margin-left: none;"> 
      <table border="1" bordercolor="#808080" width="100%" cellpadding="0" cellspacing="0">
        <tr>
        <td colspan="2" style="">

         <table border="0" width="100%" cellpadding="0" cellspacing="0" style=" border-collapse: collapse;">
            <tr>
              <td width="50%" >
                <span>&nbsp;<img src="<?php echo base_url();?>assets/img/GOOD-VOYAGE.png"  height="110" width="290"></span> 
				
				
			 <!--  	 <span>&nbsp;&nbsp;<img src="<?php echo base_url();?>assets/img/image002.png"  height="90" width="150"></span> -->
              </td>
              <td width="50%" style="text-align:right;height:120px;" >
            
                  <span>
				  <img src="<?php echo base_url();?>assets/img/Good-vouge.PNG"  height="150" width="300">
				  </span> 
				  
				  
				 <!--  <span>
				  <img src="<?php echo base_url();?>assets/img/image006.png"  height="90" width="150">
				  &nbsp;&nbsp;</span> -->
             </td>
            </tr>
</table>

           </td>
        </tr>       
        <tr>
            <td width="55%" style=" height: 50px;vertical-align: center;">
              <table border="0" width="100%" cellpadding="0" cellspacing="0" style=" border-collapse: collapse;">
                <tr>
                     <td colspan="2"  style="border-bottom: 1px solid grey;height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:12px;"><b>TO</b><span style="font-size:11px;"></td>                 
                </tr>
                <tr>
                     <td colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:11px;"><?php echo $customer_name; ?></span></td>                  
                </tr>
                  <tr>
                      <td style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;" colspan="2"><span style="font-size:11px;"><?php echo $customer_addr1.','.$customer_addr2; ?></span></td>                      
                </tr>
                <tr>
                      <td style="padding-left:5px;padding-top:1px;padding-bottom:1px;" colspan="2"><span style="font-size:11px;"><?php echo $customer_addr3.','.$customer_addr4; ?></span></td>                      
                </tr>
                <tr>
                      <td style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;" colspan="2"><span style="font-size:11px;"><?php echo $customer_con_no; ?></span></td>                      
                </tr>
              
				 <tr>
                     <td style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;" colspan="2"><span style="font-size:11px;">PAN : <?php echo $pan; ?>, IEC CODE: <?php echo $iec; ?></span></td>                 
                </tr>
               
				<tr>
                     <td style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;" colspan="2"><span style="font-size:11px;">STATE : <?php echo $state; ?>, GSTIN : <?php echo $gst; ?></span></td>                 
                </tr>
						
              </table>
            </td>
            <td width="45%" style=" height: 50px;vertical-align: center;">
			<table border="0" width="100%" >
				<tr width="100%" >
                      <td width="40%" class="td_css" style="border-bottom: 1px solid grey;border-right: 1px solid grey;height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:11px;">DATE</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo date('d-m-Y',strtotime($invoice_date));?></span></td>
                </tr>
                <tr width="100%" >
                      <td width="40%" class="td_css" style="border-bottom: 1px solid grey;border-right: 1px solid grey;height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:11px;">INVOICE NO</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo $invoice_no;?></span></td>
                </tr>
                <tr width="100%">
                      <td width="40%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">SHIPPER</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo $consignor_name;?></span></td>
                </tr >
                <tr width="100%">
                      <td width="40%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:2px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">B/L NO</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo $bill_no;?></span></td>
                </tr>
                <tr width="100%">
                      <td width="40%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:2px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">GR WT</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo $get_bill_details->gross_weight;?></span></td>              
                </tr>
                <tr width="100%">
                      <td width="40%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">FREE DAYS</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo $get_bill_details->free_days;?></span></td>                
                </tr>
           
                <tr width="100%">
                      <td colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;">
					  <span style="font-size:11px;">
				
						  POL : <?php echo $get_bill_details->port_of_loading; ?>, 
						  POD : <?php echo $get_bill_details->place_of_delivery; ?>, 
						  FPOD : <?php echo $get_bill_details->fpod; ?>, 
						 
					
					  </span></td>
                                  
                </tr> 
              
                                             
              </table>
			
			
			</td>
        </tr>
		 <tr bordercolor="#808080">
          <td colspan="2" style="text-align:center;font-size:18px;padding-left:5px;padding-top:2px;padding-bottom:1px;"><b><font >TAX INVOICE (ORIGINAL FOR RECIPIENT)</font></b></td>
        </tr>

        <tr bordercolor="#808080">
            <td width="55%" style=" height: 25px;vertical-align: center;">
              <table border="0" width="100%" >
                <tr width="100%" >
                      <td width="40%" class="td_css" style="border-bottom: 1px solid grey;border-right: 1px solid grey;height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:11px;">CNTR NO</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo $container_no;?></span></td>
                </tr>
                <tr width="100%">
                      <td width="40%" style="height: 10px;padding-left:5px;padding-top:1x;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">VESSEL</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo $vessel;?></span></td>
                </tr >
				   <tr width="100%">
                      <td width="40%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">VOYAGE</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo $get_bill_details->voyage;?></span></td>
                </tr >
                <tr width="100%">
                      <td width="40%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">BERTH/ARVL DT</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;">
                         <?php if($arrival_date!='NULL' && $arrival_date!='1970-01-01') { ?>
                          <span style="font-size:11px;"><?php echo date('d-m-Y',strtotime($arrival_date));?></span>
                           <?php } else { ?>
                           <span style="font-size:11px;"></span>
                           <?php }?>
                          </td>
                </tr>
                <tr width="100%">
                      <td width="40%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">TOTAL VOL</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo $tot_vol;?></span></td>              
                </tr>
				 <tr width="100%">
                      <td width="40%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">JOB REF</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;"><span style="font-size:11px;"><?php echo $get_bill_details->job_ref;?></span></td>              
                </tr>
             <!--   <tr width="100%">
                      <td width="40%" style="height: 10px;padding-left:5px;padding-top:3px;padding-bottom:2px;border-right: 1px solid grey;"><span style="font-size:12px;">OUR JOB NO</span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:3px;padding-bottom:2px;"><span style="font-size:12px;"><?php echo $job_no;?></span></td>                
                </tr> -->
              
                                             
              </table>
            </td>

             <td width="45%" style=" height: 50px;vertical-align: center;">
              <table border="0" width="100%" cellpadding="0" cellspacing="0" style=" ">
                <tr width="100%">
                      <td colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><b>IMPORT LINE DETENTION TARIFF</b></span></td>
                </tr>
              <tr>
                      <td style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;" colspan="2"><span style="font-size:11px;">1ST 14 DAYS -FREE,</span></td>                      
                </tr>
				 <tr>
                      <td style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;" colspan="2"><span style="font-size:11px;">15th TO 19th DAY @ $ 75/20' (SLAB-1)

</span></td>                      
                </tr>
				 <tr>
                      <td style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;" colspan="2"><span style="font-size:11px;">20th TO 24 th DAY @ $ 100/20' (SLAB - 2)</span></td>                      
                </tr>
                   <tr>
                      <td style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;" colspan="2"><span style="font-size:11px;">THEREAFTER - $ 125/20' (FINAL SLAB)</span></td>                      
                </tr>                           
              </table>
            </td>
           
        </tr>
 
        <tr >
          <td colspan="2" style="text-align:left;font-size:11px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><b>IMPORT LINE DETENTION APPLICABLE</b></td>
        </tr>

        <tr>
            <td colspan="2" style=" height: 50px;vertical-align: center;">
              <table border="0" width="100%" cellpadding="0" cellspacing="0" >
                 <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>From</b></center></span></td>
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>To</b></center></span></td> 
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>Days</b></center></span></td>
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>Volume</b></center></span></td>  
					 <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>USD/Day</b></center></span></td>  
					 <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>USD/Total</b></center></span></td>  
					 <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>EX Rate</b></center></span></td>  
					 <td width="30%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>Total Rupees</b></center></span></td>   
                </tr> 
               <?php 
               $count = 1;
				$tdays 			= 0;
				$tvolume 		= 0;
				$tusd_day 		= 0;
				$tusd_total 	= 0;
				$tex_rate 		= 0;
				$ttotal_rupees 	= 0;
               foreach ($imp_details as $k => $v) 
			   {
                
				$tdays 			+= $v['days'];
				$tvolume 		+= $v['volume'];
				$tusd_day 		+= $v['usd_day'];
				$tusd_total 	+= $v['usd_total'];
				$tex_rate 		+= $v['ex_rate'];
				$ttotal_rupees 	+= $v['total_rupees'];
				
               ?>               
                 <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php echo date('d-m-Y',strtotime($v['from_date']));?></span></center></td>
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php echo date('d-m-Y',strtotime($v['to_date']));?></span></center></td> 
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['days'];?></span></td>
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['volume'];?></span></td> 
					 <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['usd_day'];?></span></td> 
					 <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['usd_total'];?></span></td> 
					 <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['ex_rate'];?></span></td> 
					 <td width="30%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['total_rupees'];?></span></td> 
 
                </tr> 
               <?php } ?>            
               
               
                <tr width="100%">
                      <td width="20%" colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><b>Total</b></span></center></td>
                      
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php //echo $tdays;?></span></td>
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php //echo $tvolume;?></span></td> 
					 <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php //echo $tusd_day;?></span></td> 
					 <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php //echo $tusd_total;?></span></td> 
					 <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php //echo $tex_rate;?></span></td> 
					 <td width="30%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $ttotal_rupees;?></span></td> 
 
                </tr> 
				
				<tr>
            <td colspan="8" style=" height: 50px;vertical-align: center;">
              <table border="0" width="100%" cellpadding="0" cellspacing="0" >
                 <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>SL</b></center></span></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>Particulars</b></center></span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>SAC Code</b></center></span></td>
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><center><b>Amount in Rupees</b></center></span></td>                        
                </tr> 
               <?php 
               $count = 1;
             foreach($invo_details as  $row){
            
               ?>               
                 <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php echo $count++;?></span></center></td>
                      <td width="60%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $row['goods'];?></span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $row['sac'];?></span></td>
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $row['amount'];?></span></td>                        
                </tr> 
                <?php } 
                
               foreach ($goods_details as $k => $v) {  
                     $remark = $v['remarks'];
               }
               ?>    
               
                <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php  echo $count++?></span></td>
                      <td colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">SUB TOTAL</span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['total_amount'];?></span></td>                        
                </tr>
               	
				<?php if($v['igst_amt']==0 || $v['igst_amt']=='' || $v['igst_amt']==null) { ?>
                <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php  echo $count++?></span></td>
                      <td colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">SGST (<?php echo $v['sgst_per'];?>%)</span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['sgst_amt'];?></span></td>                      
                </tr> 
                <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php  echo $count++?></span></td>
                      <td colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">CGST (<?php echo $v['cgst_per'];?>%)</span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['cgst_amt'];?></span></td>                      
                </tr>
				<?php } else { ?>
                <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php  echo $count++?></span></td>
                      <td colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">IGST (<?php echo $v['igst_per'];?>%)</span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['igst_amt'];?></span></td>                      
                </tr> 

			   <?php }   ?>
				  
				<?php 
				if($ihc_applicable=='1')
				{ ?>

                 

			 <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php  echo $count++?></span></td>
                      <td width="60" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">IHC  </span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $ihc_sac;?></span></td>
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $ihc_amount;?></span></td>                      
                   </tr> 
				
			<?php	if($ihc_igst_amount==0 || $ihc_igst_amount=='' || $ihc_igst_amount==null) 
				{ 
				
				

				
				
				?>
                <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:2px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php  echo $count++?></span></td>
                      <td colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">IHC SGST (<?php echo $ihc_sgst_per;?>%)</span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $ihc_sgst_amount;?></span></td>                      
                </tr> 
                <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php  echo $count++?></span></td>
                      <td colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">IHC CGST (<?php echo $ihc_cgst_per;?>%)</span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $ihc_cgst_amount;?></span></td>                      
                </tr>
				<?php } else { ?>
                <tr width="100%">
                      <td width="10%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><center><span style="font-size:11px;"><?php  echo $count++?></span></td>
                      <td colspan="2" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">IHC IGST (<?php echo $ihc_igst_per;?>%)</span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $ihc_igst_amount;?></span></td>                      
                </tr> 

			   <?php }  } ?>
				    
                     
				  
				  
				<tr width="100%">
                      <td  colspan="3" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;text-align:right;"><b>GRAND TOTAL&nbsp;&nbsp;</b></td>
                      
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><?php echo $v['grand_total'];?></span></td>                      
                </tr> 
                        
                <tr width="100%">
                    
                      <td colspan="3" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;"><b>TOTAL AMOUNT IN WORDS:&nbsp; <?php echo ucfirst($amnt_word);?></b></span></td> 
                      <td width="15%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;border-bottom: 1px solid grey;border-right: 1px solid grey;"><span style="font-size:11px;">&nbsp;</span></td>                      
                </tr>   
				<?php 
				
				
				if($count >= 9) {
$mpdf->use_kwt = true;  

				?>
				</table>
				<p class="class_p_b "></p>
						 <table border="0" width="100%" cellpadding="0" cellspacing="0" >

				<?php } ?>
                <tr width="100%">
                      <td colspan="4" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:11px;">BANK DETAILS :</span></td>                     
                </tr>
            

                          
              </table>
            </td>
          
        </tr>
              

                          
              </table>
            </td>
          
        </tr>  


        <tr>
            <td width="60%" style=" height: 50px;vertical-align: center;">
              <table border="0" width="100%" cellpadding="0" cellspacing="0" style=" border-collapse: collapse;">
                 <tr>
                      <td width="20%" style="height: 10px;padding-left:5px;padding-top:3px;padding-bottom:2px;"><span style="font-size:10px;">A/C NAME</span></td>
                      <td width="80%" style="height: 10px;padding-left:5px;padding-top:3px;padding-bottom:2px;font-size:10px;">:&nbsp;GOOD VOYAGE SHIPPING SERVICES PVT LTD</td>                                      
                </tr>             
                <tr>                    
                      <td width="20%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:10px;">A/C NO</span></td> 
                      <td width="80%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;font-size:11px;">:&nbsp;015105013083</td>                        
                </tr>
                <tr>                    
                      <td width="20%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:2px;"><span style="font-size:10px;">BANK NAME</span></td> 
                      <td width="80%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:2px;font-size:11px;">:&nbsp;ICICI, VASHI BRANCH.</td>                        
                </tr>                        
              </table>
            </td>
          

          <td width="40%" style=" height: 50px;vertical-align: center;">
              <table border="0" width="100%" cellpadding="0" cellspacing="0" >
                 <tr>
                      <td width="20%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:8px;">IFSC Code</span></td>
                      <td width="80%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;font-size:11px;">:&nbsp; ICIC0000151</td>                                       
                </tr>             
                <tr>                     
                      <td width="20%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:8px;">SWIFT CODE</span></td> 
                      <td width="80%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;font-size:11px;">:&nbsp;ICICINBBCTS</td>                        
                </tr>
                <tr>                     
                      <td width="20%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:8px;">GSTIN NO</span></td> 
                      <td width="80%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;font-size:11px;">:&nbsp;27AAFCG8159A1ZN</td>                        
                </tr>
				<tr>                     
                      <td width="20%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:8px;">STATE</span></td> 
                      <td width="80%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;font-size:11px;">:&nbsp;MAHARASHTRA (27)
</td>                        
                </tr>     
				<tr>                     
                      <td width="20%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;"><span style="font-size:9px;">PAN NO</span></td> 
                      <td width="80%" style="height: 10px;padding-left:5px;padding-top:1px;padding-bottom:1px;font-size:11px;">:&nbsp;AAFCG8159A</td>                        
                </tr>     				
              </table>
            </td>
        </tr> 
      	<tr>
            <td colspan="2" >
              <table border="0" width="100%" cellpadding="0" cellspacing="0" style=" border-collapse: collapse;">
                 <tr bordercolor="#808080">
                      <td colspan="2" style="padding-left:5px;padding-top:1px;padding-bottom:1px;">
					  <span style="font-size:11px;">Remarks :&nbsp;<?php echo $remark;?></span>
					  </td>
                                                        
                </tr>             
                                    
              </table>
            </td>
          

        
        </tr> 
		<!--<tr>-->
            <td >
              <table border="1" bordercolor="#808080">
                 <tr>
                      <td></td>                                      
                </tr>             
                                  
              </table>
            </td>
          

         <!-- <td width="50%" >
              <table border="1" bordercolor="#FFF" width="100%" cellpadding="0" cellspacing="0" >
                 <tr>
                      <td width="100%" ></td>                                       
                </tr>             
               
              </table>
            </td>-->
        <!--</tr>-->
		
		
	

		  </table>
		  
		</div>

