{% if null != profiles or profile_top_placement is defined %}
<h2 class="px-3 w-100">{{ profiles.totalCount }} {{ profiles.totalCount|incline_numeral(['товар', 'товара', 'товаров']) }}</h2>
{% endif %}
{% set profiles_array = (profiles is iterable) ? ((profiles.array is defined) ? profiles.array : profiles) : [] %}
{% if top_profile is defined and null != top_profile and null != profiles %}
{% set profiles_array = [top_profile]|merge(profiles_array) %}
{% endif %}
{% for profile in profiles %}
<div class="col-4">
<div class="card" alt="{{ profile.seo ? profile.seo.phone : '' }}">
{% set photo = profile|avatar %}
{% if photo is not null %}
<img class="card-img-top" src="{{ responsive_asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar', '357x500', 'jpg') }}" alt="{{ profile.seo ? profile.seo.phone : '' }}">
{% endif %}
<div class="card-body">
{% if profile.isApproved %}APPROVED{% endif %}
<h5 class="card-title"><a href="{{ path('profile_preview.page', {'city': profile.city.uriIdentity, 'profile': profile.uriIdentity}) }}" title="">{{ profile.name|trans }} (pos: {{ profile.position ?? '' }})</a></h5>
{% if profile.isActive or not profile.hidden %}
<h6 class="card-subtitle mb-2"><a href="tel:{{ profile.phoneNumber }}">{{ profile.phoneNumber }}</a></h6>
{% endif %}
{% for station in profile.stations %}
<a href="{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}">{{ station.name|trans }}</a>
{% if not loop.last %}, {% endif %}
{% endfor %}
<dl class="small">
<dt>{% trans %}Возраст{% endtrans %}</dt>
<dd>{{ profile.personParameters.age }}</dd>
<dt>{% trans %}Рост{% endtrans %}</dt>
<dd>{{ profile.personParameters.height }}</dd>
<dt>{% trans %}Вес{% endtrans %}</dt>
<dd>{{ profile.personParameters.weight }}</dd>
<dt>{% trans %}Грудь{% endtrans %}</dt>
<dd>{{ profile.personParameters.breastSize }}</dd>
</dl>
<dl class="small">
<dt>{% trans %}Час{% endtrans %}</dt>
<dd>{{ profile.apartmentsPricing.oneHourPrice }} руб</dd>
<dt>{% trans %}2 часа{% endtrans %}</dt>
<dd>{{ profile.apartmentsPricing.twoHoursPrice }} руб</dd>
<dt>{% trans %}Ночь{% endtrans %}</dt>
<dd>{{ profile.apartmentsPricing.nightPrice }} руб</dd>
</dl>
<p class="small">
{% if profile.apartmentsPricing.isProvided %}
{{ 'апартаменты'|trans }}
{% endif %}
{% if profile.takeOutPricing.isProvided %}
{{ 'выезд'|trans }}
{% endif %}
</p>
{# <p>#}
{# <ul>#}
{# {% for service in profile.providedServices %}#}
{# <li class="text-success">#}
{# <a>{{ service.service.name|trans }}</a>#}
{# </li>#}
{# {% endfor %}#}
{# </ul>#}
{# </p>#}
<p class="card-text text-muted small">{{ profile.description|trans }}</p>
<p class="card-text text-muted small">{{ (top_profile is defined and profile != top_profile) and profile.isStandard ? 'standard' }}</p>
{% include 'ProfileList/tags.html.twig' with { 'profile': profile } %}
</div>
</div>
</div>
{#{% if loop.index % 3 == 0 %}</div><div class="row mb-3">{% endif %}#}
{% endfor %}
{% if show_pagination is defined %}
<div class="filtered_profiles_pagination">
{{ porpaginas_render(profiles) }}
</div>
{% endif %}