- Implementada nueva funcion para crear productos destacados por etiquetas, mostrando carrusel con los mismos en la pagina welcome.
This commit is contained in:
Bryam105
2026-06-02 09:46:53 -03:00
parent 63f91bdd6d
commit 902b8433d9
17 changed files with 480 additions and 33 deletions
+11 -4
View File
@@ -1,10 +1,17 @@
<x-layout title="Home - Lauck">
<x-section-header subtitle="Inicio" title="Bicicleteria " highlight="Lauck"/>
<!-- CARROUSEL DESTACADO -->
<div class="w-full mb-12">
<!-- datos del controlador -->
<x-ui.carrousel :items="$destacados" />
<!-- CARROUSELES POR ETIQUETA -->
<div class="w-full mb-12 space-y-16">
@forelse($tagsConProductos as $tag)
<div>
<x-ui.carrousel :items="$tag->products" title="{{ $tag->name }}" />
</div>
@empty
<div class="text-center py-12 bg-slate-100 dark:bg-panel-bg rounded-xl border border-neutral-200 dark:border-neutral-800">
<p class="text-gray-500 dark:text-gray-400 font-medium">Aún no hay productos etiquetados para mostrar.</p>
</div>
@endforelse
</div>
</x-layout>