<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <link rel="stylesheet" href="style.css">
        <title>Rizwan</title>
        <style>
            
            * {
    font-size: 40px;
   font-family: Verdana, Arial, Helvetica, sans-serif;
}

td,
th,
tr,
table {
    border-top: 1px solid black;
   }

h4.description,
h4.description {
    width: 500px;
    max-width: 500px;
}

h4.description1,
h4.description1 {
    width: 600px;
    max-width: 600px;
}




td.quantity,
th.quantity {
    width: 40px;
    max-width: 40px;

}

td.price,
th.price {
    width: 75px;
    max-width: 75px;
    
}

.centered {
    text-align: center;
    align-content: center;
}

.ticket {
    width: 100%;
    max-width: 100%;
}


@media print {
    .hidden-print,
    .hidden-print * {
        display: none !important;
    }
}




    ul.nav {
  padding-left: 0px;
  //background-color: #3D99CE;
  text-align: center;
}
ul.nav > li {
  display: inline-block;
  padding: 10px 20px;
}
ul.nav > li:hover {
  //background-color: #2779BF;
}
ul.nav > li > a {
  color: white;
  text-decoration: none;
}
        </style>
    </head>
    <body>
 <!--  <img src="<?php echo base_url();?>assets/logo.png" style="width:200px;"/>
 -->
      <ul class="nav">
      <li>
          
          <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4>
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>

  <li>
     <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4>
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
              echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>


                                              <li>
          <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4>
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>
    </ul>


    <ul class="nav">
      <li>
         <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4>
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>



      <li>
          <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4> 
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>


                                                 <li>
                                                <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4> 
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>
    </ul>



       <ul class="nav">
      <li>
         <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4> 
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>



      <li>
          <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4>  
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>


                                                 <li>
           <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4> 
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>



                                                 <li>
           <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4>
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>



                                                 <li>
            <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4>
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>


                                                 <li>
           <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4> 
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>


                                                 <li>
            <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4> 
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>

                                                 <li>
           <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4> 
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>

                                                 <li>
            <h4 style="margin-left: 40%;">QC Ref# : <?php echo $fg_print[0]['qc_ref']; ?></h4>
          <h4 style="margin-left: 40%;">QC-0002-01</h4> 
        <h4 >Item:<?php echo product_name($fg_print[0]['product_id']); ?></h4>
        <h4 >Carton Weight(kg) : <?php echo $fg_print[0]['carton_weight']; ?></h4>
      <h4 class="description1" style=" ">Pack Qty:<?php echo $this->uri->segment('4'); ?> X <?php echo $this->uri->segment('5'); ?>=<?php  echo $this->uri->segment('6'); ?></h4>
      <h4 >Batch:<?php echo $fg_print[0]['batch']; ?></h4>
             


            <p class="" style="width:600px;"><?php $date = $fg_print[0]['created'];
                                                 echo date("d-m-Y,h:i:sa", strtotime($date)); ?></p></li>


                                                 
    </ul>
        
              
                
         
        <button id="btnPrint" class="hidden-print">Print</button>
        <script src="script.js"></script>
    </body>
    <script type="text/javascript">
    const $btnPrint = document.querySelector("#btnPrint");
        $btnPrint.addEventListener("click", () => {
     window.print();
});
</script>
</html>
