@extends('layouts.app') @section('title', ($activeCategory ? ucwords(strtolower($activeCategory->name)) . ' — ' : '') . 'Shop Premium Furniture | Furnitec') @section('content') {{-- Page header --}}

{{ $activeCategory ? ucwords(strtolower($activeCategory->name)) : ($search ? "Results for “{$search}”" : 'All Furniture') }}

@if($activeCategory?->description)

{{ \Illuminate\Support\Str::before($activeCategory->description, '.') }}.

@endif
{{-- Category bar --}}
{{-- Toolbar --}}

{{ $products->firstItem() ?? 0 }}–{{ $products->lastItem() ?? 0 }}

@if($search)@endif
@if($products->isEmpty())

No furniture found

Try a different search or browse the full collection.

Browse Everything
@else
@foreach($products as $product) @include('partials.product-card', ['product' => $product]) @endforeach
{{ $products->links() }}
@endif
@endsection