@php $featuredCategories = \App\Models\Category::where('feature_in_banner', 1)->with('products.brand')->get(); if (gs('homepage_layout') == 'sidebar_menu') { $categoriesToShow = [ 768 => ['items' => 5], 992 => ['items' => 5], 1199 => ['items' => 5], ]; if (!$fixedBanner) { $categoriesToShow[1399] = ['items' => 6]; } } else { $categoriesToShow = [ 768 => ['items' => 6], 992 => ['items' => 7], 1199 => ['items' => 9], ]; } @endphp @if (!blank($featuredCategories))
@push('script') @endpush @endif