

<?php $__env->startSection('content'); ?>
    <div class="container mt-3"> 
        <div class="d-flex flex-column align-items-center">
            <div class="col-md-10 col-sm-10 col-lg-10">
                <?php if(session('success')): ?>
                    <div class="alert alert-success">
                        <?php echo session('success'); ?>

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

            <div class="col-md-10 col-sm-10 col-lg-10">
                <div class="row">
                    <div class="col-6 d-flex align-items-center">
                        <h5 class="text-center">Edit User</h5> 
                    </div>
                    <div class="col-6 d-flex justify-content-end">
                        <a href="<?php echo e(route('user.index')); ?>" class="btn btn-secondary" >Back</a>
                    </div>
                </div>
            </div>
            
            <div class="col-md-10 col-sm-10 col-lg-10">
            <hr>
            </div>

            <div class="col-md-10 col-sm-10 col-lg-10">
                <form method="post" action ="<?php echo e(route('user.update',$user->id)); ?>"> 
                    <?php echo csrf_field(); ?> 
                    <?php echo method_field('put'); ?>
                    <div class="mb-3"> 
                        <label><b>Name:</b></label> 
                        <input type="text" name="name" class="form-control" value="<?php echo e($user->name); ?>"> 
                    </div> 
                    <div class="mb-3"> 
                        <label><b>Email:</b></label> 
                        <input type="text" name="email" class="form-control" value="<?php echo e($user->email); ?>"> 
                    </div> 
                    <div class="mb-3"> 
                        <label><b>Password:</b></label> 
                        <input type="password" name="password" class="form-control"> 
                    </div> 
                    <div class="mb-3"> 
                        <label><b>Role:</b></label> 
                        <select class="form-control" id="exampleFormControlSelect1" name="type">
                            <option value="<?php echo e($user->type); ?>" selected hidden><?php echo e($user->type); ?></option>
                            <option>Choose from the following---------</option>
                            <option value="admin">Admin</option>
                            <option value="user">User</option>
                        </select>
                    </div> 
                    <button type="submit" class="btn btn-primary btn-block">Submit</button>
                </form> 
            </div> 
        </div>
    </div>
<?php $__env->stopSection(); ?>









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