@props([ 'navigation' => null, 'ticker' => [], 'marketIndex' => null, 'asideSlides' => 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 = $brand['tagline_short'] ?? 'Pressemitteilungen · DACH'; @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. $navigation ??= collect([ ['label' => 'Startseite', 'href' => route('web.home'), 'active' => request()->routeIs('web.home')], ])->concat( \App\Support\CategoryNavigation::items()->map(fn (array $category): array => [ 'label' => $category['label'], 'href' => $category['href'], 'active' => request()->routeIs('kategorie') && request()->route('slug') === $category['slug'], ]) )->all(); $activeLabel = collect($navigation)->firstWhere('active', true)['label'] ?? 'Menü'; @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 Newsletter/RSS/API --}} {{ strtoupper($activeEdition) }}
{{-- Header (Logo + Suche + Buttons + Burger) --}} {{-- Main Navigation (Underline-Tabs Desktop, Burger Mobile) --}}