@php $phone = (string) config('fewo.owner.phone'); // Menu panels: jump links to the headed sections of each page (sections limited to appearances are left out). $menuEntries = $theme->menu('main')->values()->map(fn ($page, $position) => [ 'page' => $page, 'panel' => 'menu-panel-'.$position, 'anchors' => collect($page->sections ?? []) ->map(fn ($section, $index) => [ 'label' => $section['data']['heading'] ?? null, 'id' => ($section['type'] ?? '').'-'.$index.'-title', 'type' => $section['type'] ?? '', 'limited' => ! empty($section['data']['appearances'] ?? []), ]) ->filter(fn ($anchor) => filled($anchor['label']) && ! $anchor['limited'] && ! in_array($anchor['type'], ['hero', 'booking', 'contact', 'rich_text', 'offers', 'reviews'], true)) ->take(6) ->values(), ]); @endphp
@include('theme::partials.logo', ['class' => 'h-12 w-auto shrink-0 lg:h-16', 'sizes' => '(min-width: 1024px) 9.5rem, 7rem']) {{ $theme->site->name }}
@foreach ($menuEntries->filter(fn ($entry) => $entry['anchors']->isNotEmpty()) as $entry) @php($item = $entry['page']) @endforeach