

<?php $__env->startSection('content'); ?>
    <div class="container">
        <h1>Asignar Roles</h1>
        <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <form action="<?php echo e(route('admin.roles.assign', $user)); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <h3><?php echo e($user->name); ?></h3>
                <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <label>
                        <input type="checkbox" name="roles[]" value="<?php echo e($role->name); ?>" <?php echo e($user->hasRole($role->name) ? 'checked' : ''); ?>>
                        <?php echo e($role->name); ?>

                    </label>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <button type="submit">Guardar</button>
            </form>
            <hr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\raze\resources\views/admin/roles/index.blade.php ENDPATH**/ ?>