@extends('frontend.layouts.template-base') @section('meta_tags') @include('frontend.layouts.meta-tags', ['title' => 'Fresh Smoothies - Chotekisan', 'page' => 'Smoothies']) @endsection @section('styles') @endsection @section('content') @php $healthSections = collect($healthSections ?? []); $healthBannersByPosition = collect($healthBannersByPosition ?? []); $categoryUrl = route('frontend.category', array_filter(['category_id' => $healthCategory?->id ?? null])); // Admin-managed hero (System Settings → Page Banners). WebsiteHealthService // fills every key from the launch design when it hasn't been customised. $hero = $healthHero ?? []; $heroCtaUrl = ($hero['button_url'] ?? '') ?: $categoryUrl; @endphp
{{-- Smoothies hero start --}}
@if (!empty($hero['image']))
{{ $hero['highlight'] ?? 'Fresh smoothie' }}
@endif
@if (!empty($hero['label'])) {{ $hero['label'] }} @endif @if (!empty($hero['title']) || !empty($hero['highlight']) || !empty($hero['title_two']))

@if (!empty($hero['title']) || !empty($hero['highlight'])) {{ $hero['title'] ?? '' }}@if (!empty($hero['highlight'])) {{ $hero['highlight'] }}@endif @endif @if (!empty($hero['title_two'])) {{ $hero['title_two'] }} @endif

@endif @if (!empty($hero['description']))

@foreach ($hero['description'] as $heroLine) {{ $heroLine }}@if (!$loop->last)
@endif @endforeach

@endif @if (!empty($hero['button_text'])) {{ $hero['button_text'] }} @endif
{{-- Smoothies hero end --}} @if (!$healthLoadError && ($healthSections->isNotEmpty() || $healthBannersByPosition->isNotEmpty()))
@foreach ($healthSections as $healthSectionIndex => $healthSection) @foreach ($healthBannersByPosition->get($healthSectionIndex, collect()) as $healthBanner) @include('frontend.components.home-sections.poster', ['section' => (object) ['banners' => collect([$healthBanner]), 'background_image' => null]]) @endforeach @if ($healthSection->hasRenderableContent()) @endif @endforeach @foreach ($healthBannersByPosition->get($healthSections->count(), collect()) as $healthBanner) @include('frontend.components.home-sections.poster', ['section' => (object) ['banners' => collect([$healthBanner]), 'background_image' => null]]) @endforeach
@endif
@endsection