{% extends 'grid.html.twig' %}
{% block bodyClasses %}{% endblock %}
{% block specialPageClass %} full-width-page{% endblock %}
{% block title %}
{{ seo_title() }}
{% endblock %}
{% block metaDescription %}
<meta name="description" content="{{ seo_description() }}">
{% endblock %}
{% block mainContainer %}
<h1 role="heading" class="border-line">{{ seo_heading() ? seo_heading() : 'Проститутки по районам города Москва' }}</h1>
<div class="city-block">
{% set currentCounty = null %}
{% set sorted_stations = city.counties|sort((a, b) => a.name|upper <=> b.name|upper) %}
{% for county in sorted_stations %}
{% if loop.index == (loop.length/2+1) or loop.index == 1 %}
<div class="column">
{% endif %}
<div class="title">
<a href="{{ path('profile_list.list_by_county', {'city': city.uriIdentity, 'county': county.uriIdentity}) }}">{{ county.name|trans }}</a>
</div>
<ul>
{% for district in county.districts|sort((a, b) => a.name|trans|upper <=> b.name|trans|upper) %}
<li>
<a href="{{ path('profile_list.list_by_district', {'city': city.uriIdentity, 'district': district.uriIdentity}) }}">{{ district.name|trans }}</a><br>
</li>
{% endfor %}
</ul>
{% if loop.index == (loop.length/2) or loop.revindex == 1 %}
</div>
{% endif %}
{% endfor %}
</div>
{{- include('components/seo_text.html.twig', { "type": 'top', "noindex": true }) -}}
{{ include('components/seo_text.html.twig', { "type": 'bottom', "noindex": true }) }}
{% endblock %}