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