حفظ

تعديل الصلاحيات

الأنظمة
@foreach($systems as $sys) @endforeach
جميع الصلاحيات
@foreach($permissionsBySystem as $systemName => $modules) @php $systemObject = $systems->firstWhere('name', $systemName); $translatedSystemLabel = lang('permissions.systems.' . $systemName); $systemLabel = $translatedSystemLabel !== 'permissions.systems.' . $systemName ? $translatedSystemLabel : ($systemObject?->name_ar ?? str_replace('_', ' ', $systemName)); @endphp

{{ $systemLabel }}

@foreach($modules as $module => $perms) @php $moduleLabel = lang('permissions.modules.' . $module); if ($moduleLabel === 'permissions.modules.' . $module) { $moduleLabel = str_replace('_', ' ', $module); } @endphp @endforeach
{{ $moduleLabel }}
@foreach($perms as $pp => $id) @php $abilityLabel = lang('permissions.roles.' . $pp); if ($abilityLabel === 'permissions.roles.' . $pp) { $abilityLabel = str_replace('_', ' ', $pp); } @endphp @endforeach
@endforeach
@push('scripts') @endpush