{{-- One desktop navigation node. Level 2 opens a panel; level 3 nests inside it. --}} @php $hasChildren = $item->relationLoaded('children') && $item->children->isNotEmpty(); $active = $item->isActive(); @endphp @if ($level === 0)
$active, 'text-text-secondary hover:text-primary' => ! $active, ])> {{ $item->label }} @if ($hasChildren) @endif {{-- Active indicator, not colour alone. --}} $active, 'scale-x-0 bg-primary' => ! $active, ])> @if ($hasChildren)
@endif
@else
  • $active, 'text-text-secondary hover:bg-surface-muted hover:text-primary' => ! $active, ])> {{ $item->label }} @if ($hasChildren) @endif @if ($hasChildren) @endif
  • @endif