@php $promoBanners = $promoBanners ?? collect(); $featuredSlugs = [ 'tws', 'wired-earphone', 'wireless-headset', 'speakers', 'neckband', 'powerbank', 'power-adapter', 'power-cable', 'smartwatch', 'converters', 'backpack', 'hubs-docks', 'trimmer', 'mobiles-tabs', 'fan', 'smart-gadgets', ]; $featuredCategories = collect($featuredSlugs)->map(function ($slug) use ($categories) { return $categories->firstWhere('slug', $slug); })->filter(); $promoStyles = ['gm-promo--green', 'gm-promo--purple', 'gm-promo--cosmic']; @endphp {{-- Hero + Promo Banners --}} @if($banners->count() > 0)
@if(!empty($hp['show_promo_banners']) && $promoBanners->count() > 0)
@foreach($promoBanners as $i => $promo) @php $promoSrc = $mediaUrl($promo->image); $promoClass = $promoStyles[$i] ?? 'gm-promo--green'; @endphp @if($promoSrc) {{ $promo->title }} @endif
@if($promo->title)

{!! $promo->title !!}

@endif @if($promo->subtitle)

{{ $promo->subtitle }}

@endif
@endforeach
@endif
@endif @if(!empty($hp['show_trust_bar'])) @include('themes.shared.trust-bar', ['hp' => $hp, 'colClass' => 'col-6 col-lg-3']) @endif {{-- Featured Categories --}} @if(!empty($hp['show_categories']) && $featuredCategories->count() > 0)

Featured Categories

Shop Your Desired Product from Featured Category

@endif