@push('styles') @endpush
@if(request('search') || request('type')) @endif
@if ($products->count() > 0)
@foreach ($products as $product)
{{-- Imagen si existe --}} @if (!empty($product->image_path)) {{ $product->name }} @else
Sin imagen
@endif

{{ $product->name }}

{{-- Precio --}} @if (!empty($product->price))

${{ number_format($product->price, 2, ',', '.') }}

@endif {{-- Botón --}} Ver Detalle
@endforeach
@else

No se encontraron productos con esos filtros.

@endif
{{ $products->links() }}
@push('scripts') @endpush