<?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; ?> <?php  
                  $username = $this->session->userdata("username");  
                  $this->db->where('username',$username);
                  $query = $this->db->get('tb_admin');
                  $row = $query->row();
                  $id_admin= $row->id;
                  $nama_admin= $row->nama_admin;
               
                  $id_admin = $row->id;
                  $id_kantor = $row->id_kantor;

                    $this->db->where('id_kantor',$id_kantor);
                    $query1  = $this->db->get('tb_kantor ');
                    $row1    = $query1->row();
                   echo $nama_kantor  = $row1->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="row">
          <!-- left column -->
          <div class="col-md-6">
            <!-- general form elements -->
            <div class="card card-primary">
              <div class="card-header">
                <h3 class="card-title">Stok Opname Barang /rak <?php  
                  $username = $this->session->userdata("username");  
                  $this->db->where('username',$username);
                  $query = $this->db->get('tb_admin');
                  $row = $query->row();
                  $id_admin= $row->id;
                  $nama_admin= $row->nama_admin;
               
                  $id_admin = $row->id;
                  $id_kantor = $row->id_kantor;

                    $this->db->where('id_kantor',$id_kantor);
                    $query1  = $this->db->get('tb_kantor ');
                    $row1    = $query1->row();
                   echo $nama_kantor  = $row1->nama_kantor; ?></h3>
              </div>
              <!-- /.card-header -->
              <!-- form start -->
              <form role="form" method="post" target="blank" action="<?php echo base_url('kantor/cetak_stok_opname');?>">
                <div class="card-body">
                 
                  <div class="form-group">
                    <label for="exampleInputEmail1">Pilih Rak Barang </label>
                    <select class="form-control" name="id_rak" >
                        
                      <?php $no=1; foreach($rak as $rak) : ?> 
                      <option value="<?php echo $rak->id_rak; ?>"><?php echo $rak->nama_rak; ?></option>
                      <?php $no++; endforeach; ?>
                    </select>
                  </div>
                   
                  
                </div>
                <!-- /.card-body -->

                <div class="card-footer">
                  <button type="submit" class="btn btn-primary">Tampilkan</button>
                </div>
              </form>
            </div>
            <!-- /.card -->

           
           
 

          </div>
          <!--/.col (left) -->
          <!-- right column -->
        
          <!--/.col (right) -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

     