<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* events/event-tickets.html.twig */
class __TwigTemplate_4f85be0544ae8a6d7e25f4d74e682c789e6d4728c26dcd71a91dc54c73a33cb3 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'head' => [$this, 'block_head'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "events/event-tickets.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "events/event-tickets.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "events/event-tickets.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_head($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 4
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 8
echo "
<!-- 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\">";
// line 13
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 13, $this->source); })()), "name", [], "any", false, false, false, 13), "html", null, true);
echo "</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>";
// line 16
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 16, $this->source); })()), "location", [], "any", false, false, false, 16), "html", null, true);
echo "</span>
<br>
<br>
<span class=\"text-white\"><i class=\"bi bi-calendar-event-fill me-2\"></i> ";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 19, $this->source); })()), "dateEvent", [], "any", false, false, false, 19), "none", "d MMMM Y", null, "gregorian", "es"), "html", null, true);
echo "</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\">";
// line 36
echo twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 36, $this->source); })()), "description", [], "any", false, false, false, 36);
echo "</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\">
";
// line 59
if (( !array_key_exists("format", $context) || (0 === twig_compare((isset($context["format"]) || array_key_exists("format", $context) ? $context["format"] : (function () { throw new RuntimeError('Variable "format" does not exist.', 59, $this->source); })()), 1)))) {
// line 60
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\TicketController::includeTickets", ["request" => twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 60, $this->source); })()), "request", [], "any", false, false, false, 60)]));
echo "
";
} else {
// line 62
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\PackController::includePacks", ["request" => twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 62, $this->source); })()), "request", [], "any", false, false, false, 62)]));
echo "
";
}
// line 64
echo " </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>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "events/event-tickets.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 169 => 64, 163 => 62, 157 => 60, 155 => 59, 129 => 36, 109 => 19, 103 => 16, 97 => 13, 90 => 8, 80 => 7, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}", "events/event-tickets.html.twig", "/var/www/congreso_dbt/templates/events/event-tickets.html.twig");
}
}