{% extends 'base.html.twig' %}
{% block head %}
{% endblock %}
{% block body %}
<!-- HEADING -->
<div class="container-fluid d-flex align-items-end bg-blue sctn-heading">
<div class="row px-5">
<div class="col-xl-8 col-12">
<p class="text-white text-uppercase sttl">{{ event.name }}</p>
</div>
<div class="col-xl-6 col-md-8 col-12 mb-5 mt-2">
<span class="text-white me-4"><i class="bi bi-geo-alt-fill me-2"></i>{{ event.location }}</span>
<br>
<br>
<span class="text-white"><i class="bi bi-calendar-event-fill me-2"></i> {{ event.dateEvent|format_date('none', 'd MMMM Y', null, 'gregorian', 'es') }}</span>
</div>
</div>
</div>
<!-- SUBTITLE - DESCRIPTION -->
<div class="container-fluid">
<div class="row pt-5 px-4">
<div class="col-12">
<div class="accordion accordion-flush" id="accordionFlushExample">
<div class="accordion-item">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseOne" aria-expanded="false" aria-controls="flush-collapseOne">
<p class="sttl">Ver descripciĆ³n</p>
</button>
<div id="flush-collapseOne" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#accordionFlushExample">
<div class="accordion-body">{{ event.description|raw }}</div>
</div>
</div>
</div>
</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 %}