@php $from = $products->total() ? $products->firstItem() : 0; $to = $products->total() ? $products->lastItem() : 0; $hasPriceFilter = $catalogMax > 0 && $catalogMax >= $catalogMin; $sliderMin = $minPrice ?? $catalogMin; $sliderMax = $maxPrice ?? $catalogMax; $hasActiveFilters = $categoryParam !== '' || $minPrice !== null || $maxPrice !== null || $search !== ''; $pageStart = max(1, $products->currentPage() - 2); $pageEnd = min($products->lastPage(), $products->currentPage() + 2); @endphp @extends("layouts.public") @section("meta") @include('includes.seo-meta', [ 'slug' => 'shop', 'path' => '/shop', 'defaults' => [ 'title' => __('public.pages.shop_title'), 'description' => __('public.pages.shop_desc'), ], ]) @push('json_ld') @include('includes.json-ld-graphs', [ 'graphs' => [ schema_breadcrumb([ ['name' => __('public.breadcrumb.home'), 'url' => schema_absolute_url('/')], ['name' => __('public.breadcrumb.shop'), 'url' => schema_absolute_url('/shop')], ]), ], ]) @endpush @endsection @section("content") @include('includes.corano-breadcrumb', [ 'crumbs' => [ ['label' => __('public.breadcrumb.shop')], ], ])

{{ __('public.shop.showing', ['from' => $from, 'to' => $to, 'total' => $products->total()]) }}

{{ __('public.shop.sort_by') }}

@include('pages.shop.partials.hidden-filters', ['exclude' => ['sort']])
@if($products->count())
@foreach($products as $product) @include('pages.shop.partials.product-card', ['product' => $product]) @endforeach
@if($products->lastPage() > 1)
    @if(!$products->onFirstPage())
  • @endif @for($page = $pageStart; $page <= $pageEnd; $page++)
  • {{ $page }}
  • @endfor @if($products->hasMorePages())
  • @endif
@endif @else

{{ __('public.shop.empty') }}

@endif
@endsection