This page is intentionally restricted to users who have the Spatie role: Super User.
Current user
ID: {{ $user->id_users ?? $user->id ?? 'N/A' }}
Name: {{ $user->user_fullname ?? $user->name ?? 'N/A' }}
Username: {{ $user->user_name ?? $user->email ?? 'N/A' }}
Access context (Spatie)
Roles:
@if($spatieRoles->isEmpty())
None
@else
{{ $spatieRoles->join(', ') }}
@endif
Permissions:
@if($spatiePermissions->isEmpty())
None
@else
@foreach($spatiePermissions as $perm)
{{ $perm }}
@endforeach
@endif
What to test here
- Confirm only Super User can open this page.
- Confirm role/permission changes reflect after re-login (sync runs on login).