!($employee->customised_permissions)])>
@lang('messages.customPermissionError')
@lang('app.resetPermissions')
@if ($employee->hasRole('admin')) @lang('messages.adminPermissionError') @else @lang('app.module') @lang('app.add') @lang('app.view') @lang('app.update') @lang('app.delete') @foreach ($modulesData as $moduleData) @php $notPermited = !in_array($moduleData->module_name, $employeeModules) ? 'disabled' : null; @endphp @lang('modules.module.'.$moduleData->module_name) @if($notPermited) @endif @foreach ($moduleData->permissions as $permission) @php $permissionType = $employee->customised_permissions === 1 ? $employee->permissionTypeId($permission->name) : $role->permissionType($permission->id); $allowedPermissions = json_decode($permission->allowed_permissions); @endphp @endforeach @if (count($moduleData->permissions) < 4) @for ($i = 1; $i <= 4 - count($moduleData->permissions); $i++) -- @endfor @endif
@if ($moduleData->custom_permissions_count > 0 && in_array($moduleData->module_name,$employeeModules)) @lang('app.more') @else   @endif
@endforeach
@endif