{% set walkCount = false %}
{% set busCount = false %}
{% for infrastructureItem in infrastructureItems %}
{% if infrastructureItem.wayType == 10 %}
{% set walkCount = true %}
{% endif %}
{% if infrastructureItem.wayType == 20 %}
{% set busCount = true %}
{% endif %}
{% endfor %}
{% if walkCount %}
<div class="infrastructure__infrastructure-wrap infrastructure__infrastructure-wrap_walk">
<div class="infrastructure__title-wrap">
<div class="infrastructure__icon-wrap">
{% include '_parts/icons/man-icon.svg' %}
</div>
<div class="infrastructure__text text__main text__black-text">
Пешком
</div>
</div>
<ul class="infrastructure__places">
{% for infrastructureItem in infrastructureItems %}
{% if infrastructureItem.wayType == 10 %}
<li class="infrastructure__place">
<div class="infrastructure__place-name text__body text__black-text">
{{ infrastructureItem.name }}
</div>
<span class="infrastructure__dots"></span>
<div class="infrastructure__distance-time-wrap text__body text__main01">
{{ infrastructureItem.distance }}
/
{{ infrastructureItem.time }}
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
{% if busCount %}
<div class="infrastructure__infrastructure-wrap infrastructure__infrastructure-wrap_bus">
<div class="infrastructure__title-wrap">
<div class="infrastructure__icon-wrap">
{% include '_parts/icons/bus-icon.svg' %}
</div>
<div class="infrastructure__text text__main text__black-text">
На общественном транспорте
</div>
</div>
<ul class="infrastructure__places">
{% for infrastructureItem in infrastructureItems %}
{% if infrastructureItem.wayType == 20 %}
<li class="infrastructure__place">
<div class="infrastructure__place-name text__body text__black-text">
{{ infrastructureItem.name }}
</div>
<span class="infrastructure__dots"></span>
<div class="infrastructure__distance-time-wrap text__body text__main01">
{{ infrastructureItem.distance }}
/
{{ infrastructureItem.time }}
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}