@php use Filament\Support\Enums\Alignment; use Filament\Support\View\Components\BadgeComponent; use Illuminate\View\ComponentAttributeBag; $notifications = $this->getNotifications(); $unreadNotificationsCount = $this->getUnreadNotificationsCount(); $hasNotifications = $notifications->count(); $isPaginated = $notifications instanceof \Illuminate\Contracts\Pagination\Paginator && $notifications->hasPages(); $pollingInterval = $this->getPollingInterval(); @endphp
@if ($trigger = $this->getTrigger()) {{ $trigger->with(['unreadNotificationsCount' => $unreadNotificationsCount]) }} @endif @if ($hasNotifications)

{{ __('filament-notifications::database.modal.heading') }} @if ($unreadNotificationsCount) color(BadgeComponent::class, 'primary')->class([ 'fi-badge fi-size-xs', ]) }} > {{ $unreadNotificationsCount }} @endif

@if ($unreadNotificationsCount && $this->markAllNotificationsAsReadAction?->isVisible()) {{ $this->markAllNotificationsAsReadAction }} @endif @if ($this->clearNotificationsAction?->isVisible()) {{ $this->clearNotificationsAction }} @endif
@foreach ($notifications as $notification)
$notification->unread(), ]) > {{ $this->getNotification($notification)->inline() }}
@endforeach @if ($broadcastChannel = $this->getBroadcastChannel()) @script @endscript @endif @if ($isPaginated) @endif @endif