@php $user = auth()->user(); $notifier = app(\App\Services\Notifier::class); $unread = $user ? $notifier->unreadCountFor($user) : 0; @endphp
{{-- Global jump box: staff search by shop name, owner or invoice number. --}}
@if ($user?->canVerifyPayments()) @endif {{-- Theme switch --}}
@foreach (['light' => 'Light', 'dark' => 'Dark', 'system' => 'Match system'] as $mode => $label) @endforeach
{{-- Notifications --}} @if ($unread > 0) {{ $unread > 99 ? '99+' : $unread }} @endif {{-- Account --}}

{{ $user?->name }}

{{ $user?->email }}

My profile
@csrf