From bde877d07f8ce5fda50f02b98f052cc7f3150123 Mon Sep 17 00:00:00 2001 From: Juan Felipe Duarte <70235683+DuarteJFelipe@users.noreply.github.com> Date: Thu, 16 Oct 2025 15:35:09 -0500 Subject: [PATCH] Improve category selection UI in promociones view Refactored the category selection in show-promociones.blade.php to display the selected category's image and name above the swiper. Updated the swiper to set the selected category and synchronize with Livewire. Wrapped the logout button in navigation.blade.php with additional padding for better spacing. --- resources/views/layouts/navigation.blade.php | 20 ++--- .../views/livewire/show-promociones.blade.php | 73 ++++++++++--------- 2 files changed, 49 insertions(+), 44 deletions(-) diff --git a/resources/views/layouts/navigation.blade.php b/resources/views/layouts/navigation.blade.php index a4eb903..dcd5883 100755 --- a/resources/views/layouts/navigation.blade.php +++ b/resources/views/layouts/navigation.blade.php @@ -218,15 +218,17 @@ @endif -
- @csrf - -
+
+
+ @csrf + +
+
diff --git a/resources/views/livewire/show-promociones.blade.php b/resources/views/livewire/show-promociones.blade.php index 08f4d95..64e239c 100755 --- a/resources/views/livewire/show-promociones.blade.php +++ b/resources/views/livewire/show-promociones.blade.php @@ -41,42 +41,49 @@ @endif - {{-- --}} -
-
- @foreach ($categorias as $i => $categoria1) -
- imagen de {{ $categoria1->nombre }} -
- @endforeach +
+
+ imagen de categoría seleccionada +
+

+
+
+ +
+
+ @foreach ($categorias as $categoria1) +
+ imagen de {{ $categoria1->nombre }} +
+ @endforeach +
-
- - - -