<style type="text/css">
    .table > thead > tr > th {
        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>
                  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-grey" data-click="panel-remove"><i class="fa fa-times"></i></a>
              </div>
              <?= select_parameter(); ?>
              <hr>

            </div>
            <div class="panel panel-body table-responsive">
              <form method="post" action="<?= site_url('sampel/pelayuan_sampel/create_edit2'); ?>">
              <button class="btn btn-primary mb-2">Layukan Sampel</button>
              <a href="<?= site_url('sampel/pelayuan_sampel/riwayat_pelayuan'); ?>" class="btn btn-primary mb-2">Riwayat Pelayuan</a>
              <table class="table table-bordered table-striped">
                <thead class="text-center">
                  <tr class="grey">
                    <th rowspan="2">No</th>
                    <th rowspan="2">Aksi</th>
                    <th rowspan="2">Nomor Sampel</th>
                    <th colspan="2">Tgl&nbsp;dan&nbsp;Pukul sebelum&nbsp;Masuk&nbsp;Oven</th>
                    <th rowspan="2">Berat&nbsp;Segar (gram)</th>
                    <th colspan="2">Tgl&nbsp;dan&nbsp;Pukul setelah&nbsp;Keluar&nbsp;Oven</th>
                    <th rowspan="2">Berat Kering (gram)</th>
                    <th rowspan="2">Kadar&nbsp;Air&nbsp;1 (%)</th>
                    <th colspan="2">Pelaksana</th>
                    <th rowspan="2">Paraf Penyelia</th>
                    <th rowspan="2">Keterangan</th>
                  </tr>
                  <tr class="grey">
                    <th>Tanggal</th>
                    <th>Pukul</th>
                    <th>Tanggal</th>
                    <th>Pukul</th>
                    <th>Nama</th>
                    <th>Paraf</th>
                  </tr>
                </thead>
                <tbody>
                  <?php $i=1; foreach($data as $r) {?>
                    <tr>
                      <td><?php echo $this->uri->segment(3)+$i++; ?></td>
                      <td>
                        <input type="checkbox" name="check_pelayuan[]" value="<?= $r['id_sampel']; ?>">
                        <!-- <?php echo aksi_button('start'); ?>
                            <li>
                                <a href="<?php echo site_url('pelayuan_sampel_update/'.$id_uji.'/'.$r['id_sampel'].'/'.$id_status) ?>">Form Pelayuan</a>
                            </li>
                        <?php echo aksi_button('end'); ?> -->
                      </td>
                      <td><?php echo nomor_id($r['id_sampel']); ?></td>
                      <td><?php echo str_replace(' ', '&nbsp', indo_datetime($r['tgl_pukul_sebelum_dioven'])); ?></td>
                      <td><?php echo get_str_time($r['tgl_pukul_sebelum_dioven']); ?></td>
                      <td><?php echo $r['berat_segar']; ?></td>
                      <td><?php echo str_replace(' ', '&nbsp', indo_datetime($r['tgl_pukul_setelah_dioven'])); ?></td>
                      <td><?php echo get_str_time($r['tgl_pukul_setelah_dioven']); ?></td>
                      <td><?php echo $r['berat_kering']; ?></td>
                      <td><?php echo $r['kadar_air']; ?></td>
                      <td><?php echo $r['nama_pelaksana']; ?></td>
                      <td><?php echo $r['paraf_pelaksana']; ?></td>
                      <td><?php echo $r['paraf_penyelia']; ?></td>
                      <td><?php echo $r['keterangan']; ?></td>
                    </tr>
                  <?php } ?>
                </tbody>
              </table>
              </form>
            </div>
            <div class="panel panel-footer">

            </div>
        </div>

    </div>
</div>
