@if($menu->children()->count())
<ul class="dropdown-menu">
    @foreach($menu->children() as $item)
        @if($item->children()->count())
            <li class="sub-dropdown-hover">
                <a class="dropdown-item" href="javascript:void(0)">
                    {{ $item->title() }} <span class="new-text"><i class="fa-solid fa-bolt-lightning"></i></span>
                </a>
                <ul class="sub-menu">
                    @foreach($item->children() as $sub)
                        <li><a href="{{ $sub->route()->getRoutePath() }}">{{ $sub->title() }}</a></li>
                    @endforeach
                </ul>
            </li>
        @else
            <li><a class="dropdown-item" href="{{ $item->route()->getRoutePath() }}">{{ $item->title() }}</a></li>
        @endif
    @endforeach
</ul>
@endif
