@php Theme::layout('full-width'); if (!($layout = request()->input('layout'))) { $layout = $layout ?? theme_option('layout_products', 'grid'); } $layout = in_array($layout, ['grid', 'list']) ? $layout : 'grid'; @endphp
{!! $sidebar = dynamic_sidebar('product_sidebar') !!} @if (!$sidebar) {!! Theme::partial('page-header') !!} @endif
{!! Theme::partial('ecommerce.product-count', compact('products')) !!}
{{ __('Sort by') }}:
@if ($enableSidebar = theme_option('enable_sidebar_products', true))
@include(Theme::getThemeNamespace('views.ecommerce.includes.filters')) {!! dynamic_sidebar('product_list_sidebar') !!}
@else
@endif
$enableSidebar, 'col-lg-12' => !$enableSidebar, ])>
@foreach ($products as $product)
$layout === 'list', 'col-lg-4 col-md-6' => $layout === 'grid', ])> {!! Theme::partial('ecommerce.product.item-' . $layout, compact('product')) !!}
@endforeach
{!! $products->withQueryString()->links(Theme::getThemeNamespace('partials.pagination')) !!}