<li class="nav-item">
    @if($url)
        <a href="{{ $url }}" target="{{ $target }}" class="nav-link">
            <i class="{{ $icon }}"></i>
            <span>
                {{ $title }}
            </span>
        </a>
    @else
        {{ $title }}
    @endif
</li>
