Role Permission Editor

Configure permissions for each role in the system

@if($hasChanges) Unsaved Changes @endif @if($showSaveConfirmation) Saved Successfully @endif

Select Role to Edit

@if(!empty($selectedRoleKey)) {{ $this->getSelectedPermissionCount() }} permissions selected @endif
@if(!empty($selectedRoleKey))
@endif
@if(!empty($selectedRoleKey))

Permissions for {{ $roleOptions[$selectedRoleKey] }}

@if($hasChanges) @endif
@foreach($permissionCategories as $category => $permissions)
({{ count(array_intersect($permissions, $selectedPermissions)) }}/{{ count($permissions) }})
@if($this->isCategoryFullySelected($category)) All Selected @elseif($this->isCategoryPartiallySelected($category)) Partially Selected @else None Selected @endif
@foreach($permissions as $permission) @endforeach
@endforeach
{{ $this->getSelectedPermissionCount() }} of {{ count($availablePermissions) }} permissions selected for {{ $roleOptions[$selectedRoleKey] }}
@if($hasChanges)
Don't forget to save your changes
@endif
@else

No Role Selected

Select a role from the dropdown above to edit its permissions.

@endif
{{-- Alert Component --}}