@php $stats = $stats ?? [ 'unread' => 0, 'urgent' => 0, 'today' => 0, 'week' => 0, 'todayDelta' => 0, 'activeRules' => 0, ]; $categoryCounts = $categoryCounts ?? ['all' => 0]; $currentCategory = $currentCategory ?? 'all'; $currentQuery = $currentQuery ?? ''; $currentPage = $currentPage ?? 1; $totalShown = $totalShown ?? 0; $totalFiltered = $totalFiltered ?? $categoryCounts['all']; $notifications = $notifications ?? new \Illuminate\Pagination\LengthAwarePaginator(collect(), 0, 12, 1, ['path' => url('/notifications')]); $cats = [ 'all' => 'All', 'unread' => 'Unread', 'mention' => 'Mentions', 'campaign' => 'Campaigns', 'system' => 'System', 'billing' => 'Billing', 'webhook' => 'Webhooks', 'broadcast' => 'Broadcasts', 'template' => 'Templates', 'device' => 'Devices', 'contact' => 'Contacts', ]; @endphp
{{ __('More / Notifications') }}
{{ __('Notifications') }} & alerts
Preferences
{{ __('Unread') }} {{ $stats['urgent'] }} urgent
{{ number_format($stats['unread']) }} {{ __('across all channels') }}
{{ __('Today') }} {{ $stats['todayDelta'] >= 0 ? '+' : '' }}{{ $stats['todayDelta'] }}% vs avg
{{ number_format($stats['today']) }} {{ __('events today') }}
{{ __('Active categories') }} {{ __('healthy') }}
{{ $stats['activeRules'] }} {{ __('routing alerts') }}
{{ __('Delivery') }} {{ __('manage') }}
@php $wsPrefs = auth()->user()?->currentWorkspace?->notification_prefs ?? []; $slackOn = !empty($wsPrefs['_slack_webhook']); $mailOn = !in_array(config('mail.default'), [null, '', 'array', 'log'], true); $chans = array_values( array_filter([__('In-app'), $mailOn ? __('Email') : null, $slackOn ? __('Slack') : null]), ); @endphp
{{ implode(' ยท ', $chans) }}
{{ __('active channels') }}
@foreach ($cats as $key => $label) @endforeach
@include('user.notifications._feed', ['grouped' => $grouped])
@include('user.notifications._pagination', ['notifications' => $notifications])