From bdd793343f165a0224f1fb8cad3a1fda7fabb764 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Sun, 11 Jan 2026 13:14:17 +0700 Subject: [PATCH] fix: update redirect paths and enhance UI layout for order management - Changed redirect paths in WithRoleRedirect trait from '/login' to '/auth/login' for consistency. - Adjusted footer layout in home view to include padding for better spacing. - Improved order management UI by modifying flexbox structure for better responsiveness and alignment of buttons. --- app/Traits/Components/WithRoleRedirect.php | 4 +-- .../sections/ui/home/_footer.blade.php | 2 +- .../studio/manage/order/index.blade.php | 26 ++++++++++++------- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/app/Traits/Components/WithRoleRedirect.php b/app/Traits/Components/WithRoleRedirect.php index 3723269..f6a4178 100644 --- a/app/Traits/Components/WithRoleRedirect.php +++ b/app/Traits/Components/WithRoleRedirect.php @@ -9,7 +9,7 @@ trait WithRoleRedirect public function goToProfile(): RedirectResponse { if (! auth()->check()) { - return redirect('/login'); + return redirect('/auth/login'); } $user = auth()->user(); @@ -27,6 +27,6 @@ public function goToProfile(): RedirectResponse return redirect('/member/overview'); } - return redirect('/login'); + return redirect('/auth/login'); } } diff --git a/resources/views/components/sections/ui/home/_footer.blade.php b/resources/views/components/sections/ui/home/_footer.blade.php index 51c127d..c0dd998 100644 --- a/resources/views/components/sections/ui/home/_footer.blade.php +++ b/resources/views/components/sections/ui/home/_footer.blade.php @@ -86,7 +86,7 @@ class="hover:text-home-secondary transition-colors duration-300 flex items-cente {{ $contactSettings->email }} -
+
-
+
{{ $pageTitle }}
+ @can('create order') -
- + }" + @printer-status-change.window="isConnected = $event.detail.connected"> + Tambah + +