@php $name = Str::contains($name = $menu['name'], '::') ? BaseHelper::clean(trans($name)) : $name; @endphp $isNav = $isNav ?? true, 'dropdown-item' => !$isNav, 'dropdown-toggle' => $hasChildren, 'nav-priority-' . $menu['priority'], 'active show' => $menu['active'], ]) href="{{ $hasChildren ? "#$menu[id]" : $menu['url'] }}" id="{{ $menu['id'] }}" @if ($hasChildren) data-bs-toggle="dropdown" data-bs-auto-close="{{ $autoClose ?? 'false' }}" role="button" aria-expanded="{{ $menu['active'] ? 'true' : 'false' }}" @endif title="{{ $menu['title'] ?? $name }}" > @if (AdminAppearance::showMenuItemIcon() && $menu['icon'] !== false) @endif {!! $name !!} {!! apply_filters(BASE_FILTER_APPEND_MENU_NAME, null, $menu['id']) !!}