{% import 'ProfilePreview/utils/macros.partial.twig' as macros %}
<div class="profile-contacts-middle profile-block">
<div class="profile-contacts profile-contacts--middle">
{%- include 'ProfilePreview/components/profile-phone.partial.twig' with {} -%}
{%- if template == 'profile' -%}
<div class="profile-contacts-text clr-green-text">Сообщите мне, что звоните с сайта "МосДосуг" и я всё пойму</div>
<div class="profile-contacts-answer-type">
<span>Отвечаю на</span>
{% if profile.phoneCallRestrictions.answeringTo|length > 0 %}
{% for answeringTo in profile.phoneCallRestrictions.answeringTo %}
{{ answeringTo|answering_to|trans({}, 'phone_call_restrictions') }}{% if not loop.last %},{% endif %}
{% endfor %}
{% else %}
Не указано
{% endif %}
</div>
<div class="profile-contacts-answer-time">{{ macros._time_to_work(profile) }}</div>
{%- else -%}
<div class="profile-contacts-answer-time">
{{ macros._time_to_work_saloon(profile) }}
</div>
{%- endif -%}
</div>
{%- include 'ProfilePreview/components/profile-approved.partial.twig' with {type: 'middle'} -%}
</div>