<div class="content2" id="modifiers_window">
	<div class="close close_button"><i class="fa fa-times" aria-hidden="true"></i></div>
<h1>Рекомендуем для "{{@line.product_title}}"</h1>
<form name="add_free_modfiers" action="/receipts/add_line" method="GET">
	<input type="hidden" name="product_id" value="{{0}}">
	<input type="hidden" name="parent_id" value="{{@line.id}}">
	<input type="hidden" name="count" value="1">
	<input type="hidden" name="price" value="0">
</form>
<div class="only_hand_close"></div>
	<repeat group="{{@products}}" value="{{@p}}">
	<div class="product_tile product_{{@p['id']}}">
        <div class="images images250">
			<check if="{{is_array(@p['img']) && count(@p['img'])>0}}">
				<true>
			<img src="//{{@api_data['domen']}}/upload/{{@api_data['subdomen']}}/250_250/{{@p['img'][0]}}" class="small_img">
				</true>
				<false>
			<div class="no_img"></div>
				</false>
			</check>
		</div>
		<br>
		<div>
			<div class="modifiers_count">
				<div class="count_minus count_button btn btn-primary">
					<i class="fas fa-minus"></i>
				</div>
				<input type="number" name="count" class="modifiers_{{@p.id}} modifiers_count_0 {{@modifiers[@p.id]?'modifiers_count_1':''}}" value="{{@modifiers[@p.id]?@modifiers[@p.id]:0}}" step="{{@p.quantity}}" min="0" data-product="{{@p.id}}" data-parent="{{@line.id}}">
				<div class="count_plus count_button btn btn-primary">
					<i class="fas fa-plus"></i>
				</div>
			</div>
			{~@price=@p['price']+(@p['price']*(@p['vat']/100))*max(0, @p['vat_type'])~}
			{~@price=round(@price, 2)~}
			{{number_format(@price, 2, '.', '')}} руб.
		</div>
		<h4><a href="/products/detail?id={{@p['id']}}" class="show_window text-body">{{@p['title']}}</a></h4>
	</div>
	</repeat>
</div>
<script type="text/javascript">
$('#modifiers_window').closest('.popup_content').css('height', $(window).height());
</script>