<?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;
/* evenements/reservations.html.twig */
class __TwigTemplate_33ba1905a6ab4d0cabd665c9eda5a46380c10ccd3cb0c073a3d96cde790b3ed3 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'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", "evenements/reservations.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "evenements/reservations.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "evenements/reservations.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_title($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", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Evenements index";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
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 6
echo " <div class=\"container\">
<div class=\"tr-content\">
<div class=\"row\">
<div class=\"col-md-12 tr-sticky\">
<h1>Liste des Participants - ";
// line 10
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.', 10, $this->source); })()), "titre", [], "any", false, false, false, 10), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_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.', 10, $this->source); })()), "date", [], "any", false, false, false, 10), "d-m-Y"), "html", null, true);
echo " - ";
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.', 10, $this->source); })()), "lieu", [], "any", false, false, false, 10), "html", null, true);
echo " </h1>
<table class=\"table\">
<thead>
<tr>
<th>Date</th>
<th>Type</th>
<th>Nom</th>
<th>Prénom</th>
<th>Email</th>
<th>Téléphone</th>
<th>Nb Places</th>
</tr>
</thead>
<tbody>
";
// line 27
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["resa"]) || array_key_exists("resa", $context) ? $context["resa"] : (function () { throw new RuntimeError('Variable "resa" does not exist.', 27, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["res"]) {
// line 28
echo " <tr>
<td>";
// line 29
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "created", [], "any", false, false, false, 29), "d-m-Y"), "html", null, true);
echo "</td>
<td>";
// line 30
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "type", [], "any", false, false, false, 30), "html", null, true);
echo "</td>
<td>";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["res"], "user", [], "any", false, false, false, 31), "nom", [], "any", false, false, false, 31), "html", null, true);
echo "</td>
<td>";
// line 32
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["res"], "user", [], "any", false, false, false, 32), "prenom", [], "any", false, false, false, 32), "html", null, true);
echo "</td>
<td>";
// line 33
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["res"], "user", [], "any", false, false, false, 33), "email", [], "any", false, false, false, 33), "html", null, true);
echo "</td>
<td>";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["res"], "user", [], "any", false, false, false, 34), "telephone", [], "any", false, false, false, 34), "html", null, true);
echo "</td>
<td>";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "nbPlaces", [], "any", false, false, false, 36), "html", null, true);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['res'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
echo "
";
// line 41
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["resa2"]) || array_key_exists("resa2", $context) ? $context["resa2"] : (function () { throw new RuntimeError('Variable "resa2" does not exist.', 41, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["res"]) {
// line 42
echo " <tr>
<td>";
// line 43
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "created", [], "any", false, false, false, 43), "d-m-Y"), "html", null, true);
echo "</td>
<td>";
// line 44
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "type", [], "any", false, false, false, 44), "html", null, true);
echo "</td>
<td>";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["res"], "user", [], "any", false, false, false, 45), "nom", [], "any", false, false, false, 45), "html", null, true);
echo "</td>
<td>";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["res"], "user", [], "any", false, false, false, 46), "prenom", [], "any", false, false, false, 46), "html", null, true);
echo "</td>
<td>";
// line 47
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["res"], "user", [], "any", false, false, false, 47), "email", [], "any", false, false, false, 47), "html", null, true);
echo "</td>
<td>";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["res"], "user", [], "any", false, false, false, 48), "telephone", [], "any", false, false, false, 48), "html", null, true);
echo "</td>
<td>";
// line 49
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["res"], "nbPlaces", [], "any", false, false, false, 49), "html", null, true);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['res'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 53
echo "
</tbody>
</table>
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "evenements/reservations.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 204 => 53, 194 => 49, 190 => 48, 186 => 47, 182 => 46, 178 => 45, 174 => 44, 170 => 43, 167 => 42, 163 => 41, 160 => 40, 150 => 36, 145 => 34, 141 => 33, 137 => 32, 133 => 31, 129 => 30, 125 => 29, 122 => 28, 118 => 27, 94 => 10, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Evenements index{% endblock %}
{% block body %}
<div class=\"container\">
<div class=\"tr-content\">
<div class=\"row\">
<div class=\"col-md-12 tr-sticky\">
<h1>Liste des Participants - {{event.titre}} - {{event.date|date('d-m-Y')}} - {{event.lieu}} </h1>
<table class=\"table\">
<thead>
<tr>
<th>Date</th>
<th>Type</th>
<th>Nom</th>
<th>Prénom</th>
<th>Email</th>
<th>Téléphone</th>
<th>Nb Places</th>
</tr>
</thead>
<tbody>
{% for res in resa %}
<tr>
<td>{{res.created|date('d-m-Y')}}</td>
<td>{{res.type}}</td>
<td>{{res.user.nom}}</td>
<td>{{res.user.prenom}}</td>
<td>{{res.user.email}}</td>
<td>{{res.user.telephone}}</td>
<td>{{res.nbPlaces}}</td>
</tr>
{% endfor %}
{% for res in resa2 %}
<tr>
<td>{{res.created|date('d-m-Y')}}</td>
<td>{{res.type}}</td>
<td>{{res.user.nom}}</td>
<td>{{res.user.prenom}}</td>
<td>{{res.user.email}}</td>
<td>{{res.user.telephone}}</td>
<td>{{res.nbPlaces}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}
", "evenements/reservations.html.twig", "/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/templates/evenements/reservations.html.twig");
}
}