@if(! isset($shortcode)) @include(Theme::getThemeNamespace('views.ecommerce.includes.filters.results')) @endif @if ($products && $products->isNotEmpty()) @php $products->loadMissing(['brand']); @endphp @if ($layout ?? get_product_layout() === 'grid') @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