<div class="modal fade" id="editRoleModal">

    <div class="modal-dialog modal-xl">

        <form method="POST" id="editRoleForm">

            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>

            <div class="modal-content">

                <div class="modal-header">

                    <h5>Edit Role</h5>

                    <button type="button" class="btn-close" data-bs-dismiss="modal">
                    </button>

                </div>

                <div class="modal-body">

                    <div class="mb-3">

                        <label>Role Name</label>

                        <input type="text" name="name" id="edit_role_name" class="form-control" required>

                    </div>

                    <div class="row">

                        <?php $__currentLoopData = $groupedPermissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module => $modulePermissions): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col-md-4 mb-3">

                                <div class="card">

                                    <div class="card-header">

                                        <strong>
                                            <?php echo e(strtoupper($module)); ?>

                                        </strong>

                                    </div>

                                    <div class="card-body">

                                        <?php $__currentLoopData = $modulePermissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $permission): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="form-check">

                                                <input class="form-check-input permission-checkbox" type="checkbox"
                                                    name="permissions[]" value="<?php echo e($permission->name); ?>">

                                                <label class="form-check-label">

                                                    <?php echo e($permission->name); ?>


                                                </label>

                                            </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                    </div>

                                </div>

                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </div>

                </div>

                <div class="modal-footer">

                    <button type="submit" class="btn btn-primary">

                        Update Role

                    </button>

                </div>

            </div>

        </form>

    </div>

</div>
<?php /**PATH D:\Projects\lms-ects\resources\views/roles/partials/edit-role-modal.blade.php ENDPATH**/ ?>