Files
Virtnet.bond/vendor/filament/notifications/resources/views/components/notification.blade.php
2026-03-12 22:47:38 +01:00

18 lines
493 B
PHP

@props([
'notification',
])
<div
x-data="notificationComponent({ notification: @js($notification->toArray()) })"
{{
$attributes
->merge([
'wire:key' => "{$this->getId()}.notifications.{$notification->getId()}",
'x-on:close-notification.window' => "if (\$event.detail.id == '{$notification->getId()}') close()",
], escape: false)
->class(['pointer-events-auto invisible'])
}}
>
{{ $slot }}
</div>