@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->data->title() }} <span class="new-text"><i class="fa-solid fa-bolt-lightning"></i></span>
                </a>
                <ul class="sub-menu">
                    @foreach($item->data->children() as $sub)
                        <li><a href="{{ $sub->data->route()->getRoutePath() }}">{{ $sub->data->title() }}</a></li>
                    @endforeach
                </ul>
            </li>
        @else
            <li><a class="dropdown-item" href="{{ $item->data->route()->getRoutePath() }}">{{ $item->data->title() }}</a></li>
        @endif
    @endforeach
</ul>
@endif
