<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>
            <?php //echo menu_parameter('disposisi', false, null, $role_analis) ?>

            <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 active">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">Kadar Air Total</a>
            </div>

            <hr>
            <h4 style="color: #fff;">Nomor Lab: <?php echo $data[0]['nomor_lab'];?></h4>
            <a target="_blank" href="<?php echo site_url('download_dok/download_tdn?id_uji='.$get['id_uji'].'&status='.$get['status']); ?>" class="btn btn-primary">Cetak TDN</a>

          </div>
          <div class="panel-body table-responsive">
            <form method="post">
              <table class="table table-bordered table-striped">
                <thead>
                  <tr class="inverse">
                    <th class="text-center" rowspan="2">Nomor<br>Sampel</th>
                    <th class="text-center" rowspan="2">
                      Uraian <br>
                      <button type="submit" class="btn btn-default btn-xs"> Update </button>
                    </th>
                    <th class="text-center" colspan="5">Kadar</th>
                    <th class="text-center" rowspan="2">BETN</th>
                    <th class="text-center" rowspan="2">TDN</th>
                  </tr>
                  <tr class="inverse">
                    <th class="text-center">Air</th>
                    <th class="text-center">Abu</th>
                    <th class="text-center">Protein Kasar</th>
                    <th class="text-center">Lemak Kasar</th>
                    <th class="text-center">Serat Kasar</th>
                  </tr>
                </thead>
                <tbody>
                  <?php foreach($data as $r) { ?>
                    <tr>
                      <td rowspan="2"><?php echo nomor_id($r['nomor_sampel']); ?></td>
                      <th>Bahan Kering</th>
                      <td><?php echo $r['bk_air']; ?></td>
                      <td><?php echo $r['bk_abu']; ?></td>
                      <td><?php echo $r['bk_protein_kasar']; ?></td>
                      <td><?php echo $r['bk_lemak_kasar']; ?></td>
                      <td><?php echo $r['bk_serat_kasar']; ?></td>
                      <td rowspan="2"><?php echo $r['bk_betn']; ?></td>
                      <td rowspan="2"><?php echo $r['bk_tdn']; ?></td>

                    </tr>
                    <tr>
                      <th>As Fed</th>
                      <td><?php echo $r['air']; ?></td>
                      <td><?php echo $r['abu']; ?></td>
                      <td><?php echo $r['protein_kasar']; ?></td>
                      <td><?php echo $r['lemak_kasar']; ?></td>
                      <td><?php echo $r['serat_kasar']; ?></td>

                      <input type="hidden" name="id_sampel[]" value="<?php echo $r['nomor_sampel']; ?>">
                      <input type="hidden" name="air[]" value="<?php echo $r['air']; ?>">
                      <input type="hidden" name="abu[]" value="<?php echo $r['abu']; ?>">
                      <input type="hidden" name="protein_kasar[]" value="<?php echo $r['protein_kasar']; ?>">
                      <input type="hidden" name="lemak_kasar[]" value="<?php echo $r['lemak_kasar']; ?>">
                      <input type="hidden" name="serat_kasar[]" value="<?php echo $r['serat_kasar']; ?>">
                    </tr>
                  <?php } ?>
                </tbody>
              </table>
            </form>
          </div>
      </div>
  </div>
</div>
