@extends('layouts.app') @section('title', isset($category) ? $category->name . ' - Mars Stationery' : 'Products - Mars Stationery') @section('content') {{-- Breadcrumbs --}}
{{-- Sidebar --}} {{-- Products --}}

{{ isset($category) ? $category->name : (request('filter') === 'new' ? 'New Arrivals' : (request('filter') === 'featured' ? 'Featured Products' : 'All Products')) }}

{{ $products->total() }} product{{ $products->total() !== 1 ? 's' : '' }} found

@if(request('q')) @endif @if(request('filter')) @endif @if(request('min_price')) @endif @if(request('max_price')) @endif
@if($products->count() > 0)
@foreach($products as $product) @include('components.product-card', ['product' => $product]) @endforeach
{{ $products->links() }}
@else

No products found

Try adjusting your filters or search term

View all products
@endif
@endsection