@php use Botble\Ecommerce\Facades\EcommerceHelper; use Botble\Theme\Facades\Theme; $filterPosition = theme_option('default_filter_position', 'sidebar'); @endphp
{{-- Breadcrumb is rendered by layouts/base.blade.php — do NOT include it here or the breadcrumb + page-title section will appear twice. --}} @if (! empty($category))
@include(EcommerceHelper::viewPath('includes.product-listing-page-description'))
@endif
@if ($filterPosition === 'sidebar') @endif
@if ($filterPosition === 'dropdown') @include(Theme::getThemeNamespace('views.ecommerce.includes.filters-dropdown'), [ 'category' => $category ?? null, ]) @endif @include(Theme::getThemeNamespace('views.ecommerce.includes.product-filters-top')) @include(Theme::getThemeNamespace('views.ecommerce.includes.products-listing'), ['products' => $products])
@if ($filterPosition === 'drawer') @include(Theme::getThemeNamespace('views.ecommerce.includes.filters-drawer'), [ 'category' => $category ?? null, ]) @endif