{{ $user->name }} {{ ucfirst($user->role) }}
{{ $user->email }}
@if ($user->isAdmin()) Full access to everything @elseif ($user->accessGrants->isEmpty()) No access to any building @else @foreach ($user->accessGrants->sortBy(fn ($g) => $g->floor_id ? 1 : 0) as $g) {{ $g->building?->name }}@if ($g->floor) / {{ $g->floor->name }}@endif: {{ $g->level === 'add' ? 'view & add' : 'view only' }}@if (! $loop->last) · @endif @endforeach @endif