@foreach ($items as $item) @php $children = $item['items'] ?? []; $hasChildren = count($children) > 0; $active = $item['active'] ?? false; @endphp @if ($level === 0)
  • @if (($item['icon'] ?? null) === 'menu-icon-backend') @elseif (($item['icon'] ?? null) === 'menu-icon-frontend') @elseif (($item['icon'] ?? null) === 'menu-icon-content') @elseif (!empty($item['icon'])) @else @endif {{ $item['label'] }} @if ($hasChildren) @endif @if ($hasChildren)
    @endif
  • @else
  • @if (!empty($item['icon'])) @if ($item['icon'] === 'menu-icon-backend') @elseif ($item['icon'] === 'menu-icon-frontend') @elseif ($item['icon'] === 'menu-icon-content') @else @endif @endif {{ $item['label'] }} @if ($hasChildren) @endif @if ($hasChildren)
    @endif
  • @endif @endforeach