From 68ade5ce60d081c609e9564c0fed5d2aba7b8176 Mon Sep 17 00:00:00 2001 From: Stephen Gesityan Date: Sat, 17 May 2025 19:23:05 +0700 Subject: [PATCH] Modal tidak tertutup kalau error --- resources/views/layouts/main.blade.php | 208 +++++++++++++------------ 1 file changed, 108 insertions(+), 100 deletions(-) diff --git a/resources/views/layouts/main.blade.php b/resources/views/layouts/main.blade.php index d72bf33..157d1c5 100644 --- a/resources/views/layouts/main.blade.php +++ b/resources/views/layouts/main.blade.php @@ -21,7 +21,10 @@ -
+
- -
+ x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" + x-transition:leave="transition ease-in duration-200" x-transition:leave-start="opacity-100" + x-transition:leave-end="opacity-0" + class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"> - -
+ +
- + - + -
-
+
-
@if (session('success') || session('error'))
+ position: fixed; + top: 30px; + left: 50%; + transform: translateX(-50%); + background-color: {{ session('success') ? '#d1e7dd' : '#f8d7da' }}; + color: {{ session('success') ? '#0f5132' : '#842029' }}; + padding: 10px 20px; + border-radius: 6px; + font-size: 14px; + font-weight: 500; + box-shadow: 0 3px 10px rgba(0,0,0,0.15); + z-index: 9999; + max-width: 300px; + text-align: center; + "> {{ session('success') ?? session('error') }}