<style>
p {
	line-height: 0.9;
}
p {
	margin: 0 0 2px;
}
</style>

<div class="modal fade in" id="view_bill_modal" tabindex="-1" role="dialog" aria-labelledby="ModalLabel" aria-hidden="true" style="font-family: monospace; font-size: 14px;margin-top:-30px">
  <div class="modal-dialog modal-md">
    <div class="modal-content">
      <div class="modal-header no-print">
        <button type="button" class="close no-print" data-dismiss="modal"><span aria-hidden="true"> <i class="fa fa-2x">&times;</i></span><span class="sr-only">Close</span> </button>
        <button type="button" class="btn btn-xs btn-default no-print pull-right" style="margin-right:15px;" onclick="window.print();"> <i class="fa fa-print"></i> Print </button>
        <h4 class="modal-title no-print" id="vbModalLabel">Title</h4>
      </div>
      <div class="modal-body row" style="margin-top:-23px;margin-left: -20px;padding: 0px 35px 0px 35px;">
        <div style="" class="row" id="main_bill">
          <div class="col-xs-12 text-center"> 
            <!-- <center>
              <div style="display:none; border:solid 3px; border-radius:50px; width:13%; padding:15px; line-height:1"><span style="font-size:31px;font-weight:bold">SO</span> <span style="font-size:14px;font-weight:bold">Yummy</span></div>
            </center>-->
            
            <h3 style="font-size:22px; line-height:1.1; 
    margin-bottom: 0px;">RATHNA TRADERS</h3>
            <!-- 
            <img alt="logo" src="<?php //echo asset_url(); ?>images/logo_print.png" style="margin-top: 1px;width: 100px;"> -->
            <p style="font-size:13px ; margin: 0px"><?php echo $get_warehouse[0]->address; ?></p>
            <p>
              <?php 
	   if($get_warehouse[0]->email) echo $get_warehouse[0]->email.""; ?>
            </p>
            <p style="font-weight:; font-size:12px">
                Land: 0112-962726 <br> Whatsapp/Viber : 076-1409403
            </p>
            <?php //if($get_warehouse[0]->phone) echo "<p style=\"font-weight:; font-size:12px\">".$get_warehouse[0]->phone."</p>"; ?>
          </div>
          
          <!--col-xs-12-->
          
          <div>
            <div class="row">
              <div class="col-md-12"> 
                <p class="bill_type" style="margin-bottom: 0px;display:none">Reg.No :WD6708   </p>
                <p class="bill_date" style="margin-bottom: 0px">Date: <?php echo date("Y-m-d g:i A"); ?> </p>
              </div>
              <div class="col-md-6"> </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <p  class="bill_no" style="font-weight:bold; margin-bottom: 0px">Bill No: </p>
                <p  class="sale_type" style="font-weight:bold; margin-bottom: 0px">Sale: </p>
                <p style="margin-bottom:0px;">Cashier :<?php echo $this->session->userdata['ss_user_first_name'] ?></p>
              </div>
              <div class="col-md-7"> </div>
            </div>
            <div class="row">
              <div class="col-md-12">
                <p style="" class="bill_customer">Customer: </p>
                <p class="delivery_address_text" style="display:none;"></p>
              </div>
              <!--<div class="col-md-6">--> 
              
              <!--</div>--> 
            </div>
            <!--<div class="">col-xs-12 row
              <p id="bill_no" style="font-weight:bold;margin: 0px 35px 0px 0px;">Bill No: </p>
              <p style="margin-bottom:-4px;">Cashier :<?php //echo $this->session->userdata['ss_user_first_name'] ?></p>
              <p style="margin-bottom:-2px;" id="bill_customer">Customer: </p>
              <p id="bill_date">Date: </p>
            </div>--> 
            <!--<div class="col-xs-6 pull-right row">
              
            </div>--> 
          </div>
          <div><!--class="col-md-12"-->
            <table id="bill_table" class="print-table" style="width:100%">
              <thead  style="border-bottom:dashed 2px;border-top:dashed 2px">
                <tr class="report_view_th text-center">
                  <th style="width:5%" class="text-center">*</th>
                  <th style="width:30%">Item</th>
                  <th style="width:15%" class="text-center">Qty</th>
                  <th style="width:15%" class="text-center">Price</th>
                  <th style="width:20%" class="text-center">Discount</th>
                  <th style="text-align:right"> Amount</th>
                </tr>
              </thead>
              <tbody>
                <tr style="display:none">
                  <td style="text-align:center; width:40px; vertical-align:middle;font-weight:bold; font-size:16px">*</td>
                  <td style="vertical-align:middle;font-weight:bold; font-size:15px">&nbsp;</td>
                  <td style="width: 80px; text-align:center; vertical-align:middle;font-weight:bold; font-size:15px">&nbsp;</td>
                  <td style="text-align:right; width:100px;">&nbsp;</td>
                  <td style="text-align:right; width:120px; padding-right:10px;">&nbsp;</td>
                </tr>
                <tr style="border-top:dashed 2px;display:none;">
                  <td style="" colspan="5">SubTotal</td>
                  <td style="text-align:right; " class="td_sub_total">&nbsp;</td>
                </tr>
                <tr style="display:none">
                  <td style="text-align:left; font-weight:;" colspan="5">Order Discount</td>
                  <td style="text-align:right;  border-bottom:solid 0px #000000" id="td_order_discount">()</td>
                </tr>
                <tr style="display:none">
                  <td style="text-align:left; font-weight:;" colspan="5">Delivery Charges</td>
                  <td style="text-align:right; " id="td_delivery_charges">&nbsp;</td>
                </tr>
                <tr style="display:none">
                  <td style="text-align:left; font-weight:;" colspan="5">CC Charges (3%)</td>
                  <td style="text-align:right; " id="td_cc_charges">&nbsp;</td>
                </tr>
                <tr>
                  <td style=" font-size:16px" colspan="5">Net Total</td>
                  <td style="text-align:right;  font-size:16px;  border-top:1px double #000;"  id="print_bill_total"></td>
                </tr>
                <tr style="display:none">
                  <td style="text-align:right; font-weight:bold;" colspan="5">Service Charges </td>
                  <td style="float:right; " id="td_service_charges">&nbsp;</td>
                </tr>
                <tr style="display:none">
                  <td style=" font-weight:bold;" colspan="5">Paying </td>
                  <td style="text-align:right;  font-weight:bold" id="td_paying_amount">&nbsp;</td>
                </tr>
                <tr style="">
                  <td style="font-size:16px;" colspan="5">Paying <span id="td_paying_by">cash</span></td>
                  <td style="  border-bottom:0px double #000;text-align:right;"><p style="font-size:16px;margin: 0px;" id="td_balance_amount">&nbsp;&nbsp; </p></td>
                </tr>
                <tr style="">
                  <td style="font-size:16px;" colspan="5"> Balance</td>
                  <td style="  border-bottom:0px double #000;text-align:right;"><p style="font-size:16px;margin: 0px;" id="customer_balance">&nbsp;&nbsp; </p></td>
                </tr>
              </tbody>
            </table>
            
            <?php /*?><p style="font-weight:bold;text-align:center"><i class="fa fa-facebook"></i>: bakerschoice.colombo
              <?php if($get_warehouse[0]->email) echo $get_warehouse[0]->email ?>
            </p><?php */?>
          </div>
          
          <!-- 
          <div style="text-align: center">
              <div class="col-md-12"> 
				  <div class="col-xs-6"> ................<br>Customer Sign </div>
             	 <div class="col-xs-6"> ................<br>Manager Sign </div>
              
              </div>
          </div>
          
          -->
          
          <div style="text-align: left;display:none" class="carrier_details">
              Driver
            <div class="row"> 
				  <div class="col-xs-3">  On cash:</div>
             	  <div class="col-xs-9" style="border-bottom:dashed;min-height: 20px;"></div>
             </div>
             <div class="row"> 
             	  <div class="col-xs-3"> Name:</div>
             	  <div class="col-xs-9" style="border-bottom:dashed;min-height: 20px;"></div>
            </div><br/>
              <span style="text-align:center">Carrier Details</span>
              <div class="col-md-12"> 
				  <div class="col-xs-2"> Name:</div>
             	  <div class="col-xs-10" style="border-bottom:dashed;min-height: 20px;"></div>
             	  
             	  <!--<div class="col-xs-2"> NIC:</div>-->
             	  <!--<div class="col-xs-10" style="border-bottom:dashed;min-height: 20px;"></div>-->
             	  
             	  <div class="col-xs-2"> Mobile:</div>
             	  <div class="col-xs-10" style="border-bottom:dashed;min-height: 20px;"></div>
             	  
             	  <div class="col-xs-2"> Signature:</div>
             	  <div class="col-xs-10" style="border-bottom:dashed;min-height: 20px;"></div>
             	  
             	  <!--<div class="col-xs-2"> Driver Name:</div>-->
             	  <!--<div class="col-xs-10" style="border-bottom:dashed;min-height: 20px;"></div>-->
             	  
             	  <!--<div class="col-xs-2"> Driver On Cash:</div>-->
             	  <!--<div class="col-xs-10" style="border-bottom:dashed;min-height: 20px;"></div>-->
              </div>
          </div>
          
          <div style="text-align: center; font-size: 12px;">භාන්ඩයක් මාරු කරන විට දින 7ක් තුල බිල රැගෙන ඒම අනිවාර්ය වේ.(ආපසු මුදල් ගෙවීමක් සිදු නොකෙරේ) <br/>
          </div>
          
          <div style="text-align: center; font-size: 11px;" class="collapse"> *** WE ARE CLOSED ON MONDAY *** <br/>
            ITEMS WITH PROOF OF PURCHASE WILL BE EXCHANGE WITHIN 7 DAYS. <br/>
            <h2 style="margin-top: 5px">~~~Thank You~~~</h2>
          </div>
        </div>
        <div style="page-break-before:always;page-break-after:auto;display:none" class="row" id="del_list_div">
          <table id="del_list" class="print-table" style="width:100%;">
            <thead  style="border-bottom:dashed 2px;border-top:dashed 2px">
              <tr class="report_view_th text-center">
                <th class="text-center" colspan="4">
                    <h2 style="margin-top: 5px; text-align:center">RATHNA TRADERS WAREHOUSE 01</h2>
                    <h4 id="stn1"></h4>
                    <h4 class="bill_no" style="text-align:left">Bill No :</h4>
                    <p  style="text-align:left" class="bill_customer">Customer: </p>
                    <h4 style="text-align:left" class="bill_date"></h4>
                    
                    <h4  style="text-align:left" class="cash_balance">Net total: </h4>
                    <h4  style="text-align:left" class="td_delivery_charges">Delivery charges: </h4>
                    <p class="delivery_address_text" style="display:none;text-align:left"></p>
                    <h4 style="text-align:left">Cashier :<?php echo $this->session->userdata['ss_user_first_name'] ?></h4>
                </th>
              </tr>
              <tr class="report_view_th text-center">
                <th style="width:5%" class="text-center">*</th>
                <th style="width:30%">Item</th>
                <th style="width:15%" class="text-center">Qty</th>
                <th style="width:15%" class="text-center">Collected</th>
              </tr>
            </thead>
          </table>
          <div style="text-align: center; padding-top:100px;">
              <div class="col-md-12" style="padding-top:20px;" > ................<br>Cashier Sign</div>
              <div class="col-md-12" style="padding-top:20px;"> ................<br>Stock Keeper Sign</div>
          </div>
        </div>
        <div style="display:none;page-break-before:always;" class="row" id="del_list2_div">
          <table id="del_list2" class="print-table" style="width:100%; display:none">
            <thead  style="border-bottom:dashed 2px;border-top:dashed 2px">
              <th class="text-center" colspan="4">
                <h2 style="margin-top: 5px; text-align:center">RATHNA TRADERS WAREHOUSE 02</h2>
                <h4 id="stn2"></h4>
                <h4 class="bill_no" style="text-align:left">Bill No :</h4>
                    <p  style="text-align:left" class="bill_customer">Customer: </p>
                    <h4 style="text-align:left" class="bill_date"></h4>
                    <h4  style="text-align:left" class="cash_balance">Net total: </h4>
                    <h4  style="text-align:left" class="td_delivery_charges">Delivery charges: </h4>
                    <p class="delivery_address_text" style="display:none;text-align:left"></p>
                <h4 style="text-align:left">Cashier :<?php echo $this->session->userdata['ss_user_first_name'] ?></h4>
                </th>
            <tr class="report_view_th text-center">
              <th style="width:5%" class="text-center">*</th>
              <th style="width:30%">Item</th>
              <th style="width:15%" class="text-center">Qty</th>
              <th style="width:15%" class="text-center">Collected</th>
            </tr>
              </thead>
          </table>
          <div style="text-align: center; padding-top:100px;">
              <div class="col-md-12" style="padding-top:20px;" > ................<br>Cashier Sign</div>
              <div class="col-md-12" style="padding-top:20px;"> ................<br>Stock Keeper Sign</div>
          </div>
        </div>
        
        <div style="display:none;page-break-before:always;" class="row" id="del_list3_div">
          <table id="del_list3" class="print-table" style="width:100%; display:none">
            <thead  style="border-bottom:dashed 2px;border-top:dashed 2px">
              <th class="text-center" colspan="4">
                <h2 style="margin-top: 5px; text-align:center">RATHNA TRADERS WAREHOUSE 03</h2>
                <h4 id="stn3"></h4>
                <h4 class="bill_no" style="text-align:left">Bill No :</h4>
                <p  style="text-align:left" class="bill_customer">Customer: </p>
                <h4 style="text-align:left" class="bill_date"></h4>
                <h4  style="text-align:left" class="cash_balance">Net total: </h4>
                <h4  style="text-align:left" class="td_delivery_charges">Delivery charges: </h4>
                <p class="delivery_address_text" style="display:none;text-align:left"></p>
                <h4 style="text-align:left">Cashier :<?php echo $this->session->userdata['ss_user_first_name'] ?></h4>
                </th>
            <tr class="report_view_th text-center">
              <th style="width:5%" class="text-center">*</th>
              <th style="width:30%">Item</th>
              <th style="width:15%" class="text-center">Qty</th>
              <th style="width:15%" class="text-center">Collected</th>
            </tr>
              </thead>
          </table>
          <div style="text-align: center; padding-top:100px;">
              <div class="col-md-12" style="padding-top:20px;" > ................<br>Cashier Sign</div>
              <div class="col-md-12" style="padding-top:20px;"> ................<br>Stock Keeper Sign</div>
          </div>
        </div>
        <!--
          <div class="row" style="padding-left: 6px;text-align: center    ">
              <div class="icon"  style="float: left;padding-left: 10px;">
                  <img src="<?php //echo asset_url(); ?>images/restaurant_70_1_35x35.png">
              </div>
              <div class="icon"  style="float: left">
                  <img src="<?php //echo asset_url(); ?>images/baricon_35x35.png">
              </div>
              <div class="icon"  style="float: left">
                  <img src="<?php //echo asset_url(); ?>images/double-bed_70_1_35x35.png">
              </div>
              <div class="icon"  style="float: left">
                  <img src="<?php //echo asset_url(); ?>images/delivery-truck_70_1_35x35.png">
              </div>
          </div>
          
          --> 
        
      </div>
        <style>
			.icon img{
				margin-left: 12px;
				margin-right: 12px;
              }
        </style>
      <?php /*?><div class="modal-footer" style="border:none;display:none">
        <div style="padding-top:50px;"> 
          
          <!--<div align="center" style="font-size:16px; font-weight:bold;"> K.O.T </div>-->
          
          <div class="col-xs-12">
            <p style="font-size:16px; text-align:center; font-weight:bold;margin:0px;">K.O.T </p>
            <p style="font-size:16px; text-align:left; font-weight:bold;margin: 0px 35px 0px 0px;">Bill No: </p>
            <table class="print-table" style="width:100%">
              <thead style="border-bottom:dashed;border-top:dashed">
                <tr class="report_view_th text-center">
                  <th style="width:5%" class="text-center">*</th>
                  <th style="width:75%" class="text-center">Description</th>
                  <th style="width:10%" class="text-center">Qty</th>
                </tr>
              </thead>
              <tbody>
              </tbody>
            </table>
          </div>
        </div>
      </div><?php */?>
    </div>
  </div>
</div>
