





<?php $__env->startSection('content'); ?>

<section class="content-header">
    <h1>Edit User</h1>
    <ol class="breadcrumb">
        <li><a href="/home"><i class="fa fa-dashboard"></i>Home</a></li>
        <li><a href="#">Management</a></li>
        <li><a href="/users">Users</a></li>
        <li class="active"><a href="#">Edit</a.</li>
    </ol>
</section>
<hr style="border: 3px groove #3c8dbc;">

<?php if(count($errors) > 0): ?>
    <div class="alert alert-danger">
        <strong>
        Whoops!
        </strong> There were some problems with your input.<br><br>
            <ul>
                <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <li><?php echo e($error); ?></li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>
    </div>
<?php endif; ?>


<section  class="content" >
    <div class="row"> 
        <div class="col-md-6">
            <div class="box box-primary">
                
            <?php echo Form::model($user, ['method' => 'PATCH','route' => ['users.update', $user->id]]); ?>

                <div class="box-body">
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Name:</label>
                            <?php echo Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control')); ?>

                    </div>
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Email:</label>
                            <?php echo Form::text('email', null, array('placeholder' => 'Email','class' => 'form-control')); ?>

                    </div>
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Password:</label>
                            <?php echo Form::password('password', array('placeholder' => 'Password','class' => 'form-control')); ?>

                    </div>
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Confirm Password:</label>
                            <?php echo Form::password('confirm-password', array('placeholder' => 'Confirm Password','class' => 'form-control')); ?>

                    </div>
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Role:</label>
                            <?php echo Form::select('roles[]', $roles,$userRole, array('class' => 'form-control','multiple')); ?>

                    </div>
                </div>
                
                <div class="box-footer">
                    <a class="btn btn-primary" href="<?php echo e(route('users.index')); ?>"> Back</a>
                    <button type="submit" class="btn btn-primary pull-right">Submit</button>
                </div>
            </div>
        </div>
    </div>
</section>
<?php echo Form::close(); ?>








<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp_8.2\htdocs\cpq8.2\resources\views/users/edit.blade.php ENDPATH**/ ?>