<html>
    <!--<style>
    @page {
        size: 3in;
        margin: 5mm 5mm 5mm 5mm;
    }
    table{
        width:100%;
    }
    td {
      border-top: 1px solid black;
      border-bottom: 1px solid black;
    }
}
    </style>-->
    <style>
    ul{
        padding-left:0px;
    }
    li{
        list-style-type:none
    }
    @page {
        size: 3in;
            margin: 5mm 5mm 5mm 5mm;
        }
        table{
            width:100%;
        }
        td {
            border-top: 1px solid black;
            border-bottom: 1px solid black;
        }
    }
    </style>
    <body>
        K.O.T <br/>
    <div id="invoice-POS">
    
    <center id="top">
      <div class="logo"></div>
      <div class="info"> 
        <h2>K.O.T</h2>
      </div><!--End Info-->
    </center><!--End InvoiceTop-->
    
      <div class="info">
          <ul>
              <li><?php echo "BILL NO:". $sale_info->sale_id; ?></li>
              <li>
                  <strong>
                      <?php
                      $dt_name ="DINE IN.";
                      if($sale_info->dine_type == 1)
                        $dt_name ="DINE IN";
                      
                      if($sale_info->dine_type == 2)
                        $dt_name ="TAKE AWAY";
                      
                      if($sale_info->dine_type == 3)
                        $dt_name ="DELIVERY";
                      
                      echo $dt_name; ?>
                </strong>
              </li>
              <?php if($sale_info->table_id > 0){ ?>
              <li>
                  <?php echo ($sale_info->continued == 1)?"CONTINUE ORDER TO ":""; ?> TABLE NO   : <?php echo $sale_info->table_id; ?>
              </li>
              <?php } ?>
              <?php if($sale_info->kitchen_note != ""){ ?><li><?php echo "NOTE:". $sale_info->kitchen_note; ?></li><?php } ?>
          </ul>
      </div>
    <!--End Invoice Mid-->
    <table>
  <tr>
    <th>ITEM</th>
    <th>QTY</th>
  </tr>
  <?php
  foreach($sale_items as $row){
      
      echo '<tr>
                <td>'.$row->product_name.'</td>
                <td>'.$row->quantity.'</td>
            </tr>';
  }
  ?>
  
  
</table>
				
				<!--End InvoiceBot-->
  </div><!--End Invoice-->
  <script>
        window.print();
        setTimeout(function(){
            window.close();
        },1000);
  </script>
</body>
</html>