@props([ 'navigation' => null, 'brand' => null, ]) @php $themeKey = config('app.theme'); $brand = $brand ?? config('domains.domains.'.$themeKey.'.brand', [ 'name' => 'businessportal', 'accent' => '24', 'tagline_short' => 'Pressemitteilungen · DACH', ]); $brandName = $brand['name'] ?? 'businessportal'; $brandAccent = $brand['accent'] ?? ''; $brandTagline = __('web.footer.tagline_short'); @endphp @php $activeEdition = app()->getLocale(); \Carbon\Carbon::setLocale($activeEdition); $today = now(); // Ausgaben = Sprachen (DE/EN). Wechsel führt zur Startseite der jeweiligen Ausgabe. $editions = [ ['code' => 'de', 'label' => 'DE', 'flag' => '🇩🇪'], ['code' => 'en', 'label' => 'EN', 'flag' => '🌐'], ]; // Navigation = echte Rubriken der aktiven Ausgabe. Es gibt keine separate // Übersichtsseite; jeder Eintrag führt direkt auf die Kategorieseite. // Die meistbespielten Rubriken erscheinen als Tabs, der Rest im // „Mehr“-Dropdown (Desktop) bzw. in der Mobile-Liste. $moreNavigation = []; if ($navigation === null) { $categoryItems = \App\Support\CategoryNavigation::items(null)->map(fn (array $category): array => [ 'label' => $category['label'], 'href' => $category['href'], 'active' => request()->routeIs('kategorie') && request()->route('slug') === $category['slug'], ]); $moreNavigation = $categoryItems->slice(9)->values()->all(); $navigation = collect([ ['label' => __('web.nav.home'), 'href' => route('web.home'), 'active' => request()->routeIs('web.home')], ])->concat($categoryItems->take(9))->all(); } $moreActive = collect($moreNavigation)->contains(fn (array $item): bool => $item['active'] ?? false); $activeLabel = collect($navigation)->concat($moreNavigation)->firstWhere('active', true)['label'] ?? __('web.nav.menu'); @endphp
{{-- Top Utility Bar (dunkel) --}}
{{ ucfirst($today->isoFormat('dd, D. MMM')) }} @foreach ($editions as $edition) {{ $edition['flag'] }} {{ $edition['label'] }} @endforeach {{-- Sprache: mobil verkürzt; ab lg mit FAQ/API --}} {{ strtoupper($activeEdition) }} {{ __('web.header.pricing') }}
{{-- Header (Logo + Suche mittig + Buttons rechtsbündig + Burger) --}} {{-- Main Navigation (Underline-Tabs Desktop, Burger Mobile) --}} {{-- Befüllt sich selbst (TickerData) — auf allen Seiten identisch. --}}