<!DOCTYPE html>
<html>
<?php foreach($kontak as $kontak) :   endforeach; ?>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Barcode Print</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Bootstrap 4 -->

  <!-- Font Awesome -->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/fontawesome-free/css/all.min.css">
   
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/dist/css/adminlte.min.css">

   
</head>
<body>
<div class="wrapper">
  <!-- Main content -->
  <section class="invoice">
      
              <?php $no=1; foreach($barcode_list as $rows) :

                $id_barang= $rows->id_barang;
                      $this->db->where('id',$id_barang);
                      $query = $this->db->get('tb_barang');
                      $row = $query->row();
                      $barcode_ecer = $row->barcode_ecer;
                      $nama_barang = $row->nama_barang; 
                      $harga_jual_ecer = $row->harga_jual_ecer; 
                      //
                $jumlah_samping= $rows->jumlah_samping; 
                $jumlah_baris= $rows->jumlah_baris;       
                 ?> 
                  <?php $kode=$barcode_ecer; ?>
                  <table>
                        <tr>
                          <?php for ($x=1; $x <=$jumlah_samping ; $x++) :?>
                            <td>
                              <?php for ($i=1; $i <=$jumlah_baris ; $i++) :?>
                                <div style="border-top-style: dotted;
                                border-right-style: solid;
                                border-bottom-style: dotted;
                                border-left-style: solid;
                                width: 290px; float: left; margin:5px; ">
                                <div style="text-align: center"> <h4> Rp. <?php echo nominal($harga_jual_ecer); ?> </h4> </div>
                                <div style="text-align: center"><img src="<?php echo base_url();?>laporan/barcode/<?php echo $kode;?>"> </div>
                                <div style="text-align: center"><h5><?php echo $nama_barang; ?></h5></div> 
                                <div style="text-align: center"><span style="font-size: 15"><?php echo $kontak->nama_toko; ?></span></div> 
                              </div>
                            </br> 

                          <?php endfor;?>
                        </td>
                      <?php endfor;?>
                    </tr>
                  </table>

                               


                <?php $no++; endforeach; ?>
                 
  </section>
  <!-- /.content -->
</div>
<!-- ./wrapper -->

<script type="text/javascript"> 
  window.addEventListener("load", window.print());
</script>
</body>
</html>
