<div id="carouselBlock" class="carousel slide carousel-fade mb-10 carousel-big-controls" data-bs-ride="carousel">
<div class="carousel-inner">
{% set first = 0 %}
{% for item in carousel %}
<div class="carousel-item {% if first == 0 %}active{% endif %}">
{% set filePath = '/uploads/'~item.image.file %}
<a href="{{ path('app_city_news_detail', {'city':center.url, 'url':item.url}) }}" title="{{ item.title }}"><img
src="{{ asset(filePath) }}" class="d-block w-100" alt="{{ item.title }}"></a>
<a href="{{ path('app_city_news_detail', {'city':center.url, 'url':item.url}) }}" class="card card-arrow bg-white text-red-hover" title="{{ item.title }}">
<div class="card-body">
<h5 class="card-title">{{ item.title }}</h5>
</div>
</a>
</div>
{% set first = first+1 %}
{% endfor %}
<div class="carousel-item {% if first == 0 %}active{% endif %}">
<img src="{{ asset('assets/images/homepage/shopping-mall.jpg') }}"
class="d-block w-100 {% if first == 0 %}active{% endif %}" alt="{{ center.title }}">
<div class="carousel-caption">
<h5 class="carousel-title black">{{ center.title }}</h5>
{% set openingHour = center.openingHours.first %}
<p class="carousel-description black">Otvorené do {{ openingHour.timeTill|date('H:i') }} h.</p>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselBlock" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselBlock" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>