@can('support.view') @php $hubPending = 0; try { if (! request()->routeIs('admin.support.hub*')) { $hubService = app(\App\Services\ModeratorHubService::class); if ($hubService->isReady()) { $hubPending = $hubService->pendingCountFor((int) auth()->id()); } } } catch (\Throwable) { $hubPending = 0; } $hubActive = request()->routeIs('admin.support.hub*'); @endphp Hub @if($hubPending > 0) {{ $hubPending > 99 ? '99+' : $hubPending }} @endif @endcan