<?php $__env->startSection('content'); ?>
<div class="panel panel-default">
    <div class="panel-heading">User Profile</div>

    <div class="panel-body">
        <form action="<?php echo e(url('settings/profile')); ?>" method="POST">
            <input type="hidden" name="_method" value="put">
            <?php echo e(csrf_field()); ?>


            <div class="form-group">
                <label for="name">Name</label>
                <input type="text" class="form-control" id="name" name="name" value="<?php echo e(old('name', $user->name)); ?>">
            </div>

            <div class="form-group">
                <label for="email">Email</label>
                <input type="text" class="form-control" id="email" name="email" value="<?php echo e(old('email', $user->email)); ?>">
            </div>

            <div class="form-group">
                <label for="role_id">Role</label>
                <select class="form-control" id="role_id" name="role_id">
                    <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($id); ?>" <?php echo e(!($id == old('role_id', $user->role_id)) ?: 'selected="selected"'); ?> ><?php echo e($role); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>

            <div class="form-group">
                <button type="submit" class="btn btn-primary">Update</button>
                <a class="btn btn-link" href="<?php echo e(url('profile')); ?>">Cancel</a>
            </div>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.setting', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>