<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>
                <div class="row">
                  <?php if(in_array($idGroup, array('1','6'))) { ?>
                  <div class="col-sm-7">
                    <?php if(!empty($data)) { ?>
                        <a href="<?php echo site_url('sampel/asam_amino/create_edit/'.$data['id'].'?id_uji='.$vget['id_uji']); ?>" class="btn btn-primary">Edit Data</a>
                        <a href="<?php echo site_url('sampel/asam_amino/lhp_amino/'.$data['id'].'?id_uji='.$vget['id_uji']); ?>" class="btn btn-primary">Input LHP Asam Amino</a>
                        <a target="_blank" href="<?php echo site_url('download_dok/download_lhp_amino/'.$data['id'].'?id_uji='.$vget['id_uji']); ?>" class="btn btn-primary">Download LHP Asam Amino</a>
                    <?php }else { ?>
                        <a href="<?php echo site_url('sampel/asam_amino/create_edit?id_uji='.$vget['id_uji']); ?>" class="btn btn-primary">Tambah Data</a>
                    <?php } ?>
                    <hr>
                  </div>
                <?php } else{?>
                  <div class="col-sm-2">
                    <button class="btn btn-grey"></button>
                  </div>
                <?php } ?>
                  <div class="col-sm-3">
                    <form>
                      <!-- <input class="form-control"> -->
                    </form>
                  </div>
                </div>
            </div>
            <div class="panel panel-body">
                <div class="row">
                    <div class="col-sm-6">
                        <div class="row">
                            <label class="col-sm-5">Waktu Tanggal persetujuan</label>
                            <div class="col-sm-6">: <?php echo set_indo_time($data['waktu_tanggal_persetujuan']); ?></div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="row">
                            <label class="col-sm-5">Nama Instansi</label>
                            <div class="col-sm-6">: <?php echo $data['nama_instansi']; ?></div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="row">
                            <label class="col-sm-5">Nama Pelanggan</label>
                            <div class="col-sm-6">: <?php echo $data['nama_pelanggan']; ?></div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="row">
                            <label class="col-sm-5">Cara Pengujian</label>
                            <div class="col-sm-6">: <?php echo $data['cara_pengujian']; ?></div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="row">
                            <label class="col-sm-5">Sampel yang Diuji</label>
                            <div class="col-sm-6">: <?php echo $data['sampel_yang_diuji']; ?></div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="row">
                            <label class="col-sm-5">Laboratorium Subkontraktor</label>
                            <div class="col-sm-6">: <?php echo $data['laboratorium_subkontraktor']; ?></div>
                        </div>
                    </div>
                </div>
                <div class="table-responsive">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr>
                                <th class="text-center" rowspan="2"><br>No.</th>
                                <th class="text-center" rowspan="2"><br>No. Uji</th>
                                <th class="text-center" rowspan="2"><br>Jenis / Asal Sampel</th>
                                <th class="text-center" colspan="2">Lisin</th>
                                <th class="text-center" colspan="2">Metionin</th>
                                <th class="text-center" colspan="2">Metionin+Sistin</th>
                                <th class="text-center" colspan="2">Treonin</th>
                                <th class="text-center" colspan="2">Triptofan</th>
                            </tr>
                            <tr>
                                <th class="text-center">Sampel</th>
                                <th class="text-center">SNI<br>(Min)</th>
                                <th class="text-center">Sampel</th>
                                <th class="text-center">SNI<br>(Min)</th>
                                <th class="text-center">Sampel</th>
                                <th class="text-center">SNI<br>(Min)</th>
                                <th class="text-center">Sampel</th>
                                <th class="text-center">SNI<br>(Min)</th>
                                <th class="text-center">Sampel</th>
                                <th class="text-center">SNI<br>(Min)</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $z=1; foreach($lhp_amino as $r) { ?>
                                <tr>
                                    <td class="text-center"><?php echo $this->uri->segment(3) + $z++; ?></td>
                                    <td><?php echo nomor_id($r['id_uji']); ?></td>
                                    <td><?php //echo $r['id_uji']; ?></td>
                                    <td><?php echo $r['lisin']; ?></td>
                                    <td><?php echo $r['min_lisin']; ?></td>
                                    <td><?php echo $r['metionin']; ?></td>
                                    <td><?php echo $r['min_metionin']; ?></td>
                                    <td><?php echo $r['metionin_sistin']; ?></td>
                                    <td><?php echo $r['min_metionin_sistin']; ?></td>
                                    <td><?php echo $r['treonin']; ?></td>
                                    <td><?php echo $r['min_treonin']; ?></td>
                                    <td><?php echo $r['triptofan']; ?></td>
                                    <td><?php echo $r['min_triptofan']; ?></td>
                                </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
