@extends('layouts.shop') @php $pageTitle = $settings->site_name ?? 'Hair Niche'; // Default $metaDescription = ''; $metaKeywords = ''; if (isset($subcategory)) { $pageTitle = $subcategory->seo_title ?? $subcategory->name . ' - ' . ($settings->site_name ?? 'Hair Niche'); $metaDescription = $subcategory->meta_description ?? ''; } elseif (isset($category)) { $pageTitle = $category->seo_title ?? $category->name . ' - ' . ($settings->site_name ?? 'Hair Niche'); $metaDescription = $category->meta_description ?? ''; } @endphp @section('title', $pageTitle) @section('meta_description', $metaDescription) @section('meta_keywords', $metaKeywords) @push('schema_markup') @php $shopSchema = \App\Models\SeoSetting::where('page_name', 'shop')->value('schema_markup'); @endphp @if($shopSchema) {!! $shopSchema !!} @endif @if(isset($category) && $category->schema_markup) {!! $category->schema_markup !!} @endif @if(isset($subcategory) && $subcategory->schema_markup) {!! $subcategory->schema_markup !!} @endif @if(isset($product) && $product->schema_markup) {!! $product->schema_markup !!} @endif @endpush @section('content')

{{ isset($subcategory) ? $subcategory->name : (isset($category) ? $category->name : 'Shop All') }}

Showing {{ $products->count() > 0 ? $products->firstItem() : 0 }}{{ $products->count() > 0 ? $products->lastItem() : 0 }} of {{ $products->total() }} results

@if($products->count() > 0)
@include('shop.partials.product-grid', ['products' => $products])
@else

No items found

We couldn't find anything matching your filters. Try adjusting your search.

Clear all filters
@endif
@endsection @push('scripts') @endpush