

  <div class="modal fade" id="md_add_service" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  {{ Form::open(array('route' => 'commit.gin_service' , 'id' => 'form_gin_service', 'class' => 'cls_form' , 'method' => 'POST' , 'enctype'=>'multipart/form-data'
)) }}
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Create Service GIN</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
      <div class="modal-body ">
        <div class ="card">
          <div class = "card-body form-fieldset">
          <div class="row">

            <div class="col-sm-12">
              <label>Project</label>
                @include('layouts.common.branch')
            </div>

            <div class="col-sm-12">
            <label class="label-color"> Service: <i style = "color:red;">*</i></label>
            <div class="input-group mb-3">
              <select class="form-control" id="service_id" required name="service_id" >
              @foreach($service_list as $s_row)
            <option value="{{Crypt::encrypt($s_row->id)}}">{{$s_row->name}}</option>
              @endforeach
            </select>
            </div>
            </div>

            <div class="col-sm-12">
            <label class="label-color"> Issued to: <i style = "color:red;">*</i></label>
            <div class="input-group mb-3">
              <select class="form-control" name="receiver_id">
                @foreach($user as $user_row)
                <option value="{{Crypt::encrypt($user_row->id)}}">{{$user_row->name}}</option>
                @endforeach
              </select>
            </div>
            </div>

            <div class = "col-md-12">
               <label class="label-color">Issued By: <i style = "color:red;">*</i></label>
            <div class="input-group mb-3">
            <select name="au_user" class="form-control form-control-sm cls_selection branch" id="au_id" >
            @foreach($auser_list as $auser)
            <option  value="{{Crypt::encrypt($auser->id)}}">{{$auser->name}} | {{$auser->designation->name}}</option>
            @endforeach
            </select>
            </div>
            </div>

            <div class="col-sm-12">
            <label class="label-color"> Remarks: <i style = "color:red;">*</i></label>
            <div class="input-group mb-3">
              <input type="text" name="remarks" class="form-control " required id="" />
            </div>
            </div>





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

      <div class="modal-footer">

        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>

        <button type="submit" onClick="storeInventoryUnit(event,this)" class="btn btn-primary"   content="add unit">Create Service Order</button>

      </div>
      {{ Form::close() }}
    </div>
  </div>

</div>
