  <!-- Modal Wakil -->
  <div class="modal fade" id="pendahuluanserahanModal" tabindex="-1" role="dialog" aria-labelledby="pendahuluanserahanModalCenterTitle" 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="pendahuluanserahanModalTitle">Daftar Pendahuluan / Serahan</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="text-center mx-auto">
            <input type="radio" name="radwang" id="radiopendahuluanserahan" value="pendahuluan"/><label class="ml-2">Wang Pendahuluan Daripada HQ</label>
            <input type="radio" name="radwang" id="radiopendahuluanserahan" value="serahan" class="ml-3"/><label class="ml-2">Wang Serahan Kepada HQ</label>
            <div class="invalid-feedback">Pilih Jenis Pendahuluan-Serahan</div>
          </div>

          <div class="text-center mx-auto mt-4">
            <div class="row">
              <label class="col-2 mt-2">Tarikh</label>
              <input type="text" class="form-control col-4 mt-2" id="tarikh" name="tarikh" readonly/>
            </div>
            <div class="row"> 
              <label class="col-2 mt-2">Debit Akaun</label>
              <input type="text" class="form-control col-4 mt-2" name="dtacct" id="dtacct" readonly/>
            </div>
            <div class="row"> 
              <label class="col-2 mt-2">Kredit (RM)</label>
              <input type="text" class="form-control col-4 mt-2" name="ktacct" id="ktacct" readonly/>
            </div>
            <div class="row">
              <label class="col-2 mt-2">Keterangan</label>
              <input type="text" class="form-control col-8 mt-2" name="keterangan" id="keterangan"/>
              <span name="errorketerangan" style="color:red;margin-left:130px;" class="col-12 text-left"></span>
            </div>
            <div class="row"> 
              <label class="col-2 mt-2">Amaun (RM)</label>
              <input type="text" class="form-control col-4 mt-2" name="amaun" id="amaun" onkeypress="return validateformat(event)"/>
              <span name="erroramaun" style="color:red;margin-left:130px;" class="col-12 text-left"></span>
            </div>
          </div>

          <!-- <input type="hidden" id="auth_user" name="auth_user" value=""/> -->
          <input type="hidden" id="auth_user" name="auth_user" value="{{ Auth::user()->id }}">



        </div>

        <div class="modal-footer">
            <button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button>
            <button type="button" id="terima_transaksi" class="btn btn-success btn-lg" onclick="functerima()">Terima</button>
        </div>
      </div>
    </div>
  </div>
