@if($isHub)
@foreach($allAreas as $w)
@continue(!empty($w['noindex']) || !empty($w['footer_only']))
{{ $w['label'] }}
@endforeach
@else
@php
// Tool categories for the Web-Tools mega dropdown (auto-derived, count per category).
$toolCats = collect();
if (($area['key'] ?? '') === 'webtools') {
$toolCats = collect(config('webtools_extra', []))
->concat(config('webtools_standalone', []))
->groupBy('cat')
->map->count()
->sortKeys();
}
@endphp
@foreach(($area['header_nav'] ?? [['label' => 'Übersicht', 'path' => '']]) as $link)
@php $lbl = is_array($link['label']) ? ($routeLocale === 'en' ? $link['label'][1] : $link['label'][0]) : $link['label']; @endphp
@if(($link['type'] ?? '') === 'categories' && $toolCats->isNotEmpty())
{{ $lbl }}
@else
{{ $lbl }}
@endif
@endforeach
@endif
{{-- Gefilterte Anzahl (ShopCart::count() ueber den View-Composer) — nicht die rohe
Session-Summe, sonst zaehlt der Badge unveroeffentlichte/geloeschte Produkte mit. --}}
@php $cartNavCount = $shopCartCount; @endphp