IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/dd66a80eab1ca2420f1235f625afaecd03e3dd1e.php

<?php $__env->startSection('content'); ?>

<?php echo Form::open(['url' => 'school/roles/'.$role->idRole.'/permissions', 'class' => 'form-horizontal']); ?>

<div class="row clearfix">
    <div class="col-lg-12 col-md-12 col-sm-12">
        <div class="card">
            <div class="header">
                <h2><strong>ASSIGN Permission To </strong> <?php echo e($role->label); ?></h2>
            </div>
            <div class="body">
                <table id="example1" class="table table-bordered table-striped table-hover dataTable js-basic-example">
                    <thead>
                        <tr>
                            <th>SNo.</th>
                            <th>Permission</th>
                            <th>Allow</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i = 1; ?>
                        <?php $__currentLoopData = $permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $permission): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($i); ?></td>
                            <td><?php echo e($permission->label); ?></td>
                            <td> 
                                <input type="checkbox" name="permission_id[]" value="<?php echo e($permission->idPermission); ?>" <?php if($role->permissions->contains('name',$permission->name)): ?> checked <?php endif; ?> >
                            </td>
                        </tr>
                        <?php $i++; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                    <tfoot>
                        <tr></tr>
                    </tfoot>
                </table>

            </div>

            <div class="row clearfix">
                <div class="col-sm-7 offset-sm-5">
                    <?php echo Form::submit('SAVE',['class' => 'btn btn-raised btn-primary btn-round waves-effect']); ?>

                    <?php echo Form::close(); ?> 
                </div>
            </div>

        </div>
    </div>
</div>
<?php echo Form::close(); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Copyright © 2021 - 2025 IMMREX7