@php $destination = trim((string) ($item['url'] ?? '#')); $href = str_starts_with($destination, '#') ? $destination : (\App\Support\BrandLogo::toUrl($destination) ?: '#'); $newTab = ($item['target'] ?? '_self') === '_blank'; $active = rtrim($href, '/') === rtrim(url()->current(), '/'); @endphp
  • {{ $item['title'] }} @if(!empty($item['children']))
    @endif