<!-- Name Field -->
<div class="form-group row mb-3">
    <?php echo Form::label('name', 'Name:', ['class' => 'col-md-3 col-form-label']); ?>

    <div class="col-md-9"> 
    <?php echo Form::text('name', null, ['class' => 'form-control','maxlength' => 255,'maxlength' => 255]); ?>

    </div>
</div>

<!-- Email Field -->
<div class="form-group row mb-3">
    <?php echo Form::label('email', 'Email:', ['class' => 'col-md-3 col-form-label']); ?>

    <div class="col-md-9"> 
    <?php echo Form::email('email', null, ['class' => 'form-control','maxlength' => 255,'maxlength' => 255]); ?>

    </div>
</div>

<!-- Password Field -->
<?php if(!isset($user)): ?>
<div class="form-group row mb-3">
    <?php echo Form::label('password', 'Password:', ['class' => 'col-md-3 col-form-label']); ?>

    <div class="col-md-9"> 
    <?php echo Form::password('password', ['class' => 'form-control','maxlength' => 255,'maxlength' => 255]); ?>

    </div>
</div>
<?php endif; ?>

<!-- List Permission Field -->
<div class="form-group row mb-3">
    <?php echo Form::label('role', 'Role:', ['class' => 'col-md-3 col-form-label']); ?>

    <div class="col-9">
    <?php echo $__env->make('base.users.role_fields', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>
</div>

<!-- Submit Field -->
<div class="form-group col-sm-12 mt-2">
    <?php echo Form::submit('Save', ['class' => 'btn btn-primary']); ?>

    <a href="<?php echo e(route('base.users.index')); ?>" class="btn btn-secondary">Cancel</a>
</div>
<?php /**PATH /data/docker/laravel/iclock/resources/views/base/users/fields.blade.php ENDPATH**/ ?>