@php $layout = theme_option('product_list_layout'); $requestLayout = 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'; Theme::layout('full-width'); Theme::asset()->usePath()->add('jquery-ui-css', 'css/plugins/jquery-ui.css'); Theme::asset()->container('footer')->usePath()->add('jquery-ui-js', 'js/plugins/jquery-ui.js'); Theme::asset()->container('footer')->usePath()->add('jquery-ui-touch-punch-js', 'js/plugins/jquery.ui.touch-punch.min.js'); $products->loadMissing(['categories', 'categories.slugable']); @endphp
@if ($layout === 'product-full-width')
{{ __('Filters') }}
@include(Theme::getThemeNamespace() . '::views.ecommerce.includes.filters')
@if (! empty($pageName))

{{ $pageName }}

@if (! empty($pageDescription))
{!! BaseHelper::clean($pageDescription) !!}
@endif @endif @include(Theme::getThemeNamespace() . '::views.ecommerce.includes.product-items', compact('products'))
@elseif($layout === 'product-left-sidebar') @if (! empty($pageName))

{{ $pageName }}

@if (! empty($pageDescription))
{!! BaseHelper::clean($pageDescription) !!}
@endif @endif
@include(Theme::getThemeNamespace('views.ecommerce.includes.filters'))
@include(Theme::getThemeNamespace() . '::views.ecommerce.includes.product-items', compact('products'))
@elseif($layout === 'product-right-sidebar') @if (! empty($pageName))

{{ $pageName }}

@if (! empty($pageDescription))
{!! BaseHelper::clean($pageDescription) !!}
@endif @endif
@include(Theme::getThemeNamespace() . '::views.ecommerce.includes.product-items', compact('products'))
@include(Theme::getThemeNamespace('views.ecommerce.includes.filters'))
@endif