@php $adminNotificationUnread = 0; if (auth()->check()) { try { $adminNotificationUnread = app(\App\Services\AdminNotificationService::class)->unreadCount((int) auth()->id()); } catch (\Throwable) { $adminNotificationUnread = 0; } } @endphp