ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/
Upload File :
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/8cb2a28a7e7f7851b4fa942c8369ce20.php

<?php if (isset($component)) { $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f = $component; } ?>
<?php $component = App\View\Components\Table::resolve(['headType' => 'thead-light'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('table'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Table::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'table-bordered mt-3 permisison-table table-hover']); ?>
     <?php $__env->slot('thead', null, []); ?> 
        <th width="20%">
            <?php echo app('translator')->get('app.module'); ?>
        </th>
        <th width="16%"><?php echo app('translator')->get('app.add'); ?></th>
        <th width="16%"><?php echo app('translator')->get('app.view'); ?></th>
        <th width="16%"><?php echo app('translator')->get('app.update'); ?></th>
        <th width="16%"><?php echo app('translator')->get('app.delete'); ?></th>
        <th width="16%"></th>
     <?php $__env->endSlot(); ?>
    <?php $__currentLoopData = $modulesData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $moduleData): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td><?php echo app('translator')->get('modules.module.'.$moduleData->module_name); ?>
            </td>
            <?php $__currentLoopData = $moduleData->permissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $permission): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    $allowedPermissions = json_decode($permission->allowed_permissions);
                    $permissionType = $role->permissionType($permission->id);
                ?>
                <td>
                    <select class="select-picker role-permission-select border-0"
                            data-permission-id="<?php echo e($permission->id); ?>" data-role-id="<?php echo e($role->id); ?>">
                        <?php if(!is_null($allowedPermissions)): ?>
                            <?php $__currentLoopData = $allowedPermissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option <?php if($permissionType == $item): ?> selected <?php endif; ?>
                                <?php if(!$permissionType && $item == 5): ?> selected <?php endif; ?> value="<?php echo e($item); ?>">
                                    <?php echo app('translator')->get('app.'.$key); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </select>
                </td>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


            <?php if(count($moduleData->permissions) < 4): ?>
                <?php for($i = 1; $i <= 4 - count($moduleData->permissions); $i++): ?>
                    <td>--</td>
                <?php endfor; ?>
            <?php endif; ?>

            <td class="text-center bg-light border-left">
                <div class="p-2">
                    <?php if($moduleData->custom_permissions_count > 0): ?>
                        <a href="javascript:;" data-module-id="<?php echo e($moduleData->id); ?>" data-role-id="<?php echo e($role->id); ?>"
                            class="text-dark-grey show-custom-permission dropdown-toggle">
                            <?php echo app('translator')->get('app.more'); ?> <i class="fa fa-chevron-down"></i>
                        </a>
                    <?php else: ?>
                        &nbsp;
                    <?php endif; ?>
                </div>
            </td>


        </tr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f)): ?>
<?php $component = $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f; ?>
<?php unset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f); ?>
<?php endif; ?>
<?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/role-permissions/ajax/permissions.blade.php ENDPATH**/ ?>

Zerion Mini Shell 1.0