{% trans_default_domain('seller') %}
<div {{ attributes }}>
   {% set numberOfAvailableSellers = this.numberOfAvailableSellers %}
   <div class="availability-info">
      {% if numberOfAvailableSellers == 0 %}
         <div class="h5 available-in unavailable">{{ 'unavailableAtSellers'|trans }}</div>
      {% else %}
         <div class="h5 available-in">{{ 'availableIn'|trans({ '%sellers%': numberOfAvailableSellers }) }}</div>
         <div>{{ 'availableToday'|trans }}</div>
      {% endif %}
   </div>
   {% if numberOfAvailableSellers > 0 %}
      <div class="availability-modal-button">
         <a role="button" data-wpj-modal="{{ path('kupshop_components_modal_modal', { template: 'seller-availability', id_product: this.id_product, id_variation: this.id_variation }) }}">
            {{ 'availabilityInSellers'|trans }}
         </a>
      </div>
   {% endif %}
</div>
