@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) @lang('modules.module.'.$moduleData->module_name) @foreach ($moduleData->permissions as $permission) @php $permissionType = $employee->permissionTypeId($permission->name); $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)
@lang('app.more')
@endif @endforeach
@endif