<!DOCTYPE html>
<html>
<?php foreach($kontak as $kontak) :   endforeach; ?>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Barang Terjual</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">
  	<h2>DATA BARANG TERJUAL TANGGAL <?php echo  strtoupper($tanggal) ;?>, </h2>
   <h4> KANTOR <?php echo  strtoupper($nama_kantor) ;?> </h4>

  	<hr>
  	<table  class="table table-bordered  ">
  		<thead>
  			<tr style="background: #cccccc;">
  				<th width="23">No</th>
  				 
  				<th>Nama Barang</th>
  				<th>Jumlah Terjual</th>
  			 



  			</tr>
  		</thead>
  		<tbody>
  			<?php $no=1; foreach($barang 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;
  			$id_rak = $row->id_rak;
  			$harga_jual_ecer = $row->harga_jual_ecer;
 

  			?>


  			<tr>
  				<td><?php echo $no; ?></td>
  		 
  				<td><?php echo $nama_barang; ?></td>
  		 

  				<td><?php echo $rows->total; ?></td>
  			 


  			</tr>
  			<?php $no++; endforeach; ?>

  		</tbody>

  	</table>
  	 



                 
  </section>
  <div class="row">
              	<div class="col-lg-12">
              		<table width="100%" border="0">
              			<tr>

              				<td >Mangetahui,</td>
              				<td width="400px;"  ></td>
              				<td >Bangkalan, <?php echo tgl_indo(date('Y-m-d'));  ?></td>
              			</tr>
              			<tr>
              				<td>Manager </td>
              				<td width="400px;"></td>
              				<td>Admin</td>
              			</tr>
              			<tr height="70px;">
              				<td></td>
              				<td></td>
              				<td></td>
              			</tr>
              			<tr>
              				<td> _____________________________ </td>
              				<td width="400px;"></td>
              				<td><strong>_____________________________</strong></td>
              			</tr>
              		</table>

              	</div><!-- /.row -->
              </div>
  <!-- /.content -->
</div>
<!-- ./wrapper -->

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