<div class="sidebar-user">
    <div class="card-body">
        <div class="media">
            @if($img)
                <div class="mr-3">
                    <a href="#"><img src="{{ $img }}" width="38" height="38" class="rounded-circle" alt=""></a>
                </div>
            @endif
            <div class="media-body">
                <div class="media-title font-weight-semibold">{{ $user }}</div>
                <div class="font-size-xs opacity-50">
                    @if($subIcon) <i class="{{ $subIcon }} font-size-sm mr-0"></i> @endif
                    @if($subText) {{ $subText }} @endif
                </div>
            </div>
            @if($icon)
                <div class="ml-3 align-self-center">
                    <a href="{{ $iconUrl }}" class="text-white"><i class="{{ $icon }}"></i></a>
                </div>
            @endif
        </div>
    </div>
</div>