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