  <!-- Modal Keraian -->
  <div class="modal fade" id="keraianModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLongTitle">Keraian</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" novalidate onsubmit="return checkformpanjar(this);">
          @csrf
        <div class="modal-body text-center">
                <input type="hidden" name="jenismodal" value="keraian"/>

                <input type="hidden" name="ambilansen1" value=""/>
                <input type="hidden" name="ambilansen5" value=""/>
                <input type="hidden" name="ambilansen10" value=""/>
                <input type="hidden" name="ambilansen20" value=""/>
                <input type="hidden" name="ambilansen50" value=""/>

                <input type="hidden" name="ambilanring1" value=""/>
                <input type="hidden" name="ambilanring5" value=""/>
                <input type="hidden" name="ambilanring10" value=""/>
                <input type="hidden" name="ambilanring20" value=""/>
                <input type="hidden" name="ambilanring50" value=""/>
                <input type="hidden" name="ambilanring100" value=""/>


                <div class="row">
                  <div class="col-4">
                    <label>Baucer No: </label>
                  </div>
                  <div class="col-8">
                    <input type="text" name="baucer" class="form-control-plaintext mb-4 baucer" readonly/>
                  </div>
                  <div class="col-4">
                    <label>Tarikh: </label>
                  </div>
                  <div class="col-8"> 
                    <input type="date" class="form-control mb-4" name="tarikh" required/>
                    <div class="invalid-feedback mb-4">
                      tarikh haruslah dimasukkan ke dalam ni!
                  </div>
                  </div>
                  <div class="col-4">
                    <label>Tuntutan Oleh: </label> 
                  </div>
                  <div class="col-8">
                    <select name="tuntutan" class="form-control mb-4" required>
                      @foreach($usercawangan as $user)
                      <option value="{{ $user->name }}">{{ $user->name }}</option>
                      @endforeach
                    </select>
                    <div class="invalid-feedback">
                      tarikh haruslah dimasukkan ke dalam ni!
                  </div>
                    {{-- <input type="text" class="form-control mb-4" name="tuntutan"/> --}}
                  </div>
                  <div class="col-4">
                    <label>Tarikh Bil: </label> 
                  </div>
                  <div class="col-8">
                    <input type="date" class="form-control was-validated mb-4" name="tarikhbil" required/>
                    <div class="invalid-feedback">
                      tarikh haruslah dimasukkan ke dalam ni!
                  </div>
                  </div>
                  <div class="col-4">
                    <label>Deskripsi:</label>
                  </div>
                  <div class="col-8">
                    <textarea row="3" name="deskripsi" class="form-control mb-4" minlength='6' maxlength='25' required> </textarea>
                    <div class="invalid-feedback">
                      tarikh haruslah dimasukkan ke dalam ni!
                  </div>
                  </div>
                  <div class="col-4">
                    <label>Bayaran (RM): </label> 
                  </div>
                  <div class="col-8">
                    <div class="row pl-3">
                      <input type="text" class="form-control-plaintext col-8" name="bayaran" required readonly/>
                      <button type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
                      <div class="invalid-feedback">
                        tarikh haruslah dimasukkan ke dalam ni!
                    </div>
                    </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">Terima</button>
        </div>
      </form>
      </div>
    </div>
  </div>

  <!-- Modal SelenggaraModal -->
  <div class="modal fade" id="SelenggaraModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLongTitle">Selenggara</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar(this);">
          @csrf
        <div class="modal-body text-center">
                <input type="hidden" name="jenismodal" value="selenggara"/>

                <input type="hidden" name="ambilansen1" value=""/>
                <input type="hidden" name="ambilansen5" value=""/>
                <input type="hidden" name="ambilansen10" value=""/>
                <input type="hidden" name="ambilansen20" value=""/>
                <input type="hidden" name="ambilansen50" value=""/>

                <input type="hidden" name="ambilanring1" value=""/>
                <input type="hidden" name="ambilanring5" value=""/>
                <input type="hidden" name="ambilanring10" value=""/>
                <input type="hidden" name="ambilanring20" value=""/>
                <input type="hidden" name="ambilanring50" value=""/>
                <input type="hidden" name="ambilanring100" value=""/>

                <div class="row">
                  <div class="col-4">
                    <label>Baucer No:</label>
                    </div>
                    <div class="col-8">
                    <input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
                  </div>
                  <div class="col-4">
                    <label>Tarikh:
                    </div>
                    <div class="col-8">
                    <input type="date" name="tarikh" class="form-control mb-4"/>
                  </div>
                  <div class="col-4">
                    <label>Tuntutan Oleh:</label>
                    </div>
                    <div class="col-8">
                    <select name="tuntutan" class="form-control mb-4">
                      @foreach($usercawangan as $user)
                        <option value="{{ $user->name }}">{{ $user->name }}</option>
                      @endforeach
                    </select>
                    {{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}}
                  </div>
                  <div class="col-4">
                    <label>Tarikh Bil:</label>
                  </div>
                  <div class="col-8">
                    <input type="date" name="tarikhbil" class="form-control mb-4"/>
                  </div>
                  <div class="col-4">
                    <label>Deskripsi:</label>
                  </div>
                  <div class="col-8">
                    <textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
                  </div>
                  <div class="col-4">
                    <label>Bayaran (RM):</label>
                  </div>
                  <div class="col-8">
                    <div class="row pl-3">
                      <input type="text" name="bayaran" readonly class="form-control col-8"/>
                      <button type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
                    </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">Terima</button>
        </div>
      </form>
      </div>
    </div>
  </div>

    <!-- Modal BelanjaamModal -->
    <div class="modal fade" id="BelanjaamModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLongTitle">Belanja AM</h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar(this);">
              @csrf
            <div class="modal-body text-center">
              <input type="hidden" name="jenismodal" value="belanjaam"/>

              <input type="hidden" name="ambilansen1" value=""/>
              <input type="hidden" name="ambilansen5" value=""/>
              <input type="hidden" name="ambilansen10" value=""/>
              <input type="hidden" name="ambilansen20" value=""/>
              <input type="hidden" name="ambilansen50" value=""/>

              <input type="hidden" name="ambilanring1" value=""/>
              <input type="hidden" name="ambilanring5" value=""/>
              <input type="hidden" name="ambilanring10" value=""/>
              <input type="hidden" name="ambilanring20" value=""/>
              <input type="hidden" name="ambilanring50" value=""/>
              <input type="hidden" name="ambilanring100" value=""/>

              <div class="row">
                <div class="col-4">
                  <label>Baucer No:</label>
                </div>
                <div class="col-8">
                  <input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
                </div>
                <div class="col-4">
                  <label>Tarikh:</label>
                </div>
                <div class="col-8">
                  <input type="date" name="tarikh" class="form-control mb-4"/>
                </div>
                <div class="col-4">
                  <label>Tuntutan Oleh:</label>
                </div>
                <div class="col-8">
                  <select name="tuntutan" class="form-control mb-4">
                    @foreach($usercawangan as $user)
                      <option value="{{ $user->name }}">{{ $user->name }}</option>
                    @endforeach
                  </select>
                  {{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}}
                </div>
                <div class="col-4">
                  <label>Tarikh Bil:</label>
                </div>
                <div class="col-8">
                  <input type="date" name="tarikhbil" class="form-control mb-4"/>
                </div>
                <div class="col-4">
                  <label>Deskripsi:</label>
                </div>
                <div class="col-8">
                  <textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
                </div>
                <div class="col-4">
                  <label>Bayaran (RM):</label>
                </div>
                <div class="col-8">
                  <div class="row pl-3">
                    <input type="text" name="bayaran" readonly class="form-control col-8"/>
                    <button type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
                  </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">Terima</button>
            </div>
          </form>
          </div>
        </div>
      </div>


       <!-- Modal PerubatanModal -->
    <div class="modal fade" id="PerubatanModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
      <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLongTitle">Perubatan</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar(this);">
            @csrf
          <div class="modal-body text-center">
              <input type="hidden" name="jenismodal" value="perubatan"/>

              <input type="hidden" name="ambilansen1" value=""/>
              <input type="hidden" name="ambilansen5" value=""/>
              <input type="hidden" name="ambilansen10" value=""/>
              <input type="hidden" name="ambilansen20" value=""/>
              <input type="hidden" name="ambilansen50" value=""/>

              <input type="hidden" name="ambilanring1" value=""/>
              <input type="hidden" name="ambilanring5" value=""/>
              <input type="hidden" name="ambilanring10" value=""/>
              <input type="hidden" name="ambilanring20" value=""/>
              <input type="hidden" name="ambilanring50" value=""/>
              <input type="hidden" name="ambilanring100" value=""/>

              <div class="row">
                <div class="col-4">
                  <label>Baucer No:</label>
                </div>
                <div class="col-8">
                  <input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
                </div>
                <div class="col-4">
                  <label>Tarikh:</label>
                </div>
                <div class="col-8">
                  <input type="date" name="tarikh" class="form-control mb-4"/>
                </div>
                <div class="col-4">
                  <label>Tuntutan Oleh:</label>
                </div>
                <div class="col-8">
                  <select name="tuntutan" class="form-control mb-4">
                    @foreach($usercawangan as $user)
                      <option value="{{ $user->name }}">{{ $user->name }}</option>
                    @endforeach
                  </select>
                  {{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}}
                </div>
                <div class="col-4">
                  <label>Tarikh Bil:</label>
                </div>
                <div class="col-8">
                  <input type="date" name="tarikhbil" class="form-control mb-4"/>
                </div>
                <div class="col-4">
                  <label>Deskripsi:</label>
                </div>
                <div class="col-8">
                  <textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
                </div>
                <div class="col-4">
                  <label>Bayaran (RM):</label>
                </div>
                <div class="col-8">
                  <div class="row pl-3">
                    <input type="text" name="bayaran" readonly class="form-control col-8"/>
                    <button type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
                  </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">Terima</button>
          </div>
        </form>
        </div>
      </div>
    </div>

      <!-- Modal DapurModal -->
      <div class="modal fade" id="DapurModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLongTitle">Dapur</h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar(this);">
              @csrf
            <div class="modal-body text-center">
                <input type="hidden" name="jenismodal" value="dapur"/>

                <input type="hidden" name="ambilansen1" value=""/>
                <input type="hidden" name="ambilansen5" value=""/>
                <input type="hidden" name="ambilansen10" value=""/>
                <input type="hidden" name="ambilansen20" value=""/>
                <input type="hidden" name="ambilansen50" value=""/>
  
                <input type="hidden" name="ambilanring1" value=""/>
                <input type="hidden" name="ambilanring5" value=""/>
                <input type="hidden" name="ambilanring10" value=""/>
                <input type="hidden" name="ambilanring20" value=""/>
                <input type="hidden" name="ambilanring50" value=""/>
                <input type="hidden" name="ambilanring100" value=""/>

                <div class="row">
                  <div class="col-4">
                    <label>Baucer No:</label>
                  </div>
                  <div class="col-8">
                    <input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
                  </div>

                  <div class="col-4">
                    <label>Tarikh:</label>
                  </div>
                  <div class="col-8">
                    <input type="date" name="tarikh" class="form-control mb-4"/>
                  </div>
                  <div class="col-4">
                    <label>Tuntutan Oleh:</label>
                  </div>
                  <div class="col-8">
                    <select name="tuntutan" class="form-control mb-4">
                      @foreach($usercawangan as $user)
                        <option value="{{ $user->name }}">{{ $user->name }}</option>
                      @endforeach
                    </select>
                    {{-- <input type="text" name="tuntutan" class="form-control mb-4"/> --}}
                  </div>
                  <div class="col-4">
                    <label>Tarikh Bil:</label>
                  </div>
                  <div class="col-8">
                    <input type="date" name="tarikhbil" class="form-control mb-4"/>
                  </div>
                  <div class="col-4">
                    <label>Deskripsi:</label>
                  </div>
                  <div class="col-8">
                    <textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
                  </div>
                  <div class="col-4">
                    <label>Bayaran (RM):</label>
                  </div>
                  <div class="col-8">
                    <div class="row pl-3">
                      <input type="text" name="bayaran" readonly class="form-control col-8"/>
                      <button type="button" type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
                    </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">Terima</button>
            </div>
          </form>
          </div>
        </div>
      </div>
      
      <!-- Modal PosModal -->
      <div class="modal fade" id="PosModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLongTitle">Perbelanjaan Pos</h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <form name="frmmodal" method="post" action="{{ route('khazanah.createpanjar') }}" onsubmit="return checkformpanjar(this);">
              @csrf
            <div class="modal-body text-center">
                <input type="hidden" name="jenismodal" value="pos"/>

                <input type="hidden" name="ambilansen1" value=""/>
                <input type="hidden" name="ambilansen5" value=""/>
                <input type="hidden" name="ambilansen10" value=""/>
                <input type="hidden" name="ambilansen20" value=""/>
                <input type="hidden" name="ambilansen50" value=""/>
  
                <input type="hidden" name="ambilanring1" value=""/>
                <input type="hidden" name="ambilanring5" value=""/>
                <input type="hidden" name="ambilanring10" value=""/>
                <input type="hidden" name="ambilanring20" value=""/>
                <input type="hidden" name="ambilanring50" value=""/>
                <input type="hidden" name="ambilanring100" value=""/>
                
                <div class="row">
                  <div class="col-4">
                    <label>Baucer No:</label>
                  </div>
                  <div class="col-8">
                    <input type="text" name="baucer" class="form-control mb-4 baucer" readonly/>
                  </div>
                  <div class="col-4">
                    <label>Tarikh:</label>
                  </div>
                  <div class="col-8">
                    <input type="date" name="tarikh" class="form-control mb-4"/>
                  </div>
                  <div class="col-4">
                    <label>Tarikh Bil:</label>
                  </div>
                  <div class="col-8">
                    <input type="date" name="tarikhbil" class="form-control mb-4"/>
                  </div>
                  <div class="col-4">
                    <label>Deskripsi:</label>
                  </div>
                  <div class="col-8">
                    {{-- <input type="text" name="deskripsi" class="form-control mb-4"/> --}}
                    <textarea row="3" name="deskripsi" class="form-control mb-4"> </textarea>
                  </div>
                  <div class="col-4">
                    <label>Bayaran (RM):</label>
                  </div>
                  <div class="col-8">
                    <div class="row pl-3">
                      <input type="text" readonly name="bayaran" class="form-control col-8"/>
                      <button type="button" type="button" class="btn btn-primary ml-1 col-3" onclick="openupdeno();">Deno</button>
                    </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">Terima</button>
            </div>
          </form>
          </div>
        </div>
      </div>
  

      