<style type="text/css">
  .width-td{width: 100px;}

  .table > thead > tr > th {
     vertical-align: middle;
     text-align: center;
  }
  .table > tbody > tr > td {
     vertical-align: middle;
     text-align: center;
  }
</style>

<div class="row">
  <!-- begin col-8 -->
  <div class="col-sm-12">
      <!-- begin panel -->
      <div class="panel panel-grey">
          <div class="panel-heading">
            <div class="panel-heading-btn">
                <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-grey" data-click="panel-expand"><i class="fa fa-expand"></i></a>
            </div>
            <a href="<?php echo site_url('sampel_uji/'.$jenis_uji); ?>" class="btn btn-primary btn-md">Kembali</a>
            <hr>

          </div>

          <div class="panel panel-body table-responsive">
            <table class="table table-bordered">
              <thead>
                <tr>
                  <th>No.</th>
                  <th>Batch</th>
                  <th>Aksi</th>
                </tr>
              </thead>
              <tbody>
                <?php $i=1; foreach($data as $r){ ?>
                  <tr>
                    <td><?php echo $this->uri->segment(5) + $i++; ?></td>
                    <td><?php echo $r['nomor_batch']; ?></td>
                    <td>
                    <a href="<?php echo site_url('kontrol_sampel_list/'.$jenis_uji.'/'.$r['nomor_batch']); ?>" class="btn btn-primary btn-sm">Lihat Kontrol Sampel</a>
                      <a href="<?php echo site_url('sampel/analis/hapus_batch/'.$jenis_uji.'?nomor_batch='.$r['nomor_batch'].'&method=kontrol_sampel'); ?>" class="btn btn-danger btn-sm">Hapus</a>
                    </td>
                  </tr>
                <?php } ?>
              </tbody>
            </table>

          </div>
      </div>
  </div>
</div>
