@if ($products->count())
@php
$layout = $layout ?? 'grid';
@endphp
@foreach($products as $product)
$layout === 'list', 'col-lg-4 col-md-6' => $layout === 'grid'])>
{!! Theme::partial('ecommerce.product.item-' . $layout, compact('product')) !!}
@endforeach
{!! Theme::partial('ecommerce.product-count', compact('products')) !!}
@if ($products instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator)
{!! $products->withQueryString()->links(Theme::getThemeNamespace('partials.pagination')) !!}
@endif
@else
{{ __('No products found!') }}
@endif