<div class="modal" id="modal-form_add" 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 bg-olive">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"> &times; </span> </button>
      <h4 class="modal-title"></h4>   
   </div>            
	<br>
<!-- <div class="modal-body"> -->
   
   <input type="hidden" id="id" name="id">
 
 
   <div class="form-group">
      <label for="kode" class="col-sm-3 control-label">KODE</label>
      <div class="col-sm-2">
         <input id="kode" type="text" class="form-control" name="kode" autofocus readonly="true">
      </div>
   </div>   
 
   <div class="form-group">
      <label for="nama" class="col-sm-3 control-label">NAMA BARANG</label>
      <div class="col-sm-6">
         <input id="nama" type="text" class="form-control" name="nama" autofocus required autocomplete="off">
      </div>
   </div>
   
  <div class="form-group">
    <label for="cat" class="col-md-3 control-label">CATEGORY</label>
    <div class="col-md-6">
      <select id="cat" type="text" class="form-control" name="cat" autofocus required>
        <option value=""> -- Pilih Category -- </option>
        @foreach($category as $list)
        <option value="{{ $list->id_cat }}">{{ $list->cat_name }}</option>
        @endforeach
      </select>
    </div>
  </div>

  <div class="form-group">
    <label for="brand" class="col-md-3 control-label">BRAND</label>
    <div class="col-md-6">
      <select id="brand" type="text" class="form-control" name="brand" autofocus required>
        <option value=""> -- Pilih Brand -- </option>
        @foreach($brand as $list)
        <option value="{{ $list->id_brd }}">{{ $list->brd_name }}</option>
        @endforeach
      </select>
    </div>
  </div>

  <div class="form-group">
    <label for="supl" class="col-md-3 control-label">SUPPLIER</label>
    <div class="col-md-6">
      <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_supp }}">{{ $list->sup_nama }}</option>
        @endforeach
      </select>
    </div>
  </div>
  
    <div class="form-group">
      <label for="hglist" class="col-md-3 control-label">HARGA LIST</label>
      <div class="col-md-3">
         <input id="hglist" type="number" class="form-control" name="hglist" value="0" pattern="([0-9]{1,3})" autocomplete="off" autofocus required>
      </div>
   </div>
   
   <div class="form-group">
      <label for="retail" class="col-md-3 control-label">HARGA RETAIL</label>
      <div class="col-md-3">
         <input id="retail" type="number" class="form-control" name="retail" value="0" autocomplete="off" autofocus required>
      </div>
   </div>
   
   <div class="form-group">
      <label for="bawah" class="col-md-3 control-label">HG RETAIL TERENDAH</label>
      <div class="col-md-3">
         <input id="bawah" type="number" class="form-control" name="bawah" value="0" autocomplete="off" autofocus required>
      </div>
   </div>   

   <div class="form-group">
      <label for="desk" class="col-md-3 control-label">DESKRIPSI</label>
		<div class="col-md-6">
        <textarea  class="form-control" rows="5" name = "desk" id="desk" autocomplete="off" autofocus></textarea>
        </div>    
	</div>

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

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