{% trans_default_domain 'orders' %}
<div {{ attributes }}>
   {% set discounts = this.discounts %}
   {% if discounts is not empty %}
      <div class="discounts-wrapper">
         <p class="heading">
            {{ 'appliedDiscounts'|trans }}
         </p>
         {% for discount in discounts %}
            <div class="item">
               <div class="title">{{ discount.name }}</div>
               <div class="total">
                  <div class="price">
                     -{{ discount.totalPrice|formatPrice(ceil: false, decimal: 'dynamic') }}
                  </div>
               </div>
            </div>
         {% endfor %}
      </div>
   {% endif %}
</div>
