<?php $__env->startSection('title', trans('Role Permissions')); ?>
<?php $__env->startSection('body'); ?>
<div class="row">
    <div class="col">
        <div class="card">
            <div class="card-header">
                <i class="fa fa-align-justify"></i> <?php echo e(trans('Role Permissions')); ?>

            </div>
            <div class="card-content" v-cloak>
                <div class="card-block">
                    <form action="<?php echo e(url('admin/roles/'.$role->id.'/rolepermission/')); ?>" method="POST" id="permissionsForm">
                        <?php echo csrf_field(); ?>
                        <?php $counter = 0; ?>
                        <?php $__currentLoopData = $permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $per): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if($counter % 3 == 0): ?>
                                <?php if($counter > 0): ?>
                                    </div>
                                <?php endif; ?>
                                <div class="row">
                            <?php endif; ?>
                            <div class="col-md-4">
                                <div class="form-check">
                                    <input class="form-check-input" type="checkbox" name="permissions[]" value="<?php echo e($per->id); ?>" id="flexCheckChecked<?php echo e($per->id); ?>"
                                    <?php echo e(collect($permissionsForRoles)->contains(function ($item) use ($per) {
                                        return collect($item)->contains('permission_id', $per->id);
                                    }) ? 'checked' : ''); ?>

                                    >
                                    <label class="form-check-label" for="flexCheckChecked<?php echo e($per->id); ?>">
                                        <?php echo e($per->name); ?>

                                    </label>
                                </div>
                            </div>
                            <?php $counter++; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                        <button type="submit" class="btn btn-sm btn-primary flex-end" title="<?php echo e(trans('brackets/admin-ui::admin.btn.delete')); ?>" style="float:right; margin:25px 10px 10px 25px">submit</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.paper-theme-layout.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/aror4382/netsofters.com/jewellery/resources/views/admin/role/rolepermission.blade.php ENDPATH**/ ?>