{# @var \AppBundle\Model\DataObject\WeatherStation weatherStation #}
{# @var \Pimcore\Model\DataObject\Fieldcollection\Data\WeatherStationDataSet weatherDataSet #}
<div class="weather-box bg-secondary">
<div class="row justify-content-center vertical-gutter--4">
{% for index,weatherDataSet in weatherStation.weatherData %}
{% if index > 1 and index < 5 %}
<div class="col-6 col-md-3 vertical-gutter__item">
{{ include('Includes/Partials/weather-item-detail.html.twig', {
title: weatherDataSet.date.format('d.m.Y'),
temp: weatherDataSet.tminDay,
tempMax: weatherDataSet.tmaxDay,
icon: weatherDataSet.symbDay
}) }}
</div>
{% endif %}
{% endfor %}
</div>
</div>