@php
$title = $title ?? null;
$description = $description ?? null;
$eyebrow = $eyebrow ?? null;
$hero = $hero ?? false;
$breadcrumbs = $breadcrumbs ?? [];
@endphp
@php
$compositionRenderer = app(\Modules\Content\Services\PageRenderer::class);
$compositionPageKey = $pageKey ?? null;
$hasPageComposition = $compositionPageKey && $compositionRenderer->hasComposition($compositionPageKey);
@endphp
@if($hasPageComposition)
{!! $compositionRenderer->renderRegion($compositionPageKey, 'header') !!}
@else
@include('stylist-theme-saasland::partials.header')
@endif
@unless($hero)
@if ($breadcrumbs)
@endif
@if ($eyebrow)
{{ $eyebrow }}@endif
{{ $title }}
@if ($description)
{{ $description }}
@endif
@endunless
@yield('content')
@if($hasPageComposition)
{!! $compositionRenderer->renderRegion($compositionPageKey, 'footer') !!}
@else
@include('stylist-theme-saasland::partials.footer')
@endif
@stack('theme-scripts')