<div class="modal" id="modal-form_create" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" >
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
     
    <form class="form-horizontal" data-toggle="validator" method="post">
    {{ 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"></h6>
    </div>
    <br>

    <input type="hidden" id="id" name="id">

<div class="row">

<div style="padding:5px 30px;">
    <div class="col-sm-6">   
        <div class="form-group">
            <label>SUPPLIER</label>
            <select id="supl" type="text" class="form-control" name="supl" autofocus required>
            <option value=""> -- Pilih Supplier -- </option>
            @foreach($supplier as $list)
                <option value="{{ $list->id }}">{{ $list->sup_nama }}</option>
		    @endforeach	
            </select>
        </div>

        <div class="form-group">
            <label>Gudang Tujuan</label>
            <select id="tuju" type="text" class="form-control" name="tuju" autofocus required>
                <option value=""> -- Gudang Tujuan -- </option>
                @foreach($gdg as $list)
                    <option value="{{ $list->id }}">{{ $list->kode.' - '.$list->nama }}</option>
        	    @endforeach	
            </select>
            <small class="text-muted">Gudang Tujuan Barang</small>
        </div>    

        <div class="form-group">
            <label>NO. Invoice/Faktur</label>
            <input id="inv" type="text" class="form-control" name="inv" maxlength="100" autofocus autocomplete="off" required>
            <small class="text-muted">Maximal 100 karakter</small>
        </div>
        
        <div class="form-group">
            <labe>Keterangan</labe>
            <textarea id='ket' name='ket' class='form-control' rows='3'></textarea>
        </div>
        <br>
    </div>

    <div class="col-sm-1"></div>   

    <div class="col-sm-4">
        <div class="form-group">
            <label>Tgl. Invoice</label>
            <input id="tglinv" type="date" class="form-control" name="tglinv" autofocus autocomplete="off" required>
        </div>

        <div class="form-group">
            <label>Jatuh Tempo</label>
            <input id="tgljt" type="date" class="form-control" name="tgljt" autofocus autocomplete="off" required>
        </div>
   
        <div class="form-group">
            <label>P P N</label>
            <input id="ppn" type="number" class="form-control" name="ppn" value="0" autofocus autocomplete="off">
        </div>

        <div class="form-group">
            <label>Discount Faktur</label>
            <input id="dis" type="decimal" class="form-control" name="dis" value="0.00" autofocus autocomplete="off">
            <small class="text-muted">Discount per faktur</small>
        </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>
    </div> 
</div>
</div>

   </form>

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