29 lines
853 B
PHP
29 lines
853 B
PHP
@php
|
|
$notifications = $this->getNotifications();
|
|
$unreadNotificationsCount = $this->getUnreadNotificationsCount();
|
|
@endphp
|
|
|
|
<div
|
|
@if ($pollingInterval = $this->getPollingInterval())
|
|
wire:poll.{{ $pollingInterval }}
|
|
@endif
|
|
class="flex"
|
|
>
|
|
@if ($trigger = $this->getTrigger())
|
|
<x-filament-notifications::database.trigger>
|
|
{{ $trigger->with(['unreadNotificationsCount' => $unreadNotificationsCount]) }}
|
|
</x-filament-notifications::database.trigger>
|
|
@endif
|
|
|
|
<x-filament-notifications::database.modal
|
|
:notifications="$notifications"
|
|
:unread-notifications-count="$unreadNotificationsCount"
|
|
/>
|
|
|
|
@if ($broadcastChannel = $this->getBroadcastChannel())
|
|
<x-filament-notifications::database.echo
|
|
:channel="$broadcastChannel"
|
|
/>
|
|
@endif
|
|
</div>
|