<div class="form-group">
    <label for="nombre" class="col-lg-3 control-label requerido">Nombre</label>
    <div class="col-lg-8">
        <input type="text" name="nombre" id="nombre" class="form-control" value="<?php echo e(old('nombre', $data->nombre ?? '')); ?>" required/>
    </div>
</div>
<div class="form-group">
    <label for="usuario" class="col-lg-3 control-label requerido">Usuario</label>
    <div class="col-lg-8">
        <input type="text" name="usuario" id="usuario" class="form-control" value="<?php echo e(old('usuario', $data->usuario ?? '')); ?>" required/>
    </div>
</div>
<div class="form-group">
    <label for="email" class="col-lg-3 control-label requerido">E-Mail</label>
    <div class="col-lg-8">
        <input type="email" name="email" id="email" class="form-control" value="<?php echo e(old('email', $data->email ?? '')); ?>" required/>
    </div>
</div>
<div class="form-group">
    <label for="password" class="col-lg-3 control-label <?php echo e(!isset($data) ? 'requerido' : ''); ?>">Contraseña</label>
    <div class="col-lg-8">
        <input type="password" name="password" id="password" class="form-control" value="" <?php echo e(!isset($data) ? 'required' : ''); ?> minlength="5"/>
    </div>
</div>
<div class="form-group">
    <label for="re_password" class="col-lg-3 control-label <?php echo e(!isset($data) ? 'requerido' : ''); ?>">Repita Contraseña</label>
    <div class="col-lg-8">
        <input type="password" name="re_password" id="re_password" class="form-control" value="" <?php echo e(!isset($data) ? 'required' : ''); ?> minlength="5"/>
    </div>
</div>
<div class="form-group">
    <label for="rol_id" class="col-lg-3 control-label requerido">Rol</label>
    <div class="col-lg-8">
        <select name="rol_id[]" id="rol_id" class="form-control" multiple required>
            <option value="">Seleccione el rol</option>
            <?php $__currentLoopData = $rols; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $nombre): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option
                value="<?php echo e($id); ?>"
                <?php echo e(is_array(old('rol_id')) ? (in_array($id, old('rol_id')) ? 'selected' : '')  : (isset($data) ? ($data->roles->firstWhere('id', $id) ? 'selected' : '') : '')); ?>

                >
                <?php echo e($nombre); ?>

                </option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
</div>
<?php /**PATH C:\Laravel\Biblioteca base 28032020\resources\views/admin/usuario/form.blade.php ENDPATH**/ ?>