@foreach ($items as $item)
@if ($depth < 3)@endif
@if ($depth < 3) @include('admin.pages._menu', ['items' => $item['children'] ?? [], 'depth' => $depth + 1]) @endif
@endforeach @if ($depth === 0)@endif