<div class="row">
  <!-- begin col-8 -->
  <div class="col-lg-12">
      <!-- begin panel -->
      <form class="form-horizontal" method="post" name="" action="">
      <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>
              <a onclick="goBack()" class="btn btn-primary m-b-5"><span class="fa fa-arrow-left"></span> Kembali</a>
              <hr>
          </div>
          <div class="panel-body">
              <div class="col-sm-10">
                <div class="form-group m-b-11">
                    <input name="id_uji" type="hidden" value="<?php echo $vget['id_uji']; ?>" required>
                    <label class="col-md-4 col-form-label control-label">Lisin<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['lisin'] : '' ?>" name="lisin" type="text" class="form-control" placeholder="Lisin" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Lisin (Min)<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['min_lisin'] : '' ?>" name="min_lisin" type="text" class="form-control" placeholder="Lisin (Min)" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Metionin<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['metionin'] : '' ?>" name="metionin" type="text" class="form-control" placeholder="Metionin" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Metionin (Min)<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['min_metionin'] : '' ?>" name="min_metionin" type="text" class="form-control" placeholder="Metionin (Min)" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Metionin + Sistin<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['metionin_sistin'] : '' ?>" name="metionin_sistin" type="text" class="form-control" placeholder="Nama Pelanggan" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Metionin + Sistin (Min)<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['min_metionin_sistin'] : '' ?>" name="min_metionin_sistin" type="text" class="form-control" placeholder="Metionin + Sistin (Min)" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Treonin<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['treonin'] : '' ?>" name="treonin" type="text" class="form-control" placeholder="Treonin" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Treonin (Min)<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['min_treonin'] : '' ?>" name="min_treonin" type="text" class="form-control" placeholder="Treonin (Min)" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Triptofan<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['triptofan'] : '' ?>" name="triptofan" type="text" class="form-control" placeholder="Triptofan" required>
                    </div>
                </div>
                <div class="form-group m-b-11">
                    <label class="col-md-4 col-form-label control-label">Triptofan (Min)<span class="text-danger">*</span></label>
                    <div class="col-md-7">
                        <input value="<?php echo isset($edit) ? $edit['min_triptofan'] : '' ?>" name="min_triptofan" type="text" class="form-control" placeholder="Triptofan (Min)" required>
                    </div>
                </div>

            </div>
        </div>
        <div class="panel panel-footer">
          <div class="col-sm-10">
            <div class="form-group m-b-11">
                <label class="col-md-4 col-form-label control-label"></label>
                <div class="col-md-7">
                    <button type="submit" class="btn btn-md btn-success">Simpan</button>
                    <button type="reset" class="btn btn-md btn-warning">Reset</button>
                    <a onclick="goBack();" class="btn btn-md btn-danger">Batal</a>
                </div>
            </div>
          </div>
        </div>
      </div>
      </form>
  </div>
</div>

<script type="text/javascript">
    <?php if(isset($edit) && '5' == $edit['id_penanganan_kerja']) { ?>
      $('.ket_penanganan_kerja').show();
    <?php }else { ?>
      $('.ket_penanganan_kerja').hide();
    <?php } ?>

    <?php if(isset($edit) && strpos('2|3|4|', $edit['id_bentuk_sampel']) !== false) { ?>
        $('#jenis_padat').show();
    <?php }else { ?>
        $('#jenis_padat').hide();
    <?php } ?>
    function pilihJenis(x){
        if(x === 'Padat'){
            $('#jenis_padat').show();
        }else{
            $('#jenis_padat').hide();
        }

        $.post( "<?php echo site_url('sampel/pengajuan/get_penanganan_sampel_arsip') ?>", { type: x}, function( data ) {
            $(".id_penanganan_arsip").html(data);
        });
    }

    function onPenangananKerja(x){
      if(x == '5'){
        $('.ket_penanganan_kerja').show();
      } else{
        $('.ket_penanganan_kerja').hide();
      }
    }

</script>
