<!-- New menu - Account dropdown menu -->
<div class="profile-dropdown">
    <a href="{{ route('customer.profile.edit') }}" class="profile-block profile">
        <div class="user-img">
            <img src="{{ bagisto_asset('icons/user_profile_black.svg') }}" alt="user">
        </div>
        <span class="profile-text user-name">{{ auth()->guard('customer')->user()->first_name }}</span>
    </a>

    <div class="horizontal"></div>
    <a href="{{ $menu->items['account']['children']['address']['url'] }}" class="profile-block history ">
        <div class="user-img">
            <img src="{{ bagisto_asset('icons/writing.svg') }}" alt="pen">
        </div>
        <span class="profile-text">{{ trans($menu->items['account']['children']['address']['name']) }}</span>
    </a>
    <a href="{{ $menu->items['account']['children']['reviews']['url'] }}" class="profile-block history ">
        <div class="user-img">
            <img src="{{ bagisto_asset('icons/writing.svg') }}" alt="pen">
        </div>
        <span class="profile-text">{{ trans($menu->items['account']['children']['reviews']['name']) }}</span>
    </a>
    <a href="{{ $menu->items['account']['children']['orders']['url'] }}" class="profile-block history ">
        <div class="user-img">
            <img src="{{ bagisto_asset('icons/writing.svg') }}" alt="pen">
        </div>
        <span class="profile-text">{{ trans($menu->items['account']['children']['orders']['name']) }}</span>
    </a>
    <div class="horizontal"></div>
    <a href="#" onclick="event.preventDefault();
                        document.querySelector('.logout-form').submit();" class="profile-block logout">

        <!-- Invisible logout form -->
        <form method="POST" class="logout-form" action="{{ route('customer.session.destroy') }}" style="visibility: hidden; height: 0; width: 0;">
            @csrf
            {{ method_field('DELETE') }}
        </form>
        <!-- Invisible logout form end -->

        <div class="user-img">
            <img src="{{ bagisto_asset('icons/logout.svg') }}" alt="Выйти">
        </div>
        <span class="profile-text">{{ __('shop::app.header.logout') }}</span>
    </a>
</div>

<!-- New menu - Account dropdown menu end -->
