<div class="row">
    <!-- begin col-8 -->
    <div class="col-sm-12">
        <!-- begin panel -->
      <form class="form-horizontal" method="post">
        <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>
              <div class="btn-group" role="group" aria-label="Group Button Penyiapan Sampel">
                <a href="<?php echo site_url('sampel/pengajuan') ?>" class="btn btn-primary m-b-5">
                  <span class="fa fa-arrow-left"></span> Kembali
                </a>
                <a href="<?php echo site_url('sampel/pengajuan/verifikasi_penyelia?id_uji='.$get['id_uji'].'&status='.$get['status']); ?>" class="btn btn-warning m-b-5">Verifikasi Penyelia</a>
                <a href="<?php echo site_url('sampel/pengajuan/tdn?id_uji='.$get['id_uji'].'&status='.$get['status']); ?>" class="btn btn-warning m-b-5">TDN</a>
                <a href="<?php echo site_url('sampel/pengajuan/kadar_air_total?id_uji='.$get['id_uji'].'&status='.$get['status']); ?>" class="btn btn-warning m-b-5 active">Kadar Air Total</a>
              </div>
              <hr>

              <button type="submit" class="btn btn-sm">Update Data</button>

            </div>
            <div class="panel-body table-responsive">
              <?php foreach($data as $r) { ?>
                <div class="panel panel-default">
                  <div class="panel-heading">
                      <table class="">
                        <tr>
                          <th rowspan="2" class="text-center">
                            <a href="javascript:;" class="btn btn-md btn-icon btn-circle btn-warning" data-click="panel-collapse" data-original-title="" title=""><i class="fa fa-minus"></i></a>
                          </th>
                          <td rowspan="2" width="10"></td>
                          <th>No. Sampel</th>
                          <td>:</td>
                          <td><?php echo $r['nomor_sampel']; ?></td>

                          <td rowspan="2" width="30"></td>

                          <th>Tanggal Mulai Perhitungan</th>
                          <td>:</td>
                          <td><?php echo set_indo_time($r['tgl3_mulai']); ?></td>
                        </tr>
                        <tr>
                          <th>No. Permintaan Lab</th>
                          <td>:</td>
                          <td><?php echo $r['nomor_lab']; ?></td>

                          <th>Tgl Selesai Perhitungan</th>
                          <td>:</td>
                          <td><?php echo set_indo_time($r['tgl3']); ?></td>
                        </tr>
                      </table>
                  </div>
                  <div class="panel-body bg-grey" style="display:none;">
                    <table class="table table-bordered table-striped">
                      <thead class="text-center">
                        <tr class="inverse">
                          <th colspan="2">Nomor sampel</th>
                          <th>Kadar Air I (%)</th>
                          <th>Kadar Air II (%)</th>
                          <th>Kadar Air Total (%)</th>
                        </tr>
                      </thead>
                      <tbody class="bg-white text-center">
                        <tr>
                          <td colspan="2"><?php echo nomor_id($r['nomor_sampel']); ?></td>
                          <td><?php echo $r['kadar_air1'] ;?></td>
                          <td><?php echo $r['kadar_air2'] ;?></td>
                          <td><?php echo $r['kadar_air3'] ;?></td>

                          <input type="hidden" name="id_sampel[]" value="<?php echo $r['nomor_sampel'] ;?>">
                          <input type="hidden" name="kadar_air1[]" value="<?php echo $r['kadar_air1'] ;?>">
                          <input type="hidden" name="kadar_air2[]" value="<?php echo $r['kadar_air2'] ;?>">

                        </tr>
                        <tr>
                          <th>Nama PJ</th>
                          <th>:</th>
                          <td><?php echo $r['pj_air1'] ;?></td>
                          <td>Anitha<?php //echo $r['pj_air2'] ;?></td>
                          <td><?php echo $r['pj_air3'] ;?></td>
                        </tr>
                        <!-- <tr>
                          <th>Paraf</th>
                          <th>:</th>
                          <td></td>
                          <td></td>
                          <td></td>
                        </tr> -->
                        <tr>
                          <th>Tanggal</th>
                          <th>:</th>
                          <td><?php echo set_indo_date_from_timestemp($r['tgl1']) ;?></td>
                          <td><?php echo set_indo_date_from_timestemp($r['tgl2']) ;?></td>
                          <td><?php echo set_indo_date_from_timestemp($r['tgl3']) ;?></td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                </div>
              <?php } ?>

            </div>
            <div class="panel-footer">

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