@php // Global "update available" cue for the Version nav item — a cache read only (no network). $updateAvailable = app(\App\Services\ReleaseChecker::class)->updateAvailable(); // Nav badges — cached (the sidebar renders on every page) but the cache is BUSTED at the moment // a threat/alert changes (see AuditEvent::forgetThreatLoginCount / AlertIncident::forgetFiringCount), // so a badge never lags the page content by up to the TTL. $threatCount = \App\Models\AuditEvent::threatLoginCount24h(); $alertCount = \App\Models\AlertIncident::firingCount(); @endphp {{-- Fixed on desktop, off-canvas drawer on mobile/tablet (toggled by `nav` in the layout). --}}