<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=""><?php echo e($errors->first('user type',":message")); ?></small>

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

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

      <?php if(isset($user_type_list)): ?>
        <?php $__currentLoopData = $user_type_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <option <?php if(isset($user->id)): ?> <?php if(in_array($rows->name,$user->getCurrentUserRolesArrayWithColumn('name'))): ?> selected <?php endif; ?>  <?php endif; ?> value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->name); ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      <?php endif; ?>

    </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=""><?php echo e($errors->first('user',":message")); ?></small>

    <div class="input-group mb-3">
      <select name="user[]" id="user_<?php echo e($unique_id); ?>" class="form-control form-control-sm cls_selection" >
       <option  value="<?php echo e(Crypt::encrypt(0)); ?>"> Select User</option>
      <?php if(isset($user_list)): ?>
        <?php $__currentLoopData = $user_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option <?php if(isset($user->id)): ?> <?php if($user->id == $rows->id): ?> selected <?php endif; ?>  <?php endif; ?> value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->name); ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      <?php endif; ?>
      </select>

    </div>
</div>
</div>
<?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/components/voucher/user_section.blade.php ENDPATH**/ ?>