@if (($item['type'] ?? null) === 'html') {!! $item['html'] !!} @else @php $children = $item['children'] ?? []; $hasChildren = $children !== []; $target = $item['target'] ?? null; $rel = $item['rel'] ?? ($target === '_blank' ? 'noopener noreferrer' : null); @endphp
$hasChildren, $item['class'] ?? null])> $hasChildren]) href="{{ $hasChildren ? '#' . $item['id'] : $item['url'] }}" @if ($hasChildren) id="{{ $item['id'] }}" data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button" aria-expanded="false" @endif @if (blank($item['label'])) aria-label="{{ $item['id'] }}" @endif @if ($target) target="{{ $target }}" @endif @if ($rel) rel="{{ $rel }}" @endif > @if ($item['icon']) @endif @if ($item['label']) {{ $item['label'] }} @endif @if ($hasChildren) @endif
@endif