@extends('layouts.settings', ['title' => 'Super User Test', 'topbarTitle' => 'Settings']) @section('content')
Super User Test Page

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
@endsection