    <div class="row">
        <div class="col-sm-6 col-md-6">
            <div class="form-group">
                <label for="name"><?php echo app('translator')->get('quickadmin.users.fields.name'); ?><span class="text-danger">*</span></label>
                <div class="input-group">
                    <input type="text" class="form-control" name="name" value="<?php echo e(isset($user) ? $user->name : old('name')); ?>" id="name" autocomplete="true" placeholder="Enter Name">
                </div>
            </div>
        </div>
        
    
        <div class="col-sm-6 col-md-6">
            <div class="form-group">
                <label for="email"><?php echo app('translator')->get('quickadmin.users.fields.email'); ?><span class="text-danger">*</span></label>
                <div class="input-group">
                    <input type="text" class="form-control" name="email" value="<?php echo e(isset($user) ? $user->email : old('email')); ?>" id="email" autocomplete="true" placeholder="Enter Email ID">
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-6">
            <div class="form-group">
                <label for="phone"><?php echo app('translator')->get('quickadmin.users.fields.phone'); ?></label>
                <div class="input-group">
                    <input type="text" class="form-control" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*?)\..*/g, '$1');" name="phone" value="<?php echo e(isset($user) ? $user->phone : old('phone')); ?>" id="phone" autocomplete="true" placeholder="Enter Contact Number">
                </div>
            </div>
        </div>
    
        <div class="col-sm-6 col-md-6">
            <div class="form-group">
                <label for="role_id"><?php echo app('translator')->get('quickadmin.users.fields.role'); ?><span class="text-danger">*</span></label>
                <div class="input-group">
                    <select class="form-control <?php $__errorArgs = ['role_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="role_id" id="role_id" >
                        <option value="<?php echo e(isset($user) ? $user->roles->first()->id : old('role_id')); ?>">
                            <?php echo e(isset($user) ? $user->roles->first()->name : 'Select Role'); ?>

                        </option>
                        <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rolee): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if(!isset($user) || $user->roles->first()->id !== $rolee->id): ?>
                            <option value="<?php echo e($rolee->id); ?>"><?php echo e($rolee->name); ?></option>
                        <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>
        </div>
    
    <?php if(isset($user)): ?>

    <?php else: ?>    
        <div class="col-sm-6 col-md-6">
            <div class="form-group">
                <label for="password"><?php echo app('translator')->get('quickadmin.qa_new_password'); ?><span class="text-danger">*</span></label>
                <div class="input-group">
                    <input type="password" value="<?php echo e(old('password')); ?>" id="password" class="form-control <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="password" tabindex="1" placeholder="Enter New Password" autofocus>
                    <span class="password-toggle-icon"><i class="fas fa-eye" onClick="ChangeEyeIcon($(this),'password');"></i></span>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-6">
            <div class="form-group">
                <label for="password_confirmation"><?php echo app('translator')->get('quickadmin.qa_confirm_password'); ?><span class="text-danger">*</span></label>
                <div class="input-group">
                    <input type="password" value="<?php echo e(old('password_confirmation')); ?>" id="password_confirmation" class="form-control <?php $__errorArgs = ['password_confirmation'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="password_confirmation" tabindex="1" placeholder="Enter Confirm Password" autofocus>
                    <span class="confirm-password-toggle-icon"><i class="fas fa-eye" onClick="ChangeEyeIcon($(this),'password_confirmation');"></i></span>
                </div>
            </div>
        </div>    
    <?php endif; ?>
    </div>

    <div class="row">
        <div class="col-md-12 text-right">
            <button type="submit" class="btn btn-primary" title="<?php echo app('translator')->get('quickadmin.qa_submit'); ?>"><?php echo app('translator')->get('quickadmin.qa_submit'); ?></button>
        </div>
    </div>

<?php /**PATH /home/hipldemo2/public_html/billing-software.hipl-staging2.com/resources/views/admin/staff/form.blade.php ENDPATH**/ ?>