{% for complex in complexes %}
<div class="cards-item">
<a href="/complex/{{ complex.url }}">
<div class="cards-item-image">
{% if complex.photos %}
<img class="hide__phone" src="/cache{{ complex.photos[0].webPathImage|replace({"." : "_570x360."}) }}"
width="285" alt="">
<img class="hide__desctop hide__tablet"
src="/cache{{ complex.photos[0].webPathImage|replace({"." : "_570x360."}) }}"
width="285" alt="">
{% endif %}
</div>
</a>
<div class="cards-item-text">
<table class="table" style="margin-left: 15px; width: 95%; margin-top: 10px;">
<tr style=" height: 40px;">
<td class="table-key table-key__big" colspan="2">
<div class="for-hint card-item-title hint" data-id="{{ complex.id }}"><span style="width: initial;"><a
href="/complex/{{ complex.url }}/">
{{ complex.name }}
</a></span></div>
</td>
<td class="table-value table-value__right hide__phone" rowspan="6">
{% if complex.price > 0 %}
<div class="table-value-big">
<span class="dollars all-area">
от {{ currency.getRubles(complex.price, 1) | number_format(0, 0, ' ', ' ') }} <i
class="fa fa-rub"></i>
</span>
</div>
{% endif %}
{% if complex.price > 0 %}
<p>${{ currency.getDollars(complex.price, 1) | number_format(0, 0, ' ', ' ') }}</p>
{% else %}
<div class="label label__new uppercase">цена по запросу</div>
{% endif %}
</td>
</tr>
{% if complex.area2 %}
<tr>
<td class="table-key">Район:</td>
<td class="table-value">{{ complex.area2.name }}</td>
</tr>
{% endif %}
{% if complex.typeComplex %}
<tr>
<td class="table-key">Тип недвижимости:</td>
<td class="table-value">{{ complex.typeComplex.name }}</td>
</tr>
{% endif %}
<tr>
<td class="table-key">Готовность:</td>
<td class="table-value">{{ complex.stageComplex.name }}</td>
</tr>
<tr>
<td class="table-key">Срок сдачи:</td>
<td class="table-value">{{ complex.final }}</td>
</tr>
<tr class="price_mobile">
<td class="table-key">Цена:</td>
<td class="table-value">
{% if complex.price > 0 %}
{{ complex.price | number_format(0, 0, ' ', ' ') }} <i class="fa fa-rub"></i>
{% else %}
<div class="label label__new uppercase">цена по запросу</div>
{% endif %}
</td>
</tr>
</table>
</div>
</div>
{% endfor %}
{% if complexesCount is defined and complexesCount is not null %}
<div id="hidcount" style="display: none">{{ complexesCount }}</div>
{% endif %}