{% sw_extends '@Storefront/storefront/layout/header/header.html.twig' %}
{% block layout_header_actions_cart %}
{{ parent() }}
{% if (config('DmitsBruttoNetto.config.headercard')) and ( controllerName|lower!='checkout') %}
<div class="col-auto">
{{ "dmits.bruttonetto.custom.selecttext"|trans }}
<select class="custom-select change-bruttonetto" data-dmitsbruttonetto="{% if ((context.taxState=='gross') and app.request.cookies.get('dmits-bruttonetto-cookie-value')=='' and app.request.get('showprice')=='') or (app.request.cookies.get('dmits-bruttonetto-cookie-value')=='gross') or (app.request.get('showprice')=='gross') %}gross{%else %}net{% endif %}">
<option value='gross' {% if ((context.taxState=='gross') and app.request.cookies.get('dmits-bruttonetto-cookie-value')=='' and app.request.get('showprice')=='') or (app.request.cookies.get('dmits-bruttonetto-cookie-value')=='gross') or (app.request.get('showprice')=='gross') %}selected{% endif %}>{{ "dmits.bruttonetto.custom.gross"|trans|striptags }}</option>
<option value='net' {% if ((context.taxState=='net') and app.request.cookies.get('dmits-bruttonetto-cookie-value')=='' and app.request.get('showprice')=='') or (app.request.cookies.get('dmits-bruttonetto-cookie-value')=='net') or (app.request.get('showprice')=='net') %}selected{% endif %}>{{ "dmits.bruttonetto.custom.net"|trans|striptags }}</option>
</select>
</div>
{% endif %}
{% endblock %}