<ul class="nav nav-pills user-nav-pills">
    @foreach($menu->nested() as $list)
        <li class="nav-item">
            <a href="{{ $list->data->route()?->getRoutePath() ?? '' }}" class="nav-link" rel="{{ $list->data->route()->getRouteName() }}">
                <span style="width: 36px;">
                    {!! theme()->icon($list->data->route()->getRouteName() instanceof \Illuminate\Database\Eloquent\Model ? '' : $list->data->route()->getRouteName()) ?? '' !!}
                </span>
                {{ $list->data->title() }}
            </a>
        </li>
    @endforeach
</ul>
