@php Theme::layout('full-width'); if (! $layout = request()->input('layout')) { $layout = $layout ?? theme_option('layout_products', 'grid'); } @endphp {!! $sidebar = dynamic_sidebar('product_sidebar') !!} @if (! $sidebar) {!! Theme::partial('page-header') !!} @endif $layout === 'grid']) data-layout="grid" href="#"> $layout === 'list']) data-layout="list" href="#"> {!! Theme::partial('ecommerce.product-count', compact('products')) !!} {{ __('Sort by') }}: @foreach(EcommerceHelper::getSortParams() as $key => $value) input('sort-by') === $key)>{{ $value }} @endforeach @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')) !!}