<a href="{{ $url }}" class="dropdown-item">
    @if($icon) <i class="{{ $icon }}"></i> @endif
    <span @if($badge) class="mr-2" @endif >{{ $title }} </span>
    @if($badge) <span class="badge badge-pill bg-{{ $badgeColor }} ml-auto">{{ $badge }}</span> @endif
</a>