Creacion de index de ventas y mejora de vistas de catalogo, productos, y mejoras de ruteo a diferentes paginas, entre otros.

This commit is contained in:
BryamE
2026-01-07 17:26:16 -03:00
parent ed27d03373
commit 37e8f498be
9 changed files with 156 additions and 34 deletions
+6 -2
View File
@@ -10,8 +10,8 @@
@foreach ($products as $prod)
<div class="group p-4 border border-neutral-800 rounded-xl hover:border-neon-lime hover:-translate-y-1 transition-all duration-300">
{{-- Imagen si existe --}}
@if (!empty($prod->img))
<img src="{{ asset('storage/' . $prod->img) }}" alt="{{ $prod->name }}"
@if (!empty($prod->image_path))
<img src="{{ asset('storage/' . $prod->image_path) }}" alt="{{ $prod->name }}"
class="w-full h-40 object-cover rounded mb-4">
@else
<div class="w-full border border-neutral-800 h-40 bg-stone-900 flex items-center justify-center rounded mb-4">
@@ -46,5 +46,9 @@
@else
<p class="text-center text-gray-600 mt-10">No hay productos disponibles.</p>
@endif
<div class="mt-3">
{{ $products->links() }}
</div>
</div>
</x-layout>