{% for lot in lots %}
<div class="cards-item" itemscope itemtype="https://schema.org/Product">
{% if lot.oldPrice %}
<div class="sale_item" style="">-{{ lot.oldPrice }}%</div>{% endif %}
<a href="/elit_kvartiry/{{ lot.id }}/">
<div class="cards-item-image">
{% if lot.photos %}
<img itemprop="image" class="hide__phone"
src="{% for photo in lot.photos %}{% if photo.isMain %}/cache{{ photo.webPathImage|replace({"." : "_570x360."}) }}{% endif %}{% endfor %}"
width="285"
alt="{% if lot.complex %}{{ lot.complex.name }}
{% elseif lot.address.street is defined %}
{{ lot.address.street }} {{ lot.address.home }}
{% else %}
{{ lot.address }}
{% endif %}"
title="{% if lot.complex %}{{ lot.complex.name }}
{% elseif lot.address.street is defined %}
{{ lot.address.street }} {{ lot.address.home }}
{% else %}
{{ lot.address }}
{% endif %}">
<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.complex %}{{ lot.complex.name }}
{% elseif lot.address.street is defined %}
{{ lot.address.street }} {{ lot.address.home }}
{% else %}
{{ lot.address }}
{% endif %}"
title="{% if lot.complex %}{{ lot.complex.name }}
{% elseif lot.address.street is defined %}
{{ lot.address.street }} {{ lot.address.home }}
{% else %}
{{ lot.address }}
{% endif %}">
{% endif %}
</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">
{% if lot.isNew %}
<div class="label label__new uppercase">новое предложение</div>
{% endif %}
<div class="for-hint card-item-title hint" data-id="{{ lot.id }}"><span><a
href="/elit_kvartiry/{{ lot.id }}/"
itemprop="name">
{% if lot.complex %}
{{ lot.complex.name }}
{% elseif lot.address.street is defined %}
{{ lot.address.street }} {{ lot.address.home }}
{% else %}
{{ lot.address }}
{% endif %}
<strong class="hide__desktop"> / ID:{{ lot.id }}</strong>
</a></span></div>
</td>
<td class="table-value table-value__right" rowspan="6">
<div class="table-value-big" itemprop="price">
{% if lot.price != 0 %}
{% if lot.originalPrice %}<span class="originalPrice">Цена застройщика</span><br/>{% endif %}
<span class="dollars all-area">
{{ 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.district3 %}
<tr>
<td class="table-key">Район:</td>
<td class="table-value">{{ lot.district3.name }}</td>
</tr>
{% endif %}
{% if lot.subway or lot.subway2 %}
{# <tr>
<td class="table-key">Станция метро:</td>
<td class="table-value">{% if lot.subway2 %}{{ lot.subway2.name }}{% else %}{{ lot.subway.name }}{% endif %}</td>
</tr> #}
{% endif %}
{% if lot.address %}
{# <tr>
<td class="table-key">Адрес:</td>
<td class="table-value" style="height: 20px !important;" >
<div class="for-hint hint" style="width: 135px !important;">
<span>
{{ lot.address.street }} {{ lot.address.home }}
</span>
</div>
</td>
</tr> #}
{% endif %}
{% if lot.freePlan %}
<tr>
<td style="" class="table-key">Комнатность:</td>
<td class="table-value">свободная планировка</td>
</tr>
<tr>
<td class="table-key">Площадь:</td>
<td class="table-value">{{ lot.area | number_format(1, ',', ' ') | replace({',0': ''}) }} м<sup>2</sup></td>
</tr>
{% else %}
<tr>
<td class="table-key">Площадь:</td>
<td class="table-value">{{ lot.area | number_format(1, ',', ' ') | replace({',0': ''}) }} м<sup>2</sup></td>
</tr>
<tr>
<td class="table-key">Комнатность:</td>
<td class="table-value">{{ lot.rooms }}
{{ 'комната'|trans({},null, null, lot.rooms%10) }}
</td>
</tr>
{% endif %}
<tr>
<td class="table-key">Готовность:</td>
<td class="table-value">{% if lot.repair %}с отделкой{% else %}без отделки{% endif %}</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 %}
{% if lot.originalPrice %}<span class="originalPrice">Цена застройщика</span><br/>{% endif %}
{{ 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.price * lot.oldPrice * 0.01, 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 %}