{{-- Hero photo, headline and the multi-tab search widget.
Layout (section setting, "auto" = the website template's choice):
classic — photo background, headline on the left (the original)
centered — photo background, centred headline
photo — tall full-bleed photo, headline at the bottom
split — light background, headline left, the photo as a framed card
Element ids here (tab-flight, home-hotel-cities, ...) are page-unique
because this section is not repeatable. If it is ever made repeatable, run
them through $section->domId() first: a second would
otherwise resolve to the first datalist in the document. --}}
@php
$layout = \App\Support\SiteTemplate::heroLayout($section->setting('layout'));
$heroImage = $hero?->image ? media_url($hero->image) : null;
$columnClass = match ($layout) {
'centered' => 'col-lg-10 col-xl-9 mx-auto text-center',
'split' => 'col-lg-6',
default => 'col-lg-9',
};
@endphp
{{ $section->eyebrow($hero->badge ?? ___('frontend.hero_badge')) }}
@php
// Admin override first, then the slider's own copy, then the
// shipped translation.
$heroTitle = $section->title($hero?->title);
$heroCta = $section->ctaText($hero?->cta_text ?? null);
@endphp