@php $active = $builder->isActive($item); $depth = $item['depth'] ?? 0; @endphp @if($builder->visible($item)) @if(empty($item['children'])) @else @php $active = $builder->isActive($item); @endphp @endif @endif