<li class="nav-item">
    <a href="{{ $url }}" class="navbar-nav-link">
        @if($icon)
            <i class="{{ $icon }} @if(!$iconOnly) mr-2 @endif"></i>
        @endif
        @if(!$iconOnly) {{ $title }} @endif
        @if($badge) <span class="badge badge-pill bg-{{ $badgeColor }} ml-auto ml-md-0">{{ $badge }}</span> @endif
    </a>
</li>