

<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-12">
            <div class="card me-2">
                <div class="card-header pb-0">
                    <div class="d-flex flex-row justify-content-between">
                        <div>
                            <h5 class="mb-0">Edit Rights for <?php echo e($staff->name); ?></h5>
                        </div>
                    </div>
                </div>

                <div class="card-body">
                    <form action="<?php echo e(route('rights-update')); ?>" method="POST">
                        <?php echo csrf_field(); ?>
<input type="hidden" name="id" value="<?php echo e($staff->id); ?>">                        
                        <div class="row">
                            <label for="isDefault" class="form-label">Modules</label>
                            <?php $__empty_1 = true; $__currentLoopData = $modules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <div class="col-lg-3">
                                    <div class="form-check form-check-inline">
                                        <input type="checkbox" id="<?php echo e($index); ?>" name="modules[<?php echo e($index); ?>]" 
                                            class="form-check-input" value="1" 
                                            <?php echo e(isset($assignedModules[$index]) ? 'checked' : ''); ?>>
                                        <label for="<?php echo e($index); ?>" class="form-check-label"><?php echo e(ucfirst($index)); ?></label>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <div class="col-lg-12">No Modules Found.</div>
                            <?php endif; ?>
                        </div>

                        <div class="mt-4 text-end">
                            <button type="submit" class="btn btn-primary">Save Rights</button>
                            <a href="<?php echo e(route('rights-index')); ?>" class="btn btn-secondary">Cancel</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.layoutapp', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /opt/lampp/htdocs/lara_commonbilling_new/resources/views/rights/edit.blade.php ENDPATH**/ ?>