@foreach($items as $item)
  • hasChildren()) class="dropdown" @endif> {{ $item->title }} @if($item->hasChildren()) @endif
  • @endforeach