- {% set isOption = isOption is defined and isOption %}
- {% set sosediCertificateTwentyRublesId = 3178 %}
- {% set sosediCertificateFiftyRublesId = 3179 %}
- {% set sosediCertificateHundredRublesId = 3180 %}
- <div name="{{ dish.id }}" class="delivery-teaser delivery-dish-info{{ isOption ? ' delivery-option-teaser' }} {% if dish.freeCodesCount is defined and not dish.freeCodesCount %}disabled{% endif %}">
-     <div class="delivery-teaser--img" style="background-image: url('{{ dish.imageURL }}')">
-         <div class="delivery-teaser-info">
-             <div class="d-flex justify-content-between">
-                 {% if isTop is defined and isTop %}
-                     <div class="delivery-sales-medal-wrapp position-relative">
-                         <img class="delivery-sales-medal" src="/images/delivery-sales-medal.png" alt="delivery-sales-medal">
-                     </div>
-                 {% endif %}
-             </div>
-             {% set discount = calcDishDiscount(dish.regularPrice, dish.offerPrice) %}
-             {% if hasSosediPurchaseForUser is defined and (hasSosediPurchaseForUser == false and dish.id == sosediCertificateTwentyRublesId
-                 or hasSosediPurchaseForUser == false and dish.id == sosediCertificateHundredRublesId)
-             %}
-                 {% set discount = 10 %}
-             {% endif %}
-             {% if discount > 0 %}
-               <div class="delivery-discount" data-discount="-{{ discount }}">-{{ discount }}%</div>
-             {% endif %}
-         </div>
-         {% if dish.id != sosediCertificateTwentyRublesId and dish.id != sosediCertificateFiftyRublesId and dish.id != sosediCertificateHundredRublesId %}
-             <a class="delivery-teaser-more show-delivery-details"><div>Подробнее <i class="slivki-icon-search"></i></div></a>
-         {% endif %}
-         {% if dish.fastDelivery is defined %}
-             <div class="delivery-time-wrapp" style="display: none">
-                 <div class="rounded-14 bg-orange delivery-time-row">
-                     <i class="fa fa-clock-o text-white mr-2" aria-hidden="true"></i>
-                     <p class="text-white">{{ dish.fastDelivery.time }} {{ dish.fastDelivery.text }}</p>
-                 </div>
-             </div>
-         {% endif %}
-     </div>
-     <div class="text-center px-2">
-         <input class="hidden free-codes-count" value="{{ dish.freeCodesCount is defined ? dish.freeCodesCount }}"/>
-         <div class="font-size-1125 dish-name font-600">{{ dish.name }}</div>
-         <div class="font-size-8125 dish-weight opacity-06 my-2">
-             {% if dish.sizeFull %}
-                 {{ dish.sizeFull|raw }}
-             {% endif %}
-         </div>
-         <div class="d-flex px-0 info-block-food-item">
-             <div class="purchase-count-teaser d-flex ml-1 m-t-3">
-                 {% if dish.purchaseCount is defined %}
-                 <div class="d-flex justify-content-between align-items-center">
-                     <img class="delivery-sales-icon" src="/images/delivery-sales-icon-black.svg" alt="delivery-sales-icon">
-                     <p class="delivery-sales">{{ dish.purchaseCount }}</p>
-                 </div>
-                 {% endif %}
-             </div>
-             <div class="price-block">
-                 <span class="font-size-0875 delivery-price">
-                    {% if hasSosediPurchaseForUser is defined and (hasSosediPurchaseForUser == false and dish.id == sosediCertificateTwentyRublesId or hasSosediPurchaseForUser == false and dish.id == sosediCertificateHundredRublesId) %}
-                        {{ dish.regularPrice|number_format(2, ',') -  dish.regularPrice|number_format(2, ',')/100*10 }} р
-                    {% else %}
-                        {{ dish.offerPrice|number_format(2, ',') }} р
-                    {% endif %}
-                 </span>
-                 {% if dish.offerPrice < dish.regularPrice %}
-                     <del><span class="delivery-old-price">{{ dish.regularPrice|number_format(2,',') }} р</span></del>
-                 {% endif %}
-             </div>
-         </div>
-         {% if dish.pricePerKilogram is defined and dish.pricePerKilogram != null %}
-             <div class="js-price-per-kilogram sf-font opacity-06 d-flex justify-flex-end pt-2 d-none">
-                 <img alt="" src="/images/weight.svg"/>
-                 <p class="mb-0 ml-2 align-self-center"><span id="pricePerKilogramP">{{ dish.pricePerKilogram|number_format(2, ',') }}</span> р / кг</p>
-             </div>
-         {% endif %}
-         {% if dish.freeCodesCount is defined and not dish.freeCodesCount %}
-             <div class="sf-text-font font-size-1125 font-800 text-uppercase py-4" style="line-height: 37px;">Продано</div>
-         {% else %}
-             {% if isAvailableOnFood is not defined or not isAvailableOnFood %}
-             <div class="mt-3">
-                 {% include 'Slivki/delivery/quantity_select.html.twig' with {} %}
-             </div>
-             {% endif %}
-         {% endif %}
-     </div>
-     <div class="dish-description hidden">{{ (dish.description ~ getDishNutrients(dish))|raw }}</div>
- </div>