{% 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="/zarubezhnaya_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="">
<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="">
</div>
</a>
<div class="cards-item-text">
<table class="table" style="margin-left: 15px; width: 490px;margin-top: 10px;">
<tr>
<td style=" height: 45px;" class="table-key table-key__big" colspan="2">
<div class="for-hint card-item-title hint" data-id="{{ lot.id }}"><span><a
href="/zarubezhnaya_nedvizhimost/{{ lot.id }}/"
itemprop="name">{% if lot.address.street is not defined %} {{ lot.address.address }} {% else %} {{ lot.address.street }} {{ lot.address.home }} {% 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>
<tr>
{% if lot.country %}
<td class="table-key">Страна:</td>
<td class="table-value">{{ lot.country.name }}</td>
{% endif %}
</tr>
<tr>
{% if lot.countryCity %}
<td class="table-key">Город:</td>
<td class="table-value">{{ lot.countryCity.name }}</td>
{% endif %}
</tr>
{% 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">{{ lot.area }} м<sup>2</sup></td>
</tr>
<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.getDollars(lot.price - lot.price * lot.oldPrice * 0.01, lot.currency) | number_format(0, 0, ' ', ' ') }}
{% 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 %}
${{ currency.getDollars(lot.price/lot.area, 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 %}
<i class="fa fa-eur"></i>{{ currency.getEuro(lot.price/lot.area, 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 %}