@php $layout = theme_option('product_list_layout'); $requestLayout = (string)request()->input('layout'); if ($requestLayout && in_array($requestLayout, array_keys(get_product_single_layouts()))) { $layout = $requestLayout; } $layout = ($layout && in_array($layout, array_keys(get_product_single_layouts()))) ? $layout : 'product-full-width'; @endphp

{!! BaseHelper::clean(__('We found :total items for you!', ['total' => '' . $products->total() . ''])) !!}

@include(Theme::getThemeNamespace() . '::views/ecommerce/includes/sort')
@forelse ($products as $product)
@include(Theme::getThemeNamespace() . '::views.ecommerce.includes.product-item', compact('product'))
@empty

{{ __('No products found!') }}

@endforelse
@if ($products->total() > 0)
{!! $products->withQueryString()->links(Theme::getThemeNamespace() . '::partials.custom-pagination') !!} @endif