{% set children = [] %}
{% for breadcrumb_item in item.children %}
{% set children = children|merge([breadcrumb_item]) %}
{% endfor %}
{% set route = app.request.get('_route') %}
{% if 'profile_list.list_by_station' in route %}
{% set page = current_listing_page() %}
{% if page and page.totalCount > 0 %}
{% set children = children|merge([{label: 'Страница ' ~ page.currentPage ~ ' из ' ~ (page.totalCount / page.currentLimit)|round(0, 'ceil')}]) %}
{% endif %}
{% endif %}
{% if item.children|length > 1 %}
<ol class="breadcrumb">
{% for breadcrumb_item in children %}
{% if not loop.last %}
<li class="breadcrumb-item"><a href="{{ breadcrumb_item.uri }}">{{ breadcrumb_item.label }}</a></li>
{% else %}
<li class="breadcrumb-item active" aria-current="page">{{ breadcrumb_item.label }}</li>
{% endif %}
{% endfor %}
</ol>
{% endif %}