@extends('layouts.app') @section('content')

Shop Products

Browse our complete collection of products

Filters
@foreach($categories as $category)
id) checked @endif onchange="document.getElementById('filterForm').submit()">
@endforeach
@foreach($brands as $brand)
id) checked @endif onchange="document.getElementById('filterForm').submit()">
@endforeach
@if(request('search') || request('category') || request('brand') || request('sort')) Reset Filters @endif
@if($products->count() > 0)
@foreach($products as $product)
{{ $product->name }}
{{ $product->category?->name ?? 'Uncategorized' }}
{{ Str::limit($product->name, 60) }}
@if($product->brand) Brand: {{ $product->brand->name }} @endif

{{ Str::limit($product->description, 80) }}

@if($product->rating && $product->rating > 0)
@for($i = 0; $i < floor($product->rating); $i++) @endfor @if($product->rating % 1 != 0) @endif ({{ number_format($product->rating, 1) }})
@endif

{{ \App\Support\Currency::symbol() }}{{ number_format($product->price, 2) }}

@if($product->isOnSale()) {{ \App\Support\Currency::symbol() }}{{ number_format($product->compare_at_price, 2) }} Save {{ $product->discount_percent }}% @endif
View Details
@endforeach
{{ $products->appends(request()->query())->links() }}
@else
\"No
No Products Found

Try adjusting your filters or search criteria

@endif
@endsection