<?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;
/* backend/default/index.html.twig */
class __TwigTemplate_b523b3de21cea9b36d4ed4bcb245910f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "backend/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "backend/default/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "backend/default/index.html.twig"));
$this->parent = $this->loadTemplate("backend/base.html.twig", "backend/default/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Accueil";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
echo " <div class=\"row justify-content-md-center\">
<div class=\"col-12 col-lg-8 mb-4 mb-lg-0\">
<div class=\"card h-100\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-12 col-lg-6\">
<h4>Adhérents par régions ";
// line 12
echo twig_escape_filter($this->env, (isset($context["mapSelectedYear"]) || array_key_exists("mapSelectedYear", $context) ? $context["mapSelectedYear"] : (function () { throw new RuntimeError('Variable "mapSelectedYear" does not exist.', 12, $this->source); })()), "html", null, true);
echo "</h4>
<div class=\"text-sm\"><i>Cliquez sur les numéros pour voir le détails</i></div>
</div>
<div class=\"col-12 col-lg-6 text-end\">
<a href=\"";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage", ["year" => ((isset($context["nowYear"]) || array_key_exists("nowYear", $context) ? $context["nowYear"] : (function () { throw new RuntimeError('Variable "nowYear" does not exist.', 16, $this->source); })()) - 2)]), "html", null, true);
echo "\" class=\"btn ";
echo (((((isset($context["nowYear"]) || array_key_exists("nowYear", $context) ? $context["nowYear"] : (function () { throw new RuntimeError('Variable "nowYear" does not exist.', 16, $this->source); })()) - 2) == (isset($context["mapSelectedYear"]) || array_key_exists("mapSelectedYear", $context) ? $context["mapSelectedYear"] : (function () { throw new RuntimeError('Variable "mapSelectedYear" does not exist.', 16, $this->source); })()))) ? ("btn-success") : ("btn-outline-secondary"));
echo " btn-sm\">";
echo twig_escape_filter($this->env, ((isset($context["nowYear"]) || array_key_exists("nowYear", $context) ? $context["nowYear"] : (function () { throw new RuntimeError('Variable "nowYear" does not exist.', 16, $this->source); })()) - 2), "html", null, true);
echo "</a>
<a href=\"";
// line 17
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage", ["year" => ((isset($context["nowYear"]) || array_key_exists("nowYear", $context) ? $context["nowYear"] : (function () { throw new RuntimeError('Variable "nowYear" does not exist.', 17, $this->source); })()) - 1)]), "html", null, true);
echo "\" class=\"btn ";
echo (((((isset($context["nowYear"]) || array_key_exists("nowYear", $context) ? $context["nowYear"] : (function () { throw new RuntimeError('Variable "nowYear" does not exist.', 17, $this->source); })()) - 1) == (isset($context["mapSelectedYear"]) || array_key_exists("mapSelectedYear", $context) ? $context["mapSelectedYear"] : (function () { throw new RuntimeError('Variable "mapSelectedYear" does not exist.', 17, $this->source); })()))) ? ("btn-success") : ("btn-outline-secondary"));
echo " btn-sm\">";
echo twig_escape_filter($this->env, ((isset($context["nowYear"]) || array_key_exists("nowYear", $context) ? $context["nowYear"] : (function () { throw new RuntimeError('Variable "nowYear" does not exist.', 17, $this->source); })()) - 1), "html", null, true);
echo "</a>
<a href=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage", ["year" => (isset($context["nowYear"]) || array_key_exists("nowYear", $context) ? $context["nowYear"] : (function () { throw new RuntimeError('Variable "nowYear" does not exist.', 18, $this->source); })())]), "html", null, true);
echo "\" class=\"btn ";
echo ((((isset($context["nowYear"]) || array_key_exists("nowYear", $context) ? $context["nowYear"] : (function () { throw new RuntimeError('Variable "nowYear" does not exist.', 18, $this->source); })()) == (isset($context["mapSelectedYear"]) || array_key_exists("mapSelectedYear", $context) ? $context["mapSelectedYear"] : (function () { throw new RuntimeError('Variable "mapSelectedYear" does not exist.', 18, $this->source); })()))) ? ("btn-success") : ("btn-outline-secondary"));
echo " btn-sm\">";
echo twig_escape_filter($this->env, (isset($context["nowYear"]) || array_key_exists("nowYear", $context) ? $context["nowYear"] : (function () { throw new RuntimeError('Variable "nowYear" does not exist.', 18, $this->source); })()), "html", null, true);
echo "</a>
</div>
</div>
</div>
<div class=\"card-body\">
<div
class=\"map mx-auto\"
data-controller=\"region-details-modal\"
data-region-details-modal-id-value=\"#regionDetail\"
data-region-details-modal-year-value=\"";
// line 27
echo twig_escape_filter($this->env, (isset($context["mapSelectedYear"]) || array_key_exists("mapSelectedYear", $context) ? $context["mapSelectedYear"] : (function () { throw new RuntimeError('Variable "mapSelectedYear" does not exist.', 27, $this->source); })()), "html", null, true);
echo "\"
data-region-details-modal-display-value=\"";
// line 28
echo (((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_BOARD_DIRECTOR") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REGIONAL_AGENT")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_UNION_PRESIDENT"))) ? ("false") : ("true"));
echo "\"
>
";
// line 30
$context["color"] = "#000000";
// line 31
echo " ";
if ( !twig_test_empty((isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 31, $this->source); })()))) {
// line 32
echo " <span class=\"map-value\" data-region-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 32, $this->source); })()), 6, [], "array", false, false, false, 32), "id", [], "any", false, false, false, 32), "html", null, true);
echo "\" style=\"top: 115px; right: -335px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 32, $this->source); })()), 6, [], "array", false, false, false, 32), "name", [], "any", false, false, false, 32) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 32, $this->source); })()), 6, [], "array", false, false, false, 32), "id", [], "any", false, false, false, 32)) . ")"), "html", null, true);
echo "\">
";
// line 33
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 33, $this->source); })()), 6, [], "array", false, false, false, 33), "countMember", [], "any", false, false, false, 33), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 35, $this->source); })()), 8, [], "array", false, false, false, 35), "id", [], "any", false, false, false, 35), "html", null, true);
echo "\" style=\"top: 163px;right: -203px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 35, $this->source); })()), 8, [], "array", false, false, false, 35), "name", [], "any", false, false, false, 35) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 35, $this->source); })()), 8, [], "array", false, false, false, 35), "id", [], "any", false, false, false, 35)) . ")"), "html", null, true);
echo "\">
";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 36, $this->source); })()), 8, [], "array", false, false, false, 36), "countMember", [], "any", false, false, false, 36), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 38, $this->source); })()), 7, [], "array", false, false, false, 38), "id", [], "any", false, false, false, 38), "html", null, true);
echo "\" style=\"top: 189px; right: -308px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 38, $this->source); })()), 7, [], "array", false, false, false, 38), "name", [], "any", false, false, false, 38) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 38, $this->source); })()), 7, [], "array", false, false, false, 38), "id", [], "any", false, false, false, 38)) . ")"), "html", null, true);
echo "\">
";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 39, $this->source); })()), 7, [], "array", false, false, false, 39), "countMember", [], "any", false, false, false, 39), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 41, $this->source); })()), 5, [], "array", false, false, false, 41), "id", [], "any", false, false, false, 41), "html", null, true);
echo "\" style=\"top: 189px; right: -421px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 41, $this->source); })()), 5, [], "array", false, false, false, 41), "name", [], "any", false, false, false, 41) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 41, $this->source); })()), 5, [], "array", false, false, false, 41), "id", [], "any", false, false, false, 41)) . ")"), "html", null, true);
echo "\">
";
// line 42
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 42, $this->source); })()), 5, [], "array", false, false, false, 42), "countMember", [], "any", false, false, false, 42), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 44
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 44, $this->source); })()), 1, [], "array", false, false, false, 44), "id", [], "any", false, false, false, 44), "html", null, true);
echo "\" style=\"top: 296px; right: -374px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 44, $this->source); })()), 1, [], "array", false, false, false, 44), "name", [], "any", false, false, false, 44) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 44, $this->source); })()), 1, [], "array", false, false, false, 44), "id", [], "any", false, false, false, 44)) . ")"), "html", null, true);
echo "\">
";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 45, $this->source); })()), 1, [], "array", false, false, false, 45), "countMember", [], "any", false, false, false, 45), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 47
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 47, $this->source); })()), 0, [], "array", false, false, false, 47), "id", [], "any", false, false, false, 47), "html", null, true);
echo "\" style=\"top: 416px;right: -347px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 47, $this->source); })()), 0, [], "array", false, false, false, 47), "name", [], "any", false, false, false, 47) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 47, $this->source); })()), 0, [], "array", false, false, false, 47), "id", [], "any", false, false, false, 47)) . ")"), "html", null, true);
echo "\">
";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 48, $this->source); })()), 0, [], "array", false, false, false, 48), "countMember", [], "any", false, false, false, 48), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 50
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 50, $this->source); })()), 12, [], "array", false, false, false, 50), "id", [], "any", false, false, false, 50), "html", null, true);
echo "\" style=\"top: 509px; right: -388px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 50, $this->source); })()), 12, [], "array", false, false, false, 50), "name", [], "any", false, false, false, 50) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 50, $this->source); })()), 12, [], "array", false, false, false, 50), "id", [], "any", false, false, false, 50)) . ")"), "html", null, true);
echo "\">
";
// line 51
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 51, $this->source); })()), 12, [], "array", false, false, false, 51), "countMember", [], "any", false, false, false, 51), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 53, $this->source); })()), 10, [], "array", false, false, false, 53), "id", [], "any", false, false, false, 53), "html", null, true);
echo "\" style=\"top: 505px; right: -204px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 53, $this->source); })()), 10, [], "array", false, false, false, 53), "name", [], "any", false, false, false, 53) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 53, $this->source); })()), 10, [], "array", false, false, false, 53), "id", [], "any", false, false, false, 53)) . ")"), "html", null, true);
echo "\">
";
// line 54
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 54, $this->source); })()), 10, [], "array", false, false, false, 54), "countMember", [], "any", false, false, false, 54), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 56
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 56, $this->source); })()), 9, [], "array", false, false, false, 56), "id", [], "any", false, false, false, 56), "html", null, true);
echo "\" style=\"top: 400px; right: -103px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 56, $this->source); })()), 9, [], "array", false, false, false, 56), "name", [], "any", false, false, false, 56) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 56, $this->source); })()), 9, [], "array", false, false, false, 56), "id", [], "any", false, false, false, 56)) . ")"), "html", null, true);
echo "\">
";
// line 57
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 57, $this->source); })()), 9, [], "array", false, false, false, 57), "countMember", [], "any", false, false, false, 57), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 59
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 59, $this->source); })()), 3, [], "array", false, false, false, 59), "id", [], "any", false, false, false, 59), "html", null, true);
echo "\" style=\"top: 285px; right: -142px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 59, $this->source); })()), 3, [], "array", false, false, false, 59), "name", [], "any", false, false, false, 59) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 59, $this->source); })()), 3, [], "array", false, false, false, 59), "id", [], "any", false, false, false, 59)) . ")"), "html", null, true);
echo "\">
";
// line 60
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 60, $this->source); })()), 3, [], "array", false, false, false, 60), "countMember", [], "any", false, false, false, 60), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 62
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 62, $this->source); })()), 2, [], "array", false, false, false, 62), "id", [], "any", false, false, false, 62), "html", null, true);
echo "\" style=\"top: 222px; right: 67px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 62, $this->source); })()), 2, [], "array", false, false, false, 62), "name", [], "any", false, false, false, 62) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 62, $this->source); })()), 2, [], "array", false, false, false, 62), "id", [], "any", false, false, false, 62)) . ")"), "html", null, true);
echo "\">
";
// line 63
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 63, $this->source); })()), 2, [], "array", false, false, false, 63), "countMember", [], "any", false, false, false, 63), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 65, $this->source); })()), 11, [], "array", false, false, false, 65), "id", [], "any", false, false, false, 65), "html", null, true);
echo "\" style=\"top: 222px; right: -19px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 65, $this->source); })()), 11, [], "array", false, false, false, 65), "name", [], "any", false, false, false, 65) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 65, $this->source); })()), 11, [], "array", false, false, false, 65), "id", [], "any", false, false, false, 65)) . ")"), "html", null, true);
echo "\">
";
// line 66
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 66, $this->source); })()), 11, [], "array", false, false, false, 66), "countMember", [], "any", false, false, false, 66), "html", null, true);
echo "
</span>
<span class=\"map-value\" data-region-id=\"";
// line 68
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 68, $this->source); })()), 4, [], "array", false, false, false, 68), "id", [], "any", false, false, false, 68), "html", null, true);
echo "\" style=\"top: 596px; right: -409px;\" title=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 68, $this->source); })()), 4, [], "array", false, false, false, 68), "name", [], "any", false, false, false, 68) . "(") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 68, $this->source); })()), 4, [], "array", false, false, false, 68), "id", [], "any", false, false, false, 68)) . ")"), "html", null, true);
echo "\">
";
// line 69
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["memberPerRegion"]) || array_key_exists("memberPerRegion", $context) ? $context["memberPerRegion"] : (function () { throw new RuntimeError('Variable "memberPerRegion" does not exist.', 69, $this->source); })()), 4, [], "array", false, false, false, 69), "countMember", [], "any", false, false, false, 69), "html", null, true);
echo "
</span>
";
}
// line 72
echo " </div>
</div>
</div>
</div>
<div class=\"col-12 col-lg-4\">
<div class=\"card\">
<div class=\"card-header\"><h4>Adhésion sur les 3 dernières années</h4></div>
<div class=\"card-body\">
";
// line 80
echo $this->extensions['Symfony\UX\Chartjs\Twig\ChartExtension']->renderChart($this->env, (isset($context["chartMemberPerYear"]) || array_key_exists("chartMemberPerYear", $context) ? $context["chartMemberPerYear"] : (function () { throw new RuntimeError('Variable "chartMemberPerYear" does not exist.', 80, $this->source); })()));
echo "
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class=\"modal fade\" id=\"regionDetail\" tabindex=\"-1\" aria-labelledby=\"regionDetailLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-lg\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h1 class=\"modal-title fs-5\" id=\"regionDetailLabel\"></h1>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\">
<table class=\"table\">
<thead>
<tr>
<th>Raison sociale</th>
<th class=\"text-center\">Action(s)</th>
</tr>
</thead>
<tbody id=\"region-details\">
</tbody>
</table>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "backend/default/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 304 => 80, 294 => 72, 288 => 69, 282 => 68, 277 => 66, 271 => 65, 266 => 63, 260 => 62, 255 => 60, 249 => 59, 244 => 57, 238 => 56, 233 => 54, 227 => 53, 222 => 51, 216 => 50, 211 => 48, 205 => 47, 200 => 45, 194 => 44, 189 => 42, 183 => 41, 178 => 39, 172 => 38, 167 => 36, 161 => 35, 156 => 33, 149 => 32, 146 => 31, 144 => 30, 139 => 28, 135 => 27, 119 => 18, 111 => 17, 103 => 16, 96 => 12, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'backend/base.html.twig' %}
{% block title %}Accueil{% endblock %}
{% block content %}
<div class=\"row justify-content-md-center\">
<div class=\"col-12 col-lg-8 mb-4 mb-lg-0\">
<div class=\"card h-100\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-12 col-lg-6\">
<h4>Adhérents par régions {{ mapSelectedYear }}</h4>
<div class=\"text-sm\"><i>Cliquez sur les numéros pour voir le détails</i></div>
</div>
<div class=\"col-12 col-lg-6 text-end\">
<a href=\"{{ path('app_homepage', {year: (nowYear - 2)}) }}\" class=\"btn {{ (nowYear - 2) == mapSelectedYear ? 'btn-success' : 'btn-outline-secondary' }} btn-sm\">{{ nowYear - 2 }}</a>
<a href=\"{{ path('app_homepage', {year: (nowYear - 1)}) }}\" class=\"btn {{ (nowYear - 1) == mapSelectedYear ? 'btn-success' : 'btn-outline-secondary' }} btn-sm\">{{ nowYear - 1 }}</a>
<a href=\"{{ path('app_homepage', {year: (nowYear)}) }}\" class=\"btn {{ nowYear == mapSelectedYear ? 'btn-success' : 'btn-outline-secondary' }} btn-sm\">{{ nowYear }}</a>
</div>
</div>
</div>
<div class=\"card-body\">
<div
class=\"map mx-auto\"
data-controller=\"region-details-modal\"
data-region-details-modal-id-value=\"#regionDetail\"
data-region-details-modal-year-value=\"{{ mapSelectedYear }}\"
data-region-details-modal-display-value=\"{{ is_granted('ROLE_BOARD_DIRECTOR') or is_granted('ROLE_REGIONAL_AGENT') or is_granted('ROLE_UNION_PRESIDENT') ? 'false' : 'true' }}\"
>
{% set color = '#000000' %}
{% if memberPerRegion is not empty %}
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[6].id }}\" style=\"top: 115px; right: -335px;\" title=\"{{ memberPerRegion[6].name ~ '(' ~ memberPerRegion[6].id ~')' }}\">
{{ memberPerRegion[6].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[8].id }}\" style=\"top: 163px;right: -203px;\" title=\"{{ memberPerRegion[8].name ~ '(' ~ memberPerRegion[8].id ~')' }}\">
{{ memberPerRegion[8].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[7].id }}\" style=\"top: 189px; right: -308px;\" title=\"{{ memberPerRegion[7].name ~ '(' ~ memberPerRegion[7].id ~')' }}\">
{{ memberPerRegion[7].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[5].id }}\" style=\"top: 189px; right: -421px;\" title=\"{{ memberPerRegion[5].name ~ '(' ~ memberPerRegion[5].id ~')' }}\">
{{ memberPerRegion[5].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[1].id }}\" style=\"top: 296px; right: -374px;\" title=\"{{ memberPerRegion[1].name ~ '(' ~ memberPerRegion[1].id ~')' }}\">
{{ memberPerRegion[1].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[0].id }}\" style=\"top: 416px;right: -347px;\" title=\"{{ memberPerRegion[0].name ~ '(' ~ memberPerRegion[0].id ~')' }}\">
{{ memberPerRegion[0].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[12].id }}\" style=\"top: 509px; right: -388px;\" title=\"{{ memberPerRegion[12].name ~ '(' ~ memberPerRegion[12].id ~')' }}\">
{{ memberPerRegion[12].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[10].id }}\" style=\"top: 505px; right: -204px;\" title=\"{{ memberPerRegion[10].name ~ '(' ~ memberPerRegion[10].id ~')' }}\">
{{ memberPerRegion[10].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[9].id }}\" style=\"top: 400px; right: -103px;\" title=\"{{ memberPerRegion[9].name ~ '(' ~ memberPerRegion[9].id ~')' }}\">
{{ memberPerRegion[9].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[3].id }}\" style=\"top: 285px; right: -142px;\" title=\"{{ memberPerRegion[3].name ~ '(' ~ memberPerRegion[3].id ~')' }}\">
{{ memberPerRegion[3].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[2].id }}\" style=\"top: 222px; right: 67px;\" title=\"{{ memberPerRegion[2].name ~ '(' ~ memberPerRegion[2].id ~')' }}\">
{{ memberPerRegion[2].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[11].id }}\" style=\"top: 222px; right: -19px;\" title=\"{{ memberPerRegion[11].name ~ '(' ~ memberPerRegion[11].id ~')' }}\">
{{ memberPerRegion[11].countMember }}
</span>
<span class=\"map-value\" data-region-id=\"{{ memberPerRegion[4].id }}\" style=\"top: 596px; right: -409px;\" title=\"{{ memberPerRegion[4].name ~ '(' ~ memberPerRegion[4].id ~')' }}\">
{{ memberPerRegion[4].countMember }}
</span>
{% endif %}
</div>
</div>
</div>
</div>
<div class=\"col-12 col-lg-4\">
<div class=\"card\">
<div class=\"card-header\"><h4>Adhésion sur les 3 dernières années</h4></div>
<div class=\"card-body\">
{{ render_chart(chartMemberPerYear) }}
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class=\"modal fade\" id=\"regionDetail\" tabindex=\"-1\" aria-labelledby=\"regionDetailLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-lg\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h1 class=\"modal-title fs-5\" id=\"regionDetailLabel\"></h1>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\">
<table class=\"table\">
<thead>
<tr>
<th>Raison sociale</th>
<th class=\"text-center\">Action(s)</th>
</tr>
</thead>
<tbody id=\"region-details\">
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}
", "backend/default/index.html.twig", "/var/www/html/symfony/templates/backend/default/index.html.twig");
}
}