<div class="delivery-quantity-select-wrapp">
<div class="delivery-quantity-select bg-white{{ isMobile is defined ? ' float-right' }}{{ isOption is defined and isOption ? ' delivery-option-quantity-select disabled' }}">
<div class="input-group input-group-sm">
<div class="input-group-prepend {{ isBasket is defined ? '' : 'js-dec-animation'}} ">
<button class="{{ isMobile is defined ? 'btn' : 'delivery-btn' }} {{ isOption is defined and isOption ? ' delivery-option-items' }} delivery-change-quantity delivery-dec-quantity" type="button">
<img class="delivery-dec-quantity-img" width="14" height="14" src="/images/order_page/dec.svg"/>
</button>
</div>
{% set offerPrice = dish is defined ? dish.dataBySize is defined ? dish.dataBySize|first[0].offerPrice.value : dish.offerPrice|replace({',': '.'}) %}
{% if isMobileDevice() %}
{% if hasSosediPurchaseForUser is defined (hasSosediPurchaseForUser == false and dish.id == 3178 or hasSosediPurchaseForUser == false and dish.id == 3179) %}
<input
type="tel"
name="count[]"
data-price="{{ dish is defined ? dish.dataBySize is defined ? dish.dataBySize|first[0].regularPrice.value :
dish.regularPrice }}"
data-offer-price="{{ dish is defined ? dish.dataBySize is defined ? dish.dataBySize|first[0].offerPrice.value : (dish.regularPrice|number_format(2) - dish.regularPrice|number_format(2)/100*10)|replace({',': '.'}) }}"
data-id="{{ dish is defined ? dish.id }}"
data-percode="{{ dish is defined and dish.productsPerCode is defined ? dish.productsPerCode : 0 }}"
class="form-control {{ isBasket is defined ? '' : 'js-input-animation'}} delivery-quantity{{ isOption is defined and isOption ? ' option-quantity' }}{{ dish.sauceNeed is defined and dish.sauceNeed ? ' need-sauces' }}"
readonly
placeholder=""
value="{{ dish is defined and dish.inBasketCount is defined ? dish.inBasketCount : 0 }}"
>
{% else %}
<input
type="tel"
name="count[]"
data-price="{{ dish is defined ? dish.dataBySize is defined ? dish.dataBySize|first[0].regularPrice.value :
dish.regularPrice }}"
data-offer-price="{{ offerPrice }}"
data-id="{{ dish is defined ? dish.id }}"
data-percode="{{ dish is defined and dish.productsPerCode is defined ? dish.productsPerCode : 0 }}"
class="form-control {{ isBasket is defined ? '' : 'js-input-animation'}} delivery-quantity{{ isOption is defined and isOption ? ' option-quantity' }}{{ dish.sauceNeed is defined and dish.sauceNeed ? ' need-sauces' }}"
readonly
placeholder=""
value="{{ dish is defined and dish.inBasketCount is defined ? dish.inBasketCount : 0 }}"
>
{% endif %}
{% else %}
<input
type="tel"
name="count[]"
data-price="{{ dish is defined ? dish.dataBySize is defined ? dish.dataBySize|first[0].regularPrice.value :
dish.regularPrice }}"
data-offer-price="{{ offerPrice }}"
data-id="{{ dish is defined ? dish.id }}"
data-percode="{{ dish is defined and dish.productsPerCode is defined ? dish.productsPerCode : 0 }}"
class="form-control {{ isBasket is defined ? '' : 'js-input-animation'}} delivery-quantity{{ isOption is defined and isOption ? ' option-quantity' }}{{ dish.sauceNeed is defined and dish.sauceNeed ? ' need-sauces' }}"
readonly
placeholder=""
value="{{ dish is defined and dish.inBasketCount is defined ? dish.inBasketCount : 0 }}"
>
{% endif %}
<div class="input-group-append">
<button class="{{ isMobile is defined ? 'btn' : 'delivery-btn' }} delivery-change-quantity delivery-inc-quantity" type="button">
{% if showPriceIfNoSelected is defined and showPriceIfNoSelected %}
{{ offerPrice }} р
{% else %}
<img width="14" height="14" src="/images/order_page/inc.svg"/>
{% endif %}
</button>
</div>
</div>
</div>
<input type="hidden" name="dishID[]" value="{{ dish is defined ? dish.id }}"/>
{% if dish.isSticks is defined %}
<input type="hidden" id="sticksID" value="{{ dish.id }}"/>
{% endif %}
{% if dish.isSoySauce is defined %}
<input type="hidden" id="soySauceID" value="{{ dish.id }}"/>
{% endif %}
{% if dish.isGinger is defined %}
<input type="hidden" id="gingerID" value="{{ dish.id }}"/>
{% endif %}
{% if dish.isWasabi is defined %}
<input type="hidden" id="wasabiID" value="{{ dish.id }}"/>
{% endif %}
</div>