@forelse ($products as $product)
@if($product->images->count() > 0) @foreach($product->images->take(4) as $index => $image) {{ $product->name }} @endforeach @else
No Image
@endif {{ $product->category->label() }}

{{ $product->name }}

@if($product->brand)

{{ $product->brand }}

@endif

{{ $product->formatted_price }}

@if($product->isInStock()) {{ $product->stock_quantity }} left @else Out of Stock @endif
@empty

No products found.

@endforelse
{{ $products->links() }}