{% extends 'base.html.twig' %}
{% block head %}
{% endblock %}
{% block body %}
<!-- HEADING -->
<div class="container-fluid d-flex align-items-end bg-orange sctn-heading">
<div class="row px-5">
<div class="col-12">
<h1 class="text-white text-uppercase">{{ event.name }}</h1>
</div>
<div class="col-12 mb-5 mt-2">
<h4 class="pt-3 text-white text-uppercase me-4"><i class="bi bi-geo-alt-fill me-2"></i>{{ event.location }}</h4>
<h4 class="pt-3 text-white text-uppercase"><i class="bi bi-calendar-event-fill me-2"></i> {{ event.dateEvent|format_date('none', 'd MMMM Y', null, 'gregorian', 'es') }}</h4>
</div>
</div>
</div>
<!-- SUBTITLE - TICKETS -->
<div class="container-fluid">
<div class="row pt-3 px-5">
<div class="col-12">
<p class="sttl">Tickets</p>
</div>
</div>
</div>
<!-- EVENTS TICKETS CARDS -->
<div class="conatiner-fluid px-4">
<div class="row d-flex justify-content-center pt-4 pb-5 px-5">
{% if format is not defined or format == 1 %}
{{ render(controller('App\\Controller\\TicketController::includeTickets',{request: app.request})) }}
{% else %}
{{ render(controller('App\\Controller\\PackController::includePacks',{request: app.request})) }}
{% endif %}
</div>
</div>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
}
</script>
{% endblock %}