@lang('app.module') @lang('app.add') @lang('app.view') @lang('app.update') @lang('app.delete') @foreach ($modulesData as $moduleData) @lang('modules.module.'.$moduleData->module_name) @foreach ($moduleData->permissions as $permission) @php $allowedPermissions = json_decode($permission->allowed_permissions); $permissionType = $role->permissionType($permission->id); @endphp @endforeach @if (count($moduleData->permissions) < 4) @for ($i = 1; $i <= 4 - count($moduleData->permissions); $i++) -- @endfor @endif
@if ($moduleData->custom_permissions_count > 0) @lang('app.more') @else   @endif
@endforeach