{{ $page->meta_title }} @foreach ($hreflangs as $lang => $href) @endforeach @push('headerScripts') @if (isset($domain->header_scripts)) {!! $domain->header_scripts !!} @endif @endpush background-color: {{ $backgroundColors[$page->background_color_id] ?? '' }}; @push('bodyScripts') @if (isset($domain->body_scripts)) {!! $domain->body_scripts !!} @endif @endpush @include('partials.front._header') @php $staticHeroSection = $page->sections->where('sectionType.type', 'static_hero')->first(); $heroSliderSection = $page->sections->where('sectionType.type', 'hero_slider')->first(); $isInWrapper = $page->sections->where('is_in_wrapper', 1); $isNotInWrapper = $page->sections->where('is_in_wrapper', 0); @endphp @if ($staticHeroSection) @include('front.sections.' . $staticHeroSection->sectionType->type, ['section' => $staticHeroSection]) @endif @if (!$heroSliderSection && !$staticHeroSection)

{{ $page->title }}

{{ $page->description }}

@endif @if ($isInWrapper->isNotEmpty())
@foreach ($isInWrapper as $section) @php $viewName = 'front.sections.' . $section->sectionType->type; @endphp @if (View::exists($viewName)) @include($viewName) @endif @endforeach
@endif @foreach ($isNotInWrapper as $section) @if ($section->id !== $staticHeroSection?->id) @php $viewName = 'front.sections.' . $section->sectionType->type; @endphp @if (View::exists($viewName)) @include($viewName) @endif @endif @endforeach @include('partials.front._footer')