  <!-- Modal Wakil -->
  <div class="modal fade" id="PermohonanWang" tabindex="-1" role="dialog" aria-labelledby="PermohonanWangCenterTitle" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-centered" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="PermohonanWangTitle">Daftar Permohonan</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <form id="permohonanform" method="post" action="{{ route('permohonan.simpan') }}">
          @csrf
          <div class="modal-body">
            <div class="text-center mx-auto mb-4">
              <input type="radio" name="radwang" id="radwang" value="permohonanwang" checked/><label class="ml-2" for="permohonanwang">Permohonan Wang</label>
              <input type="radio" name="radwang" id="radwang" value="bayaranbalik" class="ml-3"/><label class="ml-2" for="bayaranbalik">Bayaran Balik</label>
              <div id="pilihper" class="invalid-feedback">*Pilih Jenis Permohonan</div>
            </div>

            <div class="col-12 d-flex mb-2">
                <label class="col-8">Jumlah Permohonan (RM)</label>
                <div class="col-4">
                <input type="text" name="jumlahmohon" id="jumlahmohon" class="form-control" placeholder="Jumlah Permohonan (RM)"/>
                <div id="erroramaun" class="invalid-feedback">*Nyatakan Jumlah Permohonan</div>
                </div>
              </div>

            <div class="col-12 d-flex mb-2">
                <label class="col-8">Tarikh Mohon</label>
                <p class="col-6">{{ $tarikhsemasa }}</p>
                <input type="hidden" id="tarikhmohon" name="tarikhmohon" readonly class="col-6 form-control" value="{{ $tarikhsemasa }}"/>
            </div>

            <div class="col-12 d-flex mb-2">
                <label class="col-8">Baki Peti Besi (RM)</label>
                <p class="col-6">RM {{ number_format($getVault,2) }}</p>
                <input type="hidden" id="bakipetibesi" name="bakipetibesi" readonly class="col-6 form-control" value="{{ $getVault }}"/>
            </div>

            {{-- <div class="col-12 d-flex mb-2">
                <label class="col-6">Pembiayaan Terkumpul (RM)</label>
                <input type="text" readonly class="col-6 form-control"/>
            </div> --}}

            <div class="col-12 d-flex mb-2">
                <label class="col-8">Outstanding (RM)</label>
                <p class="col-6">RM {{ number_format($dashboard[0]['outstanding'],2) }}</p>
                <input type="hidden" id="outstanding" name="outstanding" readonly class="col-6 form-control" value="{{ $dashboard[0]['outstanding'] }}"/>
            </div>
          </div>

          <div class="modal-footer">
              <button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button>
              <button type="button" id="terima_permohonan" class="btn btn-success btn-lg" onclick="funcpermohonan()">Daftar</button>
          </div>
        </form>
      </div>
    </div>
  </div>
