{% sw_extends '@Storefront/storefront/page/account/sidebar.html.twig' %}
{% block page_account_sidebar_header %}
<div class="card-header account-aside-header">
<div class="fancy-headline">
{% sw_icon "key" style {'pack':'bodymed'} %}
<img src="{{ asset('assets/img/bodymed-id-logo.png', '@MadBodymedTheme') }}" />
{#<span class="sublime">{{ "account.accountHeaderSublime"|trans }}</span>#}
<div class="h1">{{ "account.accountHeaderTitle"|trans }}</div>
</div>
{{ "account.greetings"|trans|sw_sanitize }}<br />
{% if context.customer.title %}
{{ context.customer.title }}<br />
{% endif %}
<strong>{{ context.customer.firstName }}</strong>
<strong>{{ context.customer.lastName }}</strong>
{# Kundennummern, die mit BMK beginnen, sollen nicht ausgegeben werden
@see https://madcode.atlassian.net/browse/BODYMED-482
#}
{% if context.customer.customerNumber matches '/^[^(BMK)].*$/' %}
<div class="account-aside-header-label">
<strong>{{ "account.accountCustomNumberLabel"|trans }}</strong>
</div>
<strong>{{ context.customer.customerNumber }}</strong>
{% endif %}
<div class="account-aside-header-avatar">
{{ context.customer.firstName|first }}
{{ context.customer.lastName|first }}
</div>
</div>
{% endblock %}
{% block page_account_sidebar_menu %}
{% if context.customer %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block page_account_sidebar_link_home %}
<a href="{{ path('frontend.account.home.page') }}"
title="{{ "account.overviewLink"|trans|striptags }}"
class="list-group-item list-group-item-action account-aside-item{% if controllerName is same as('AccountProfile') and controllerAction is same as('index') %} is-active{% endif %}">
{% sw_icon 'dashboard' style {'pack':'bodymed'} %}
{{ "account.overviewLink"|trans|sw_sanitize }}
</a>
{% endblock %}
{% block page_account_sidebar_link_profile %}
<a href="{{ path('frontend.account.profile.page') }}"
title="{{ "account.profileLink"|trans|striptags }}"
class="list-group-item list-group-item-action account-aside-item{% if controllerName is same as('AccountProfile') and controllerAction is same as('profileOverview') %} is-active{% endif %}">
{% sw_icon 'account' style {'pack':'bodymed'} %}
{{ "account.profileLink"|trans|sw_sanitize }}
</a>
{% endblock %}
{% block page_account_sidebar_link_address %}
<a href="{{ path('frontend.account.address.page') }}"
title="{{ "account.addressLink"|trans|striptags }}"
class="list-group-item list-group-item-action account-aside-item{% if controllerName is same as('Address') and controllerAction is same as('accountAddressOverview') %} is-active{% endif %}">
{% sw_icon 'address' style {'pack':'bodymed'} %}
{{ "account.addressLink"|trans|sw_sanitize }}
</a>
{% endblock %}
{% block page_account_sidebar_link_payment %}
<a href="{{ path('frontend.account.payment.page') }}"
title="{{ "account.paymentLink"|trans|striptags }}"
class="list-group-item list-group-item-action account-aside-item{% if controllerName is same as('AccountPayment') and controllerAction is same as('paymentOverview') %} is-active{% endif %}">
{% sw_icon 'shipping-payment' style {'pack':'bodymed'} %}
{{ "account.paymentLink"|trans|sw_sanitize }}
</a>
{% endblock %}
{% block page_account_sidebar_link_orders %}
<a href="{{ path('frontend.account.order.page') }}"
title="{{ "account.ordersLink"|trans|striptags }}"
class="list-group-item list-group-item-action account-aside-item{% if controllerName is same as('AccountOrder') and controllerAction is same as('orderOverview') %} is-active{% endif %}">
{% sw_icon 'cart-confirm' style {'pack':'bodymed'} %}
{{ "account.ordersLink"|trans|sw_sanitize }}
</a>
{% endblock %}
{% block page_account_sidebar_logout %}
{# Wichtig: Logout muss über Bodymed-ID ausgeführt werden #}
<a href="{{ path('frontend.bodymed_id.logout') }}"
class="btn btn-link account-aside-btn">
{% sw_icon 'log-out' %}
{{ "account.logout"|trans|sw_sanitize }}
</a>
{% endblock %}
{% block page_account_sidebar_guest_abort %}
{# Wichtig: Logout muss über Bodymed-ID ausgeführt werden #}
<a href="{{ path('frontend.bodymed_id.logout') }}"
class="btn btn-link account-aside-btn">
{% sw_icon 'log-out' %}
{{ "account.guestAbort"|trans|sw_sanitize }}
</a>
{% endblock %}