<div class="nav-item dropdown">
    <a href="#" class="nav-link d-flex lh-1 text-reset p-0" data-bs-toggle="dropdown" aria-label="Open user menu">
        <span class="avatar avatar-sm rounded-circle">
            <img class="avatar avatar-sm rounded-circle bg-transparent" src="{{ siberfx_avatar_url(siberfx_auth()->user()) }}"
                 alt="{{ siberfx_auth()->user()->name }}" onerror="this.style.display='none'"
                 style="margin: 0;position: absolute;left: 0;z-index: 1;">
            <span class="avatar avatar-sm rounded-circle siberfx-avatar-menu-container text-center">
                {{ siberfx_user()->getAttribute('name') ? mb_substr(siberfx_user()->name, 0, 1, 'UTF-8') : 'A' }}
            </span>
        </span>
        <div class="d-none d-xl-block ps-2">
            <div>{{ siberfx_user()->name }}</div>
            <div class="mt-1 small text-muted">{{ trans('siberfx::crud.admin') }}</div>
        </div>
    </a>
    <div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
        @if(config('siberfx.base.setup_my_account_routes'))
            <a href="{{ route('siberfx.account.info') }}" class="dropdown-item"><i class="la la-user me-2"></i>{{ trans('siberfx::base.my_account') }}</a>
            <div class="dropdown-divider"></div>
        @endif
        <a href="{{ siberfx_url('logout') }}" class="dropdown-item"><i class="la la-lock me-2"></i>{{ trans('siberfx::base.logout') }}</a>
    </div>
</div>
