@if(! isset($shortcode))
@include(Theme::getThemeNamespace('views.ecommerce.includes.filters.results'))
@endif
@if($products->isNotEmpty())
@php
$products->loadMissing(['brand']);
@endphp
@if (get_product_layout($layout ?? 'grid') === 'grid' || ! Route::is('public.products'))
@php
$itemsPerRow ??= get_products_per_row_by_layout();
$itemsPerRowOnMobile = theme_option('ecommerce_products_per_row_mobile', 2);
@endphp
@foreach ($products as $product)
@include(Theme::getThemeNamespace('views.ecommerce.includes.product-item'), ['layout' => 'grid'])
@endforeach
@else
@foreach ($products as $product)
@include(Theme::getThemeNamespace('views.ecommerce.includes.product-item'), ['layout' => 'list'])
@endforeach
@endif
@else
{{ __('No products were found matching your selection.') }}
@endif
@if ($products instanceof \Illuminate\Pagination\LengthAwarePaginator && $products->hasPages())
{{ $products->withQueryString()->links(Theme::getThemeNamespace('partials.pagination')) }}
@endif