<div class="row">
<div class="col-sm-6">
         <label class="label-color"> User Type: <i style = "color:red;"></i></label>
  <small class="form-errors pull-right req" value="">{{ $errors->first('user type',":message") }}</small>

  <div class="input-group mb-3">

    <select name="user_type[]" id="usertype_{{$unique_id}}" class="form-control form-control-sm cls_selection" onchange="getUserByDealer(this,'{{$unique_id}}')">
      <option value="{{Crypt::encrypt(0)}}">Select User Type</option>

      @isset($user_type_list)
        @foreach($user_type_list as $rows)
          <option @isset($user->id) @if(in_array($rows->name,$user->getCurrentUserRolesArrayWithColumn('name'))) selected @endif  @endisset value="{{Crypt::encrypt($rows->id)}}">{{$rows->name}}</option>
        @endforeach
      @endisset

    </select>

  </div>
</div>

<div class="col-sm-6">
         <label class="label-color"> User: <i style = "color:red;"></i></label>
    <small class="form-errors pull-right req" value="">{{ $errors->first('user',":message") }}</small>

    <div class="input-group mb-3">
      <select name="user[]" id="user_{{$unique_id}}" class="form-control form-control-sm cls_selection" >
       <option  value="{{Crypt::encrypt(0)}}"> Select User</option>
      @isset($user_list)
        @foreach($user_list as $rows)
            <option @isset($user->id) @if($user->id == $rows->id) selected @endif  @endisset value="{{Crypt::encrypt($rows->id)}}">{{$rows->name}}</option>
        @endforeach
      @endisset
      </select>

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