{% if seoOd.stat is not null %}
{% set stat = seoOd.stat %}
<section class="panel">
{# @var \App\Entity\model\StatPriceDuration stat #}
<h2 class="panel-heading">
{% if transport == 'bus' %}
{{ 'bus.odpage.summary.h2' | trans(seoOd.transParams) }}
{% elseif transport == 'train' %}
{{ 'train.odpage.summary.h2' | trans(seoOd.transParams) }}
{% elseif transport == 'flight' %}
{{ 'flight.odpage.summary.h2' | trans(seoOd.transParams) }}
{% elseif transport == 'carpooling' %}
{{ 'carpooling.odpage.summary.h2' | trans(seoOd.transParams) }}
{% endif %}
</h2>
<div class="panel-body">
<div class="row">
<div class="col-md-7">
<table class="table1 info-route">
{% if transport == 'bus' %}
<tr>
<td><strong>{{ 'bus.odpage.summary.minprice'| trans }}</strong></td>
<td>{{ stat.priceMin | cb_niceprice(seoOd.currency, 'round') }}</td>
</tr>
<tr>
<td><strong>{{ 'bus.odpage.summary.maxprice'| trans }}</strong></td>
<td>{{ stat.priceMax | cb_niceprice(seoOd.currency, 'round') }}</td>
</tr>
<tr>
<td><strong>{{ 'bus.odpage.summary.duration'| trans }}</strong></td>
<td>{{ stat.durationMin | cb_niceduration }}</td>
</tr>
<tr>
<td><strong>{{ 'bus.odpage.summary.operated'| trans }}</strong></td>
<td>{{ seoOd.companiesName | join(', ') }}</td>
</tr>
<tr>
<td><strong>{{ 'bus.odpage.summary.distance' | trans }}</strong></td>
<td>{{ seoOd.distanceNice }}</td>
</tr>
{% elseif transport == 'train' %}
<tr>
<td><strong>{{ 'train.odpage.summary.minprice'| trans(seoOd.transParams) }}</strong></td>
<td>{{ stat.priceMin | cb_niceprice(seoOd.currency, 'round') }}</td>
</tr>
<tr>
<td><strong>{{ 'train.odpage.summary.maxprice'| trans(seoOd.transParams) }}</strong></td>
<td>{{ stat.priceMax | cb_niceprice(seoOd.currency, 'round') }}</td>
</tr>
<tr>
<td><strong>{{ 'train.odpage.summary.duration'| trans(seoOd.transParams) }}</strong></td>
<td>{{ stat.durationMin | cb_niceduration }}</td>
</tr>
<tr>
<td><strong>{{ 'train.odpage.summary.operated'| trans(seoOd.transParams) }}</strong></td>
<td>{{ seoOd.companiesName | default('') |join(', ') }}</td>
</tr>
<tr>
<td><strong>{{ 'train.odpage.summary.distance' | trans(seoOd.transParams) }}</strong></td>
<td>{{ seoOd.distanceNice }}</td>
</tr>
{% elseif transport == 'flight' %}
<tr>
<td><strong>{{ 'flight.odpage.summary.minprice'| trans(seoOd.transParams) }}</strong></td>
<td>{{ stat.priceMin | cb_niceprice(seoOd.currency, 'round') }}</td>
</tr>
<tr>
<td><strong>{{ 'flight.odpage.summary.maxprice'| trans(seoOd.transParams) }}</strong></td>
<td>{{ stat.priceMax | cb_niceprice(seoOd.currency, 'round') }}</td>
</tr>
<tr>
<td><strong>{{ 'flight.odpage.summary.duration'| trans(seoOd.transParams) }}</strong></td>
<td>{{ stat.durationMin | cb_niceduration }}</td>
</tr>
<tr>
<td><strong>{{ 'flight.odpage.summary.operated'| trans(seoOd.transParams) }}</strong></td>
<td>{{ seoOd.companiesName | default('') |join(', ') }}</td>
</tr>
<tr>
<td><strong>{{ 'flight.odpage.summary.distance' | trans(seoOd.transParams) }}</strong></td>
<td>{{ seoOd.distanceNice }}</td>
</tr>
{% elseif transport == 'carpooling' %}
<tr>
<td><strong>{{ 'carpooling.odpage.summary.minprice'| trans(seoOd.transParams) }}</strong></td>
<td>{{ stat.priceMin | cb_niceprice(seoOd.currency, 'round') }}</td>
</tr>
<tr>
<td><strong>{{ 'carpooling.odpage.summary.maxprice'| trans(seoOd.transParams) }}</strong></td>
<td>{{ stat.priceMax | cb_niceprice(seoOd.currency, 'round') }}</td>
</tr>
<tr>
<td><strong>{{ 'carpooling.odpage.summary.duration'| trans(seoOd.transParams) }}</strong></td>
<td>{{ stat.durationMin | cb_niceduration }}</td>
</tr>
<tr>
<td><strong>{{ 'carpooling.odpage.summary.operated'| trans(seoOd.transParams) }}</strong></td>
<td>{{ seoOd.companiesName | default('') |join(', ') }}</td>
</tr>
<tr>
<td><strong>{{ 'carpooling.odpage.summary.distance' | trans(seoOd.transParams) }}</strong></td>
<td>{{ seoOd.distanceNice }}</td>
</tr>
{% endif %}
</table>
</div>
<div class="col-md-5">
{% if seoOd.img is not null %}
<img src="{{ seoOd.img.src }}" alt="{{ seoOd.img.alt }}" />
{% endif %}
</div>
<div itemscope itemtype="http://schema.org/Product">
<meta itemprop="name"
content="{{ transport~'.odpage.microdata.product' | trans(seoOd.transParams) }}"/>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<meta itemprop="price" content="{{ (stat.priceMin/100) |number_format(2) }}"/>
<meta itemprop="priceCurrency" content="{{ seoOd.currency }}"/>
<meta itemprop="availability" content="http://schema.org/InStock"/>
</div>
<div itemprop="offers" itemscope itemtype="http://schema.org/AggregateOffer">
<meta itemprop="lowPrice" content="{{ (stat.priceMin/100) |number_format(2) }}"/>
<meta itemprop="highPrice" content="{{ (stat.priceMax/100) |number_format(2) }}"/>
<meta itemprop="priceCurrency" content="{{ seoOd.currency }}"/>
<meta itemprop="availability" content="http://schema.org/InStock"/>
</div>
</div>
</div>
</div>
</section>
{% endif %}