{{-- Homepage "Popular Brands": featured brands from Admin > Brands, six per row on desktop and a swipe row on smaller screens. Each card is the brand's complete card image; a brand without one gets a card built from its logo and product picture. Every card opens the brand's product listing (/brand/{slug}). --}} @php $popularBrands = \Illuminate\Support\Facades\Cache::remember(\App\Modules\Catalog\Http\Controllers\Admin\BrandController::CACHE_KEY, 600, fn () => \App\Modules\Catalog\Models\Brand::query() ->where('is_active', true)->where('is_featured', true)->orderBy('sort_order')->orderBy('name')->limit(12)->get()); @endphp @if ($popularBrands->isNotEmpty())

Popular Brands

$popularBrands->count() <= 6])>
@endif