From ffd3bad9da478bc9dd8a1d118819bbaa068c5970 Mon Sep 17 00:00:00 2001 From: samy Date: Wed, 23 Jul 2025 08:57:43 -1000 Subject: [PATCH] Add notification toasts --- .../notifications/toast-wrapper.blade.php | 17 +++++++++++++++++ .../components/notifications/toast.blade.php | 15 +++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 resources/views/components/notifications/toast-wrapper.blade.php create mode 100644 resources/views/components/notifications/toast.blade.php diff --git a/resources/views/components/notifications/toast-wrapper.blade.php b/resources/views/components/notifications/toast-wrapper.blade.php new file mode 100644 index 0000000..4042cf0 --- /dev/null +++ b/resources/views/components/notifications/toast-wrapper.blade.php @@ -0,0 +1,17 @@ +@props([ + + 'timeout' => 5000, + 'id' => uniqid('toast-'), + 'position' => 'toast-top toast-center', +]) + +
+ {{ $slot }} +
\ No newline at end of file diff --git a/resources/views/components/notifications/toast.blade.php b/resources/views/components/notifications/toast.blade.php new file mode 100644 index 0000000..b50c96e --- /dev/null +++ b/resources/views/components/notifications/toast.blade.php @@ -0,0 +1,15 @@ +@props([ + 'type' => 'info', + 'title' => null, + 'message' => null, +]) + +
+
+ @if($title) +

{{ $title }}

+ @endif + {{ $message }} +
+ +
\ No newline at end of file