{% if seoOd.stat is not null %}
{% set transIds = seoOd.transIds %}
<section class="panel">
{% if seoOd.block.content is empty %}
<h2 class="panel-heading">{{ (transport~'.odpage.spinning.title') | trans(seoOd.transParams) }}</h2>
<div class="panel-body">
<div class="row">
<div class="col-md-6" style="text-align: center;"><br />
<img alt="{{ 'bus.odpage.spinning.title' | trans(seoOd.transParams) }}"
src="https://static-maps.yandex.ru/1.x/?lang=en_US&size=300,300&pt={{ depStop.lon }},{{ depStop.lat }},pm2lbm~{{ arrStop.lon }},{{ arrStop.lat }},pm2lbm&l=map" />
</div>
<div class="col-md-6" style="text-align: justify;">
<p>{{ (transport~'.odpage.spinning.trip.1.'~transIds.trip_1) | trans(seoOd.transParams) | raw }}</p>
<br />
<p>
{{ (transport~'.odpage.spinning.trip.2.'~transIds.trip_2) | trans(seoOd.transParams) | raw }}
{{ (transport~'.odpage.spinning.trip.3.'~transIds.trip_3) | trans(seoOd.transParams) | raw }}
</p>
<br />
<p>{{ (transport~'.odpage.spinning.trip.4.'~transIds.trip_4) | trans(seoOd.transParams) | raw }}</p>
<br />
<p>
{{ (transport~'.odpage.spinning.trip.5.'~transIds.trip_5) | trans(seoOd.transParams) | raw }}
{{ (transport~'.odpage.spinning.trip.6.'~transIds.trip_6) | trans(seoOd.transParams) | raw }}
</p>
<br />
{% if seoOd.returnLink is not empty %}
<p>
{{ (transport~'.odpage.spinning.trip.reverse.'~transIds.trip_reverse) | trans(seoOd.transParams) | raw }}
<a href="{{ seoOd.returnLink.url }}">{{ seoOd.returnLink.label }}</a>
</p>
<br />
{% endif %}
<p>
{{ (transport~'.odpage.spinning.trip.list.'~transIds.trip_list) | trans(seoOd.transParams) | raw }}
<ul>
{% if seoOd.depAddresses | length > 0 or seoOd.arrAddresses | length > 0 %}
<li><a href="#adresses">{{ (transport~'.odpage.spinning.trip.list.address.'~transIds.trip_list_address) | trans(seoOd.transParams) | raw }}</a></li>
{% endif %}
{% if seoOd.companiesLetter | length > 0 %}
<li><a href="#companies">{{ (transport~'.odpage.spinning.trip.list.companies.'~transIds.trip_list_companies) | trans(seoOd.transParams) | raw }}</a></li>
{% endif %}
{#<li><a href="#horaires">{{ (transport~'.odpage.spinning.trip.list.schedule.'~transIds.trip_list_schedule) | trans(seoOd.transParams) | raw }}</a></li>#}
</ul>
</p>
<p style="text-align: center;"><a class="primary small" href="#">{{ 'bus.odpage.spinning.book-btn' | trans(seoOd.transParams) }}</a></p>
</div>
</div>
</div>
{% endif %}
{% include 'Default/odpage/_spinning_faq.html.twig' %}
{% if seoOd.depAddresses | length > 0 or seoOd.arrAddresses | length > 0 %}
<h2 class="panel-title" id="adresses">{{ (transport~'.odpage.spinning.address.title') | trans(seoOd.transParams) }}</h2>
<div class="panel-body panel-addresses">
<div class="row">
{% include 'Default/odpage/_spinning_address.html.twig' with {
'stopName' : depStop.name,
'addresses' : seoOd.depAddresses,
'transIds_address_multi' : transIds.address_dep_multi,
'transIds_address_one' : transIds.address_dep_one,
'transDepArr' : 'dep'
} %}
{% include 'Default/odpage/_spinning_address.html.twig' with {
'stopName' : arrStop.name,
'addresses' : seoOd.arrAddresses,
'transIds_address_multi' : transIds.address_arr_multi,
'transIds_address_one' : transIds.address_arr_one,
'transDepArr' : 'arr'
} %}
</div>
</div>
{% endif %}
{% if seoOd.block.content is empty %}
{% if seoOd.companiesLetter | length > 0 %}
<h2 class="panel-title" id="companies">{{ (transport~'.odpage.spinning.companies.title') | trans(seoOd.transParams) }}</h2>
<div class="panel-body">
<!-- COMPANY_NAMES={{ seoOd.companiesName |join(" / ") }} -->
{% for icompany in seoOd.companiesLetter %}
{% set name = (transport~'.odpage.spinning.'~icompany~'.name')|trans %}
<!-- COMPANY_NAME_TRANS={{ name }} -->
{% set text1 = (transport~'.odpage.spinning.'~icompany~'.1.'~transIds[icompany~'_1']) | trans(seoOd.transParams) | raw %}
{% set text2 = (transport~'.odpage.spinning.'~icompany~'.2.'~transIds[icompany~'_2']) | trans(seoOd.transParams) | raw %}
<div class="row">
<div class="col-md-3" style="text-align: center">
<img alt="{{ name }} {{ depStop.name }} {{ arrStop.name }}" src="{{ asset('bundles/static/uploads/odpage/'~name~'.png') }}" style="max-height: 80px; max-width: 200px" />
</div>
<div class="col-md-9">
<h3 class="panel-subtitle">{{ name }} {{ depStop.name }} {{ arrStop.name }}</h3>
<p style="text-align: justify;">{{ text1 | raw }} {{ text2 | raw }}</p>
</div>
</div>
<br />
{% endfor %}
</div>
{% endif %}
{% endif %}
</section>
{% endif %}