@php $children = array_values(array_filter((array)($item['children'] ?? []), 'is_array')); $hasChildren = count($children)>0 && $level<8; $itemUrl = $pt->url($item['url'] ?? '', ''); $target = ($item['target'] ?? '_self') === '_blank' ? '_blank' : '_self'; $submenuId = 'pt-submenu-'.$branch; @endphp
  • @if($itemUrl)active($item)) aria-current="true" @endif>{{ $item['title'] ?? 'Page' }} @else{{ $item['title'] ?? 'More' }}@endif @if($hasChildren)@endif
    @if($hasChildren)@endif