{% sw_extends "@Storefront/storefront/layout/header/top-bar.html.twig" %}
{% block layout_header_top_bar_language %}
{% block layout_header_top_bar_tax_state %}
{% if context.customer and not isSalesRepresentative %}
{% set currentTaxState = context.context.taxState %}
<div class="top-bar-nav-item top-bar tax-state-switch">
{% if currentTaxState == 'gross' %}
{% block layout_header_top_bar_tax_state_link_business %}
<a href="{{ path('frontend.b2b_b2c_switch.index') }}"
title="{{ 'b2bPlatform.topbar.businessclient'|trans|sw_sanitize }}"
class="top-bar-nav-text">
{{ 'b2bPlatform.topbar.businessclient'|trans|sw_sanitize }}
</a>
{% endblock %}
{% else %}
{% block layout_header_top_bar_tax_state_link_private %}
<a href="{{ path('frontend.b2b_b2c_switch.index') }}"
title="{{ 'b2bPlatform.topbar.privatclient'|trans|sw_sanitize }}"
class="top-bar-nav-text">
{{ 'b2bPlatform.topbar.privatclient'|trans|sw_sanitize }}
</a>
{% endblock %}
{% endif %}
</div>
{% endif %}
{% endblock %}
{{ parent() }}
{% endblock %}