{{ $collectionName }}
{{ number_format($totalCount) }} titles
@if($pills->isNotEmpty()){{-- resources/views/collection/show.blade.php --}} @extends('layouts.app') @php $perPage = 24; // same as PER_PAGE in the controller $pageUrl = $baseUrl . ($currentPage > 1 ? '?page=' . $currentPage : ''); $breadcrumbSchema = [ '@context' => 'https://schema.org', '@type' => 'BreadcrumbList', 'itemListElement' => [ ['@type' => 'ListItem', 'position' => 1, 'name' => 'Home', 'item' => url('/')], ['@type' => 'ListItem', 'position' => 2, 'name' => $collectionName, 'item' => $baseUrl], ], ]; $listItems = []; foreach ($products->values() as $i => $p) { $listItems[] = [ '@type' => 'ListItem', 'position' => ($currentPage - 1) * $perPage + $i + 1, 'url' => url('/retail/Productdetails/' . $p->id . '/' . $p->slug), 'name' => $p->name, ]; } $pageSchema = [ '@context' => 'https://schema.org', '@type' => 'CollectionPage', 'name' => $collectionName, 'url' => $pageUrl, 'inLanguage' => 'en-IN', 'isPartOf' => ['@type' => 'WebSite', 'name' => 'Bargain Book Hut', 'url' => url('/')], 'mainEntity' => [ '@type' => 'ItemList', 'numberOfItems' => (int) $totalCount, 'itemListElement' => $listItems, ], ]; @endphp @section('title', $collectionName . ' | Bargain Book Hut') @push('seo') @endpush @push('styles') @endpush @section('content') {{-- ══ HERO BANNER — separate desktop & mobile images ═════════ --}} @if(!empty($collectionImage)) {{-- DEBUG (delete after testing): view-source and look for this line --}}
@endif {{-- TRUST STRIP --}}{{ number_format($totalCount) }} titles
@if($pills->isNotEmpty())