<?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;
$consignee_name         = $get_bill_details->consignee_name;
$consignee_addr1        = $get_bill_details->consignee_addr1;
$consignee_addr2        = $get_bill_details->consignee_addr2;
$consignee_addr3        = $get_bill_details->consignee_addr3;
$consignee_addr4        = $get_bill_details->consignee_addr4;
$consignee_pin          = $get_bill_details->consignee_pin;
$consignee_con_no       = $get_bill_details->consignee_con_no;
$consignee_fax          = $get_bill_details->consignee_fax;
$consignee_country      = $get_bill_details->consignee_country;
$consignee_state        = $get_bill_details->consignee_state;
$notify_name          = $get_bill_details->notify_name;
$notify_addr1         = $get_bill_details->notify_addr1;
$notify_addr2         = $get_bill_details->notify_addr2;
$notify_addr3         = $get_bill_details->notify_addr3;
$notify_addr4         = $get_bill_details->notify_addr4;
$notify_pin           = $get_bill_details->notify_pin;
$notify_con_no        = $get_bill_details->notify_con_no;
$notify_fax           = $get_bill_details->notify_fax;
$notify_country_name      = $get_bill_details->notify_country_name;
$notify_state_name        = $get_bill_details->notify_state_name;
$cmp_shrt_code          = $get_bill_details->cmp_shrt_code;
$branch_shrt_code       = $get_bill_details->branch_shrt_code;
$port_of_dis_shrt_code      = $get_bill_details->port_of_dis_shrt_code;
$bill_no            = $get_bill_details->bill_no;
$bill_products              = $get_bill_details->bill_products;
$date_of_issue              = $get_bill_details->date_of_issue;
$pre_carriage               = $get_bill_details->pre_carriage;
$voyage                     = $get_bill_details->voyage;
$delivery_of_goods          = $get_bill_details->delivery_of_goods;
$port_of_loading            = $get_bill_details->port_of_loading;
$no_of_bl                   = $get_bill_details->no_of_bl;
$freight_payment            = $get_bill_details->freight_payment;
$ocean_vessel               = $get_bill_details->ocean_vessel;
$place_of_delivery          = $get_bill_details->place_of_delivery;
$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;
$notify_name_party_2        = $get_bill_details->notify_name_party_2;
$notify_addr1_party_2       = $get_bill_details->notify_addr1_party_2;
$notify_addr2_party_2       = $get_bill_details->notify_addr2_party_2;
$notify_addr3_party_2       = $get_bill_details->notify_addr3_party_2;
$notify_addr4_party_2       = $get_bill_details->notify_addr4_party_2;

$container_no             = $get_bill_details->container_no;
$goods                      = $get_bill_details->goods;
$gross_weight               = $get_bill_details->gross_weight;
$cube_measure               = $get_bill_details->cube_measure;
$desc_goods                 = $get_bill_details->desc_goods;
$temp_cntrl                 = $get_bill_details->temp_cntrl;
$bill_created_date          = date('d-m-Y',strtotime($get_bill_details->bill_created_date));
?>
    <div class="container" style="padding-left:0px;padding-right:0px;margin-right: none;margin-left: none;"> 
      <table border="0" width="100%" cellpadding="0" cellspacing="0" class="table_style">
        <tr>
          <td>
            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="table_style">
              <tr>
                <td>
                  <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                      <td style="width: 62%;">
                        <b style="font-size:19px;">
                          BILL OF LADING
                        </b>
                      </td>
                      <td style="width:38%;font-size:15px;">
                        NOT NEGOTIABLE UNLESS CONSIGNED "To ORDER"
                      </td>
                    </tr>
                  </table>
                 
                </td>
                <td>
                  
                </td>
              </tr>
              <tr>
                <td>
                  <table width="100%">
                    <tr width="100%">
                      <td width="57%" valign="top">
                        <table border="0" width="100%" class="table_style">
                          <tr>
                            <td style="border-bottom: 1px solid black;height: 140px;padding: 2px 3px 10px 3px;border-right: 1px solid black;vertical-align: top;border-top: 1px solid black;">
                              <span style="font-size:16px;font-weight: bold;">Shipper</span>
                              <br/>
                              <span style="font-size:16px;">
                                <?php echo strtoupper($consignor_name);?>
                                <br/>
                                <?php echo strtoupper($consignor_addr1);?>
                                <br/>
                                <?php echo strtoupper($consignor_addr2);?>
                                <br/>
                                <?php echo strtoupper($consignor_addr3);?>
                                <br/>
                                <?php echo strtoupper($consignor_addr4);?>
                                <br/><!-- Tel : <?php echo strtoupper($consignor_con_no);?> Fax: <?php echo strtoupper($consignor_fax);?>
                                <br/> -->
                              </span>
                            </td>
                          </tr>
                          <tr style="border-bottom: 1px solid black;">
                            <td style="padding: 2px 3px 10px 3px;height: 140px;border-right: 1px solid black;border-bottom: 1px solid black;" valign="top">
                              <span style="font-size:16px;font-weight: bold;">Consignee (If 'To Order' So Indicate)</span>
                              <br/>
                              <span style="font-size:16px;">
                                <?php echo strtoupper($consignee_name);?>
                                <br/>
                                <?php echo strtoupper($consignee_addr1);?>
                                <br/>
                                <?php echo strtoupper($consignee_addr2);?>
                                <br/>
                                <?php echo strtoupper($consignee_addr3);?>
                                <br/>
                                <?php echo strtoupper($consignee_addr4);?>
                                <br/>
                              </span>
                            </td>
                          </tr>
                          <tr>
                            <td style="vertical-align:top;height:140px;padding: 2px 3px 10px 3px;border-right: 1px solid black;">
                              <span style="font-size:16px;font-weight: bold;">Notify Party 1 (No. claim shall attach for failure to notify)</span>
                              <br/>
                              <span style="font-size:16px;">
                                <?php echo strtoupper($notify_name);?>
                              </span>
                             
                              <span style="font-size:16px;">
                                <?php echo strtoupper($notify_addr1);?>
                                <br/>
                                <?php echo strtoupper($notify_addr2);?>
                                <br/>
                                <?php echo strtoupper($notify_addr3);?>
                                <br/>
                                <?php echo strtoupper($notify_addr4);?>
                                <!-- Tel: <?php echo strtoupper($notify_con_no);?> Fax: <?php echo strtoupper($notify_fax);?> -->
                              </span>
                            </td>
                          </tr>
                          <tr>
                            <td>
                              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                  <td style="padding-left:3px;width:50%;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;height: 55px;">
                                    <span style="font-size:16px;font-weight: bold;">Place Of Receipt</span>
                                    <br/>
                                    <span style="font-size:16px;"><?php $place_receipt_upper = strtoupper($place_receipt);
                                    echo nl2br($place_receipt_upper);?></span>
                                  </td>
                                  <td style="padding-left:3px;width:50%;border-top: 1px solid black;border-bottom: 1px solid black;border-right: 1px solid black;height: 55px;">
                                    <span style="font-size:16px;font-weight: bold;">Port Of Loading</span>
                                    <br/>
                                    <span style="font-size:16px;"><?php $port_of_loading_upper = strtoupper($port_of_loading);
                                    echo nl2br($port_of_loading_upper);?></span>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <tr>
                            <td>
                              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                  <td style="width:36%;padding-left:3px;border-right: 1px solid black;border-bottom: 1px solid black;height: 55px;">
                                    <span style="font-size:16px;font-weight: bold;">Vessel</span>
                                    <br/>
                                    <span style="font-size:16px;"><?php $ocean_vessel_upper = strtoupper($ocean_vessel);
                                    echo nl2br($ocean_vessel_upper);?></span>
                                  </td>
                                   <td style="width:15.5%;padding-left:3px;border-right: 1px solid black;border-bottom: 1px solid black;height: 55px;">
                                    <span style="font-size:16px;font-weight: bold;">Voy No.</span>
                                    <br/>
                                    <span style="font-size:16px;"><?php $voyage_upper =  strtoupper($voyage);
                                    echo nl2br($voyage_upper);?></span>
                                  </td>
                                   <td style="width:48.5%;padding-left:3px;border-right: 1px solid black;border-bottom: 1px solid black;height: 55px;">
                                    <span style="font-size: 16px;font-weight: bold;">Port Of Discharge</span><br/>
                                    <span style="font-size:16px;"><?php $port_of_dis_name_upper = strtoupper($port_of_dis_name);
                                    echo nl2br($port_of_dis_name_upper);?></span>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td style="vertical-align: top;" width="43%">
                        <table width="100%" border="0">
                          <tr style="border-bottom: 1px solid black;">
                            <td style="padding: 2px 3px 10px 3px;border-bottom: 1px solid black;border-top: 1px solid black;">
                              <span style="font-size:16px;font-weight: bold;">Bill Of Lading No.</span><span style="font-size:16px;">
                              <?php echo $cmp_shrt_code."/".$branch_shrt_code."/".$port_of_dis_shrt_code."/".$bill_no."-".date("y");?>
                              </span>
                            </td>
                          </tr>
                          <tr style="border-bottom: 1px solid black;">
                            <td style="padding: 2px 3px 10px 3px;border-bottom: 1px solid black;height:75px;">
                            <span style="font-size:16px;font-weight: bold;">Notify Party 2 (No. claim shall attach for failure to notify)</span>
                              <br/>
                           <span style="font-size:16px;">
                                <?php echo strtoupper($notify_name_party_2);?>
                             
                             <br/>
                            
                                <?php echo strtoupper($notify_addr1_party_2);?>
                                <br/>
                                <?php echo strtoupper($notify_addr2_party_2);?>
                                <br/>
                                <?php echo strtoupper($notify_addr3_party_2);?>
                                <br/>
                                <?php echo strtoupper($notify_addr4_party_2);?>
                                <!-- Tel: <?php echo strtoupper($notify_con_no);?> Fax: <?php echo strtoupper($notify_fax);?> -->
                              </span>
                            </td>
                          </tr>
                            <?php 
                            $checkdate = "10-06-2019";
						    $checkdate = strtotime($checkdate);
						    if($bill_created_date >= $checkdate) {

                            
                            ?>
						  
						<!--   <tr>
                            <td style="height: 202.5px;;border-bottom: 1px solid black;">
                            <img src="<?php echo base_url();?>assets/img/GOOD-VOYAGE.png" style="margin-left:65px;width: 354px;height: 212px;">
                            </td>
                          </tr>
                          <tr>
                            <td style="height: 67px;border-bottom: 1px solid black;padding:5px;line-height: 17px;">
                            <p style="font-size: 14px;">
                            P.O Box:124962, M-14,Gold Building,Opp.Canadian Hospital, Dubai, United Arab Emirates, Tel: +971 4 2662977, www.watergateshipping.com,documentation@watergateshipping.com</p>
                          
                            </td>
                          </tr>  -->
						  
						  
						  
						  
						 <?php } else { ?>
                          
                          
                          
                        <!--  <tr>
                            <td style="height: 202.5px;;border-bottom: 1px solid black;">
                            <img src="<?php //echo base_url();?>images/watergate_print_logo-new2.png" style="margin-left:65px;width: 354px;height: 212px;">
                            </td>
                          </tr>
                          <tr>
                            <td style="height: 67px;border-bottom: 1px solid black;padding:5px;line-height: 17px;">
                            <p style="font-size: 14px;">
                            P.O Box:124962, M-14,Gold Building,Opp.Canadian Hospital, Dubai, United Arab Emirates, Tel: +971 4 2662977, www.watergateshipping.com,documentation@watergateshipping.com</p>
                          
                            </td>
                          </tr> -->
                          
                           <?php } ?>
						   
						    <tr>
                            <td style="height: 200.5px;;border-bottom: 1px solid black;">
                            <img src="<?php echo base_url();?>assets/img/LOGOWATERGATE.jpg" style="margin-left:65px;width: 354px;height: 209px;visibility: hidden;">
                            </td>
                          </tr>
                          <tr>
                            <td style="height: 67px;border-bottom: 1px solid black;padding:5px;line-height: 17px;">
                                <p style="font-size: 12px;">
                            WATER GATE SHIPPING SERVICES LLC, Office Number: M-14, Gold building, Near Canadian Hospital,

Hor Al Anz, Dubai, Post Box No:92467,United Arab Emirates,  

Office Ph : 04 2662977</p>
                           <p style="font-size: 12px;">
                            Web:   www.watergateshipping.com
							
							</p>
                          
                            </td>
                          </tr> 
						   
						   
                          <tr>
                            <td style="text-align: center;height: 55px;border-bottom: 1px solid black;vertical-align: top;padding:5px;line-height: 17px;">
                            <p style="font-size: 26px;color: red;">
                              
                            </p>                          
                            </td>
                          </tr>
                          <tr>
                            <td>
                              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                  <td style="border-right: 1px solid black;border-bottom: 1px solid black;height:40px;padding:5px;height:57px;">
                                    <span style="font-size: 16px;font-weight: bold;">Place Of Delivery</span><br/>
                                    <span style="font-size:16px;"><?php $place_of_delivery_upper = strtoupper($place_of_delivery);
                                    echo nl2br($place_of_delivery_upper);?></span>
                                  </td>
                                  <td style="border-bottom: 1px solid black;padding:5px;height:57px;">
                                    <span style="font-size: 16px;font-weight: bold;">No of Original Bills of Lading</span><br/>
                                    <span style="font-size:16px;"><?php $no_of_bl_upper = strtoupper($no_of_bl);
                                    echo nl2br($no_of_bl_upper);?></span>
                                  </td>

                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>
               <table border="0" class="table-pdf" cellpadding="0" cellspacing="0" style="width: 100%;"  width="100%" >
                <tr style="border-bottom: none;" height="38px">
                  <td style="text-align:center;width:23%;padding:2px;border-bottom: 1px solid black;"><span style="font-size:15px;"><strong>Container Number <br/>& Seal Number</strong></span>
                  </td>
                  <td style="text-align:center;width:13%; padding:2px;border-bottom: 1px solid black;"><span style="font-size:15px;"><strong>No. of Pkgs, or <br/>Shipping Units</strong></span>
                  </td>
                  <td style="text-align:center;width: 30%;  padding:2px;border-bottom: 1px solid black;"><span style="font-size:15px;"><strong>Description of Goods & Pkgs.</strong></span>
                  </td>
                  <td style="text-align:center;width: 17%;  padding:2px;border-bottom: 1px solid black;"><span style="font-size:15px;"><strong>&nbsp;&nbsp;&nbsp;&nbsp;Gross Weight <br/>(KGS)</strong></span>
                  </td>
                  <td style="text-align:center;width: 17%; padding:2x;border-bottom: 1px solid black;"><span style="font-size:15px;"><strong>Measurement <br/>(CBM)</span></strong>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </div>
