{{ __('Manage roles that can be assigned to admin profiles. System roles cannot be modified.') }}
|
{{ __('Label') }}
@if ($sortField === 'label')
|
{{ __('Name') }}
@if ($sortField === 'name')
|
{{ __('Permissions') }} | {{ __('Type') }} | {{ __('Actions') }} |
|---|---|---|---|---|
| {{ $role->label }} | {{ $role->name }} | @php $perms = $role->permissions ?? []; $managedResources = collect($perms) ->filter(fn($p) => str_starts_with($p, 'manage ')) ->map(fn($p) => substr($p, 7)) ->all(); $displayed = collect($perms)->filter(function ($p) use ($managedResources) { if (!str_contains($p, ' ')) return true; [$verb, $resource] = explode(' ', $p, 2); return $verb === 'manage' || !in_array($resource, $managedResources); })->values()->all(); @endphp {{ implode(', ', $displayed) }} | @if ($role->is_system) {{ __('System') }} @else {{ __('Custom') }} @endif |
@can('update roles')
|
| {{ __('No roles found.') }} | ||||
{{ __('Roles assigned to users linked to organization profiles. System roles cannot be deleted.') }}
| {{ __('Label') }} | {{ __('Name') }} | {{ __('Permissions') }} | {{ __('Type') }} | {{ __('Actions') }} |
|---|---|---|---|---|
| {{ $orgRole->label }} | {{ $orgRole->name }} | {{ implode(', ', $orgRole->permissions ?? []) }} | @if ($orgRole->is_system) {{ __('System') }} @else {{ __('Custom') }} @endif |
@can('update roles')
|
| {{ __('No roles found.') }} | ||||
{{ __('Roles assigned to users linked to bank profiles. System roles cannot be deleted.') }}
| {{ __('Label') }} | {{ __('Name') }} | {{ __('Permissions') }} | {{ __('Type') }} | {{ __('Actions') }} |
|---|---|---|---|---|
| {{ $orgRole->label }} | {{ $orgRole->name }} | {{ implode(', ', $orgRole->permissions ?? []) }} | @if ($orgRole->is_system) {{ __('System') }} @else {{ __('Custom') }} @endif |
@can('update roles')
|
| {{ __('No roles found.') }} | ||||
{{ $message }}
@enderror{{ __('Permissions that apply when the user is acting as an admin profile.') }}
@include('livewire.roles._permission-grid', ['model' => 'createRole', 'isSystem' => false, 'permissionGroups' => $adminCapGroups, 'allVerbs' => $adminCapVerbs]){{ $message }}
@enderror{{ __('Permissions that apply when the user is acting as an admin profile.') }}
@include('livewire.roles._permission-grid', ['model' => 'editRole', 'isSystem' => $editRoleIsSystem, 'permissionGroups' => $adminCapGroups, 'allVerbs' => $adminCapVerbs]){{ __('Important') }}: {{ __('Changing permissions will immediately update all admin profiles that have this role assigned.') }}
{{ __('Are you sure you want to delete the role') }} {{ $deleteRoleName }}?
@if (!empty($deleteAffectedUsers))
{{ $message }}
@enderror{{ $message }}
@enderror{{ __('Important') }}: {{ str_starts_with($editOrgRole['name'], 'bank-') ? __('Changing permissions will immediately update all bank profiles that have this role assigned.') : __('Changing permissions will immediately update all organization profiles that have this role assigned.') }}
{{ __('Are you sure you want to delete the role') }} {{ $deleteOrgRoleName }}?
@if (!empty($deleteOrgAffectedUsers))