<!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 History</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 STOK BARANG   <?php echo  strtoupper($nama_kantor) ;?> </h2>

  	<hr>
  	<table  class="table table-bordered  ">
  		<thead>
  			<tr style="background: #cccccc;">
  				<th>No</th>
  				 
  				<th>Keterangan</th>
  				<th>Id Transaksi</th>
  				<th>Jumlah</th>
  				<th>Admin</th>
  				<th>Date</th>
  			 



  			</tr>
  		</thead>
  		<tbody>
  			<?php $no=1; foreach($barang as $rows) :  ?>


  			<tr>
  				<td><?php echo $no; ?></td>
  		 		<td><?php echo $rows->keterangan; ?></td>	
  				<td><?php echo $rows->id_transaksi; ?></td>	 
  		 		<td><?php echo $rows->jumlah; ?></td>
					<td><?php 
			              				$id_admin = $rows->id_admin; 
			              				$sql_menu = "SELECT * FROM tb_admin WHERE  id = '$id_admin' ";
			              				$main_menu = $this->db->query($sql_menu)->result();
			              				foreach ($main_menu as $maink) {
			              				echo  $maink->nama_admin;

			              				}
			              				?></td>
  				<td><?php echo $rows->date; ?></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 ><?php echo $kontak->kab_kota ; ?>, <?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>
