<li class="nav-item dropdown @if($user) dropdown-user @endif">
    <a href="#" class="navbar-nav-link dropdown-toggle
        @if($user) d-flex align-items-center @endif
        @if(!$caret) caret-0 @endif"
        data-toggle="dropdown" aria-expanded="false">

        @if($user)

            @if($img) <img src="{{ $img }}" class="rounded-circle mr-2" height="34" alt=""> @endif
            <span>{{ $user }}</span>

        @else

            @if($icon) <i class="{{ $icon }}"></i> @endif
            <span class="@if($iconOnly) d-md-none @endif ml-2">
            {{ $title }}
            </span>
            @if($badge) <span class="badge badge-pill bg-{{ $badgeColor }} ml-auto ml-md-0">{{ $badge }}</span> @endif

        @endif

    </a>
    <div class="dropdown-menu dropdown-menu-right @if(!$basicDropdown) dropdown-content wmin-md-300 @endif">