<div class="modal" id="modal-form_create" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" >
   <div class="modal-dialog modal-md">
      <div class="modal-content">
     
<form class="form-horizontal" data-toggle="validator" method="post" id="form-create">
   {{ csrf_field() }} {{ method_field('POST') }}
   
   <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"> &times; </span> </button>
      <h6 class="modal-title">Kas Biaya</h6>
   </div>
   <br>

   <input type="hidden" id="id" name="id">
 
<div style="padding: 2px 45px;">
    
    <div class="form-group">
        <label>Project</label>
        <select type="text" id="prj" name="prj" class="form-control" required autofocus autocomplete="off">
            <option value="">--- Pilih Project ---</option>
            @foreach($prj as $pp)
                <option value="{{ $pp->id }}">{{ $pp->project_name.' ['.$pp->initial.']' }}</option>
            @endforeach
        </select>
    </div>
   
    <div class="form-group">
        <label>Periode Kas [YYYY-MM]</label>
        <input type="text" id="masa" name="masa" class="form-control" maxlengt="7" minlength="7" autofocus required placeholder='2023-01' autocomplete="off"> 
        <small class="text-muted">Periode Kas [contoh: 2023-09]</small>
    </div>
   
   	<div class="form-group">
   		<label>Type Kas [Bank/Cash]</label>
   		<select type="text" class="form-control" id="tpkas" name="tpkas" autofocus required>
   		    <option value="B">BANK</option>
   		    <option value="C">CASH/TUNAI</option>
   		</select>    
    </div>   
    
    <div class="form-group">
        <label>No.Account</label>
        <select type="text" id="actkas" name="actkas" class="form-control" required autofocus autocomplete="off">
            <option value=""> --- Pilih No.Account --- </option>
            @foreach($kas as $dt)
                <option value="{{ $dt->id }}">{{ $dt->acct_no.' - '.$dt->acct_name }}</option>
            @endforeach
        </select>
    </div>    
    

    <div class="form-group">
        <label>Keterangan</label>
        <textarea id='ket' name='ket' autofocus rows="4" class="form-control"></textarea>
    </div>

</div>

    <div class="modal-footer">
        <button  id="submit-control" type="submit" class="btn btn-primary btn-sm btn-save pull-right"><i class="fa fa-floppy-o"></i> Save </button> 
        <button type="button" class="btn btn-warning btn-sm btn-close pull-right" data-dismiss="modal"><i class="fa fa-times-circle"></i> Cancel </button>
    </div>
  
</form>

      
      </div>
   </div>
</div>