<?php foreach($kontak as $kontak) :   endforeach; ?>
<?php foreach($admin_login as $user) :   endforeach; ?> 
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark"> 
            		 <?php echo $title1.' '.$nama_kantor ?> 
            		  

            </h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active"><?php echo $title1; ?></li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
	    
          
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
      	  <div class="card">
              <div class="card-header">
                 

              </div>
              <!-- /.card-header -->
              <div class="card-body">
              	<table id="mytable2" class="table table-bordered table-striped">
              		<thead>
              			<tr>
              			 
              				<th>Barcode Ecer</th>
              			    <th>Barcode Dos</th>
              				<th>Nama Barang</th>
              				<th>Harga Jual</th>
              				<th>Rak </th>
                      <th>Stok </th>
              				  <?php 
                      $username = $this->session->userdata("username");  
                      $this->db->where('username',$username);
                      $query = $this->db->get('tb_admin');
                      $row = $query->row();
                     
                      $level = $row->level;

                       ?>
                      <?php  
                        if($level =='manager'){
                      ?>  
                      <th>Aksi</th>

                      <?php } ?>
                      
              		</thead>
              	 
              	</table>
              </div>
              <!-- /.card-body -->
            </div>
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
    <form id="add-row-form" action="<?php echo site_url('crudd/update_satuan');?>" method="post">
       <div class="modal fade" id="ModalUpdate" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
          <div class="modal-dialog">
             <div class="modal-content">
                 <div class="modal-header">
                     <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                     
                 </div>
                 <div class="modal-body">
                   <div class="form-group">
                      <label for="exampleInputEmail1">STOK BARU</label>
                        <input type="number" name="stok_aplikasi_baru" class="form-control" placeholder="Masukkan Jumlah" required autofocus="autofocus">
                    </div> 
                    
                    <div class="form-group">
                      <label for="exampleInputEmail1">ID STOK</label>
                       <input type="text" name="id_stok" class="form-control" placeholder="id stok" readonly>
                    </div>
             
                    <div class="form-group">
                      <label for="exampleInputEmail1">NAMA BARANG</label>
                      <input type="text" name="nama_barang" class="form-control" placeholder="Nama Barang" readonly>
                    </div>
                    <div class="form-group">
                      <label for="exampleInputEmail1">STOK SEBELUMNYA</label>
                       <input type="number" name="stok_aplikasi" class="form-control" placeholder="stok aplikasi" readonly="">
                    </div>
                   
                 </div>
                 <div class="modal-footer">
                      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                      <button type="submit" class="btn btn-success">Update</button>
                 </div>
              </div>
          </div>
       </div>
   </form>
  