{% for lot in lots %}
<div itemscope itemtype="https://schema.org/Product" class="cards-item">
{% if lot.oldPrice %}
<div class="sale_item" style="">-{{ lot.oldPrice }}%</div>{% endif %}
<a href="/zagorodnaya_nedvizhimost/{{ lot.id }}/">
<div class="cards-item-image">
<img class="hide__phone" itemprop="image"
src="{% for photo in lot.photos %}{% if photo.isMain %}/cache{{ photo.webPathImage|replace({"." : "_570x360."}) }}{% endif %}{% endfor %}"
width="285"
alt="{% if lot.typeOperation.id == 1 %}Купить{% else %}Арендовать{% endif %} {{ currency.getAccusative(lot.typeHouse.id) }} {% if lot.repair %}с отделкой{% else %}без отделки{% endif %} {{ lot.highway }} {{ lot.mkadDistance }}км от МКАД">
<img class="hide__desctop hide__tablet"
src="{% for photo in lot.photos %}{% if photo.isMain %}/cache{{ photo.webPathImage|replace({"." : "_622x392."}) }}{% endif %}{% endfor %}"
width="285"
alt="{% if lot.typeOperation.id == 1 %}Купить{% else %}Арендовать{% endif %} {{ currency.getAccusative(lot.typeHouse.id) }} {% if lot.repair %}с отделкой{% else %}без отделки{% endif %} {{ lot.highway }} {{ lot.mkadDistance }}км от МКАД">
</div>
</a>
<div class="cards-item-text">
<table class="table" style="margin-left: 15px; width: 490px;margin-top: 10px;">
<tr style=" height: 45px;">
<td class="table-key table-key__big" colspan="2">
<div style="height: 30px; width: 326px;" class="for-hint card-item-title hint" data-id="{{ lot.id }}"><span><a
href="/zagorodnaya_nedvizhimost/{{ lot.id }}/"
itemprop="name">{% if lot.settlement %}{{ lot.settlement.name }}{% else %}{% if lot.highway and lot.highway.onSite %}{{ lot.highway.onSite }}{% endif %}, {{ lot.mkadDistance }} км{% endif %}<strong
class="hide__desktop"> / ID:{{ lot.id }}</strong></a></span></div>
</td>
{% if lot.isNew %}
<div class="label label__new uppercase">новое предложение</div>
{% endif %}
<td class="table-value table-value__right" rowspan="6">
<div class="table-value-big">
{% if lot.price != 0 %}
<span class="dollars all-area" itemprop="price">
{{ currency.getRubles(lot.price - lot.price * lot.oldPrice * 0.01, lot.currency) | number_format(0, 0, ' ', ' ') }} <i
class="fa fa-rub"></i>
</span>
{% endif %}
</div>
{% if lot.price > 0 %}
<p>
${{ currency.getDollars(lot.price - lot.price * lot.oldPrice * 0.01, lot.currency) | number_format(0, 0, ' ', ' ') }}</p>
{% else %}
<div class="label label__new uppercase">цена по запросу</div>
{% endif %}
<div class="hover-fade-outs"><span class="table-key">ID</span>: <span class="table-key">{{ lot.id }}</span>
</div>
<div class="btn btn__outlined btn__tiny hover-fade-in btn__fave" data-id="{{ lot.id }}"><i
class="fa fa-star"></i> в
избранное
</div>
</td>
</tr>
{% if lot.highway %}
<tr>
<td class="table-key">Направление:</td>
<td class="table-value">{{ lot.highway.name }} ({{ lot.mkadDistance }} км.)</td>
</tr>
{% endif %}
{% if lot.typeHouse %}
<tr>
<td class="table-key">Тип недвижимости:</td>
<td class="table-value">{{ lot.typeHouse.name }}</td>
</tr>
{% endif %}
<tr>
<td class="table-key">Площадь дома:</td>
<td class="table-value">{% if lot.typeHouse.id!=68 %}{{ lot.area | number_format(1, ',', ' ') | replace({',0': ''}) }} м
<sup>2</sup>{% else %} 0 м<sup>2</sup>{% endif %}</td>
</tr>
{% if lot.typeHouse.id!=6 and lot.typeHouse.id!=23 and lot.typeHouse.id!=25 and lot.typeHouse.id!=62 and lot.typeHouse.id!=55 %}
<tr>
<td class="table-key">Площадь участка:</td>
<td class="table-value">{{ lot.homesteadArea | number_format(0, 0 , ' ', ' ') }} сот.</td>
</tr>{% endif %}
<tr class="table-spacer"></tr>
<tr class="show__phone hide__tablet hide__desktop phone__price">
<td class="table-key">
<span class="dollars all-area">
{% if lot.price > 0 %}
{{ currency.getRubles(lot.price - lot.price * lot.oldPrice * 0.01, lot.currency) | number_format(0, 0, ' ', ' ') }}
<i class="fa fa-rub"></i>
{% else %}
<div class="label label__new uppercase">цена по запросу</div>
{% endif %}
</span>
<span class="euro all-area">
<i class="fa fa-eur"></i>{{ currency.getEuro(lot.price, lot.currency) | number_format(0, 0, ' ', ' ') }}
</span>
<span class="dollars meter-area">
{% if lot.typeOperation.id == 1 and lot.homesteadArea %}
${{ currency.getDollars(lot.price/lot.homesteadArea, lot.currency) | number_format(0, 0, ' ', ' ') }}
{% else %}
${{ currency.getDollars(lot.price*12, lot.currency) | number_format(0, 0, ' ', ' ') }}
{% endif %}
</span>
<span class="euro meter-area">
{% if lot.typeOperation.id == 1 and lot.homesteadArea %}
<i class="fa fa-eur"></i>{{ currency.getEuro(lot.price/lot.homesteadArea, lot.currency) | number_format(0, 0, ' ', ' ') }}
{% else %}
<i class="fa fa-eur"></i>{{ currency.getEuro(lot.price*12, lot.currency) | number_format(0, 0, ' ', ' ') }}
{% endif %}
</span>
</td>
<td class="table-value"></td>
</tr>
</table>
</div>
</div>
{% endfor %}