@php $openAlerts = \App\Models\Alert::query() ->when(auth()->user()->organization_id, fn($q) => $q->where('organization_id', auth()->user()->organization_id)) ->active()->count(); $openTickets = \App\Models\Ticket::query() ->when(auth()->user()->organization_id, fn($q) => $q->where('organization_id', auth()->user()->organization_id)) ->open()->count(); @endphp ⚠ {{ $openAlerts }} ✉ {{ $openTickets }}
{{ auth()->user()->initials() }}
{{ auth()->user()->name }} {{ auth()->user()->roles->pluck('name')->implode(', ') ?: 'Staff' }}
@csrf