{% import '_macros/price_helpers.html.twig' as price_helpers %}
<div class="recommended-widget">
<h2 class="border-line">Другие проститутки рядом</h2>
<div class="recommended-items-row flex-wrap" id="profileNearestContainer">
{% for profile in nearest_profiles %}
<div class="recommended-item-col" data-profile-id="{{ profile.id }}">
<div class="recommended-model">
<a href="{{ path('profile_preview.page', {city: profile.city.uriIdentity, profile: profile.uriIdentity}) }}" class="rec-link d-block recommended-model__url">
<p class="recommended-model__name m-0 rec-link">
{%- if (profile.approved) -%}<svg class="icon mr-2">
<use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-verification"></use>
</svg>
{%- endif -%}
<span class="name">{{ profile.name|trans }}</span>, <span class="age">{{ profile.personParameters.age }}</span>
</p>
<div class="recommended-model__images">
{%- set photo = profile|avatar -%}
{%- if photo and photo.path -%}
{%- set photoType = photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar' -%}
<img class="img-fluid"
src="{{ responsive_asset(photo.path, photoType, "357x500", "jpg") }}"
alt="{{ profile.name|trans }}, {{ 'год'|plural(profile.personParameters.age) }}" width="357" height="500">
{%- endif -%}
</div>
</a>
{# {% set onlyPhoneNumber = profile.phoneNumber|replace({' ': '', '-': '', '(': '', ')': ''}) %} #}
<p class="recommended-model__phone d-flex align-items-center flex-wrap flex-sm-nowrap mb-1">
{# <span class="phone">{{- profile.phoneNumber -}}</span> #}
{% set minProfilePrice = price_helpers.get_min_price_from_profile(profile, ' руб.') %}
<span class="price">{{ minProfilePrice != '-' ? 'от ' ~ minProfilePrice : '' }}</span>{# class="ml-sm-auto" #}
</p>
{% if profile.stations|length > 0 %}
{%- set station = profile.stations|first -%}
<a class="d-flex fr align-items-center recommended-model__metro" href="{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}">
<svg class="icon mr-1">
<use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-metro"></use>
</svg>
<p class="station d-flex align-items-center mb-0">{{- station.name -}}</p>
</a>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>