18 lines
493 B
PHP
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>
|