{% set total_quantity = 0 %}
{% for key, item in cart.items %}
{% set total_quantity = total_quantity + item.quantity %}
{% endfor %}
<div class="panier-top">
<span>{{ 'app.front.panier.titre'|trans }}</span>
<button class="btn-panier">
<img src="{{ asset('webapic-theme/images/icon-panier-hover.svg') }}" class="ui image" />
<span>{{ total_quantity }}</span>
</button>
<button class="close">
<img src="{{ asset('webapic-theme/images/icon-close.svg') }}" class="ui image" />
</button>
</div>