{{-- Deals Section Banner start --}}
Best Deals Freshly
From healthy groceries to ready-to-eat bowls, enjoy handpicked deals at prices that make
shopping better and fresher.
Farm-Fresh Quality
Freshly sourced products packed with care
Farm-Fresh Quality
Freshly sourced products packed with care
{{-- Deals Section Banner end --}}
@if (!$dealsLoadError && ($dealsSections->isNotEmpty() || $dealsBannersByPosition->isNotEmpty()))
@foreach ($dealsSections as $dealsSectionIndex => $dealsSection)
@foreach ($dealsBannersByPosition->get($dealsSectionIndex, collect()) as $dealsBanner)
@include('frontend.components.home-sections.poster', ['section' => (object) ['banners' => collect([$dealsBanner]), 'background_image' => null]])
@endforeach
@php
$sectionStyle = strtolower((string) ($dealsSection->style?->name ?: $dealsSection->section_type));
$hasPosterBackground = str_contains($sectionStyle, 'poster')
&& $dealsSection->banners->isEmpty()
&& !empty($dealsSection->background_image);
$hasRenderableContent = $dealsSection->products->isNotEmpty()
|| $dealsSection->groups->isNotEmpty()
|| $dealsSection->tabs->flatMap(fn ($tab) => $tab->products)->isNotEmpty()
|| $hasPosterBackground;
@endphp
@if ($hasRenderableContent)
@endif
@endforeach
@foreach ($dealsBannersByPosition->get($dealsSections->count(), collect()) as $dealsBanner)
@include('frontend.components.home-sections.poster', ['section' => (object) ['banners' => collect([$dealsBanner]), 'background_image' => null]])
@endforeach
@endif
@endsection
@section('scripts')
@endsection