{% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}
{% block layout_footer_service_menu %}
{% if (config('DmitsBruttoNetto.config.footercopyright')) and (controllerName|lower!='checkout') %}
<div class="row align-items-center">
<div class="col-auto" style="margin: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>
</div>
{% endif %}
{{ parent() }}
{% if config('DmitsBruttoNetto.config.popup') %}
<div class="modal fade" id="dmitsbruttonetto" tabindex="-1" role="dialog" aria-labelledby="bruttonetto"" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="bruttonettoLabel">{{ "dmits.bruttonetto.custom.title"|trans }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
{{ "dmits.bruttonetto.custom.content"|trans|raw }}
{% if not app.request.cookies.get('dmits-bruttonetto-cookie-key') %}
{{ "dmits.bruttonetto.custom.popupcookienotice"|trans|raw }}
{% endif %}
</div>
<div class="modal-footer">
<div class="col-6">
{% if config('DmitsBruttoNetto.config.titlenetto') %}<p> {{ "dmits.bruttonetto.custom.titlenetto"|trans }}</p>{% endif %}
{% if config('DmitsBruttoNetto.config.contentnetto') %}<p> {{ "dmits.bruttonetto.custom.contentnetto"|trans|raw }}</p>{% endif %}
<button type="button" class="btn btn-secondary" id="btn-dmits-net">{{ "dmits.bruttonetto.custom.contentbuttonnetto"|trans }}</button>
</div>
<div class="col-6">
{% if config('DmitsBruttoNetto.config.titlebrutto') %}<p> {{ "dmits.bruttonetto.custom.titlebrutto"|trans }}</p>{% endif %}
{% if config('DmitsBruttoNetto.config.contentbrutto') %}<p> {{ "dmits.bruttonetto.custom.contentbrutto"|trans|raw }}</p>{% endif %}
<button type="button" class="btn btn-secondary" id="btn-dmits-gross">{{ "dmits.bruttonetto.custom.contentbuttonbrutto"|trans }}</button>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}