<div class="card h-100 borderWebshop">
<a class="text-center" href="{{ articlePath|replace({'article.id': article.id}) }}">
{% if article.image %}
<img class="imgArticle" src="/image/article/{{ article.image }}"
alt="article{{ article.id }}">
{% else %}
<img class="imgArticle" src="{{ asset('image/article/default.jpg') }}"
alt="article{{ article.id }}">
{% endif %}
</a>
<div class="card-body">
<div class="row">
<div class="col-12">
<h4 class="card-title regularSubtitle text-center">
<a href="{{ articlePath|replace({'article.id': article.id}) }}">{{ article.name }}</a>
</h4>
{% if article.prePackaged is defined %}
<p class="text-center">{{ article.prePackaged }}</p>
{% endif %}
<hr>
</div>
</div>
<div class="bodyText text-center">
<p>{{ article.description }}</p>
</div>
<div class="row align-items-center align-middle">
{% if app.user %}
<div class="col-6 text-center">
<a class="btn icon-add" href="{{ articlePath|replace({'article.id': article.id}) }}"></a>
</div>
<div class="col-6">
<div class="d-inline">
<input type="number" id="qty{{ article.id }}"
onchange="checkMaxQty({{ article.id }}, {{ article.maxQty }})" min="1" max="99"
value="1">
<span> pcs </span>
</div>
<div class="d-inline">
<button class="btn icon-cart-red"
data-toggle="popover" data-trigger="hover"
data-content="{{ "article.addArticle" | trans }}"
onclick="addOrderArticle({{ article.id }})">
</button>
</div>
</div>
{% else %}
<div class="col-12 text-center">
<a class="btn icon-add" href="{{ articlePath|replace({'article.id': article.id}) }}"></a>
</div>
{% endif %}
</div>
{% if app.user %}
<div class="row">
<hr class="hrDark">
<div class="col-12">
{% if article.price.salePrice is defined %}
{% if article.price.salePrice > article.price.salePricePromo %}
<h4 class="text-center textPrice">
<span class="promo">{{ article.price.salePrice|number_format(2) }}€</span>
<span style="color:green">{{ article.price.salePricePromo|number_format(2) }}€{% if article.isVaryingWeight %} /kg {% endif %}</span>
</h4>
{% else %}
<h4 class="text-center textPrice">{{ article.price.salePricePromo|number_format(2) }}
€ {% if article.isVaryingWeight %} /kg {% endif %}</h4>
{% endif %}
{% else %}
<h4 class="text-center textPrice ">{{ article.price|number_format(2) }} €
{% if article.isVaryingWeight %} /kg {% endif %}</h4>
{% endif %}
</div>
</div>
{% endif %}
</div>
</div>