

<?php $__env->startSection('content'); ?>
<br>
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-6">
                <div class="box box-danger">
                    <div class="box-header">
                    <center><h3 class="box-title">Staff registration form</h3></center>
                    </div>
                    <div class="box-body">
                        <form method="post" action="<?php echo e(route('register-update', [$user->id])); ?>">
                            <?php echo csrf_field(); ?>
                        <div class="form-group ">
                            <label class="control-label" for="full_name" >Full name</label>
                               <div class="input-group">
                                    <div class="input-group-addon">
                                        <i class="fa fa-user"></i>
                                    </div>
                                    <input type="text" name="full_name" value="<?php echo e($user->name); ?>" id="full_name" class="form-control">
                                </div>
                            <?php if($errors->has('full_name')): ?>
                                <span class="text-danger">
                                        <strong><?php echo e($errors->first('full_name')); ?></strong>
                                    </span>
                            <?php endif; ?>
                        </div>
                        <div class="form-group ">
                        <label class="control-label" for="email" >E-mail</label>
                           <div class="input-group">
                                <div class="input-group-addon">
                                    <i class="fa fa-envelope"></i>
                                </div>
                                <input type="email" name="email" id="email" class="form-control" value="<?php echo e($user->email); ?>" readonly="readonly">
                            </div>
                        <?php if($errors->has('email')): ?>
                            <span class="text-danger">
                                    <strong><?php echo e($errors->first('email')); ?></strong>
                                </span>
                        <?php endif; ?>
                        </div>
                        <div class="form-group ">
                            <label class="control-label" for="username" >Username</label>
                            <div class="input-group">
                                <div class="input-group-addon">
                                    <i class="fa fa-lock"></i>
                                </div>
                                <input type="text" name="username" id="username" class="form-control <?php echo e($errors->has('username') ? ' is-invalid' : ''); ?>" value="<?php echo e($user->username); ?>" readonly="readonly">
                            </div>
                            <?php if($errors->has('username')): ?>
                                <span class="text-danger">
                                <strong><?php echo e($errors->first('username')); ?></strong>
                            </span>
                            <?php endif; ?>
                        </div>
                        <div class="form-group ">
                            <label class="control-label" for="Gender" >Gender</label>
                            <div class="input-group">
                                <div class="input-group-addon">
                                    <i class="fa fa-user"></i>
                                </div>
                                <select name="Gender" id="Gender" class="form-control">
                                    <option value="">Select Gender</option>
                                        <option <?php echo e($user->sex == 'm' ? 'selected' : ''); ?> value="m">Male</option>
                                        <option <?php echo e($user->sex == 'f' ? 'selected' : ''); ?> value="f">Female</option>
                                </select>
                            </div>
                            <?php if($errors->has('Gender')): ?>
                                <span class="text-danger">
                                <strong><?php echo e($errors->first('Gender')); ?></strong>
                            </span>
                            <?php endif; ?>
                        </div>
                        <div class="form-group ">
                            <label class="control-label" for="role" >User role</label>
                            <div class="input-group">
                                <div class="input-group-addon">
                                    <i class="fa fa-book"></i>
                                </div>
                                <select name="role" id="role" class="form-control">
                                    <option value="">Select User Role</option>
                                        <option <?php echo e($user->role == 'Staff' ? 'selected' : ''); ?>>Staff</option>
                                        <option <?php echo e($user->role == 'Admin' ? 'selected' : ''); ?>>Admin</option>
                                </select>
                            </div>
                            <?php if($errors->has('role')): ?>
                                <span class="text-danger">
                                <strong><?php echo e($errors->first('role')); ?></strong>
                            </span>
                            <?php endif; ?>
                        </div>
                        <?php echo e(method_field('PUT')); ?>



                        <button class="btn btn-flat btn-success btn-sm"> <span class="fa fa-edit"></span> Update </button>
                        <a href="<?php echo e(url()->previous()); ?>" class="btn btn-danger btn-sm btn-flat"><span class="fa fa-times"></span> Cancel </a>

                        </form>

                    </div>
                </div>
            </div>
            <div class="col-lg-6">
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\glass_report\resources\views/auth/edit.blade.php ENDPATH**/ ?>