  <!-- Modal HistoryBayaran -->
  <div class="modal fade" id="AGHModal" tabindex="-1" role="dialog" aria-labelledby="ModalCenterTitle" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title text-center" id="ModalTitle">Surat Akuan Gadai Hilang</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">  
          
          <div class="container">
            <form name="frmagh" target="_blank" action="{{ route('agh.create') }}" onsubmit="return checkAGH();" method="POST">
              @csrf
              <input type="hidden" name="norujukanhidden" id="norujukanhidden"/>
            <div class="col-12 row">
              <div class="col-5"><label class="mt-1">Sebab Aduan :</label></div>
              <div class="col-7">
                <select name="alasan" id="alasan" class="form-control" required>
                  <option value="Simpanan">Simpanan</option>
                  <option value="Bencana alam">Bencana alam</option>
                  <option value="Kecurian">Kecurian</option>
                  <option value="Di Ragut">Di Ragut</option>
                  <option value="Kes Polis">Kes Polis</option>
                  <option value="Hilang">Hilang</option>
                </select>
              </div>
            </div>

            <div class="col-12 row mt-2">
              <div class="col-5"><label class="mt-1">Negeri Aduan :</label></div>
              <div class="col-7">
                <select name="negeriagh" id="negeriagh" class="form-control" required>
                  @foreach($negeri as $neg)
                  <option value="{{ $neg['kodnegeri'] }}">{{ $neg['negeri'] }}</option>
                  @endforeach
                </select>
              </div>
            </div>


            <div class="col-12 row mt-2">
              <div class="col-5"><label class="mt-1">Daerah Aduan :</label></div>
              <div class="col-7">
                <select name="daerahagh" id="daerahagh" class="form-control" disabled required>
                  <option value="No-Data">Sila Pilih Daerah *</option>
                </select>
              </div>
              <span id="errordaerah" class="invisible text-red text-center mx-auto text-bold pt-2">Sila pilih daerah dalam kotak disediakan*</span>
            </div>
          </div>

          
        </div>

        <div class="modal-footer">
            <button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
            <button type="submit" class="btn btn-success">Hantar</button>
        </div>
      </form>
      </div>
    </div>
  </div>


    <!-- Modal HistoryBayaran -->
    <div class="modal fade" id="AGHModalEdit" tabindex="-1" role="dialog" aria-labelledby="ModalCenterTitle" aria-hidden="true">
      <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title text-center" id="ModalTitle">Surat Akuan Gadai Hilang</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">  
            
            <div class="container">
              <form name="frmagh" target="_blank" action="{{ route('agh.update') }}" onsubmit="return checkAGH();" method="POST">
                @csrf
                <input type="hidden" name="norujukanhidden" id="norujukanhiddenedit"/>
              <div class="col-12 row">
                <div class="col-5"><label class="mt-1">Jenis Alasan :</label></div>
                <div class="col-7">
                  <select name="alasan" id="alasanedit" class="form-control">
                    <option value="Simpanan">Simpanan</option>
                    <option value="Bencana alam">Bencana alam</option>
                    <option value="Kecurian">Kecurian</option>
                    <option value="Di Ragut">Di Ragut</option>
                    <option value="Kes Polis">Kes Polis</option>
                    <option value="Hilang">Hilang</option>
                  </select>
                </div>
              </div>
  
              <div class="col-12 row mt-2">
                <div class="col-5"><label class="mt-1">Negeri :</label></div>
                <div class="col-7">
                  <select name="negeriagh" id="negeriaghedit" class="form-control">
                    @foreach($negeri as $neg)
                    <option value="{{ $neg['kodnegeri'] }}">{{ $neg['negeri'] }}</option>
                    @endforeach
                  </select>
                </div>
              </div>
  
  
              <div class="col-12 row mt-2">
                <div class="col-5"><label class="mt-1">Daerah :</label></div>
                <div class="col-7">
                  <select name="daerahagh" id="daerahaghedit" class="form-control" disabled>
                    <option value="No Data">Sila Pilih Negeri *</option>
                  </select>
                </div>
              </div>
            </div>
  
            
          </div>
  
          <div class="modal-footer">
              <button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button>
              <button type="submit" class="btn btn-success">Hantar</button>
          </div>
        </form>
        </div>
      </div>
    </div>



