<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;

/* frontend/charger_communes.html.twig */
class __TwigTemplate_ba4c77e3dd2b735d3b008965a092b060 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        yield "<br>
<div style=\"margin-bottom: -150px;\">
            <div class=\"template-details\">
                    <h2>";
        // line 4
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["departement"] ?? null), "name", [], "any", false, false, false, 4), "html", null, true);
        yield " </h2>
            </div>

\t\t\t<div class=\"container row\" style=\"max-width: 100%;\">
\t\t\t\t<div class=\"col-lg-7\">
\t\t\t\t<svg version=\"1.1\" id=\"Departement\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"  height=\"500px\" viewbox=\"0 0 432 755\" style=\"enable-background:new 0 0 432 755;\" xml:space=\"preserve\">
\t\t\t\t\t\t<defs>
\t\t\t\t\t\t\t<style>
\t\t\t\t\t\t\t\t#carte path {
\t\t\t\t\t\t\t\t\tcursor: pointer;
\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\tpath:hover {
\t\t\t\t\t\t\t\t\topacity: .5;
\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t</style>
\t\t\t\t\t\t</defs>
\t\t\t\t\t\t";
        // line 20
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["communes"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["commune"]) {
            // line 21
            yield "\t\t\t\t\t\t";
            $context["flag"] = CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "getIndicateurStatutColor", [($context["year"] ?? null), ($context["indicateur"] ?? null), 3, CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "id", [], "any", false, false, false, 21)], "method", false, false, false, 21);
            // line 22
            yield "\t\t\t\t\t\t<a onclick=\"commune(";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "id", [], "any", false, false, false, 22), "html", null, true);
            yield ")\" class=\"tooltips\" data-container=\"body\" data-original-title=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "name", [], "any", false, false, false, 22), "html", null, true);
            yield "\">
\t\t\t\t\t\t\t<path
\t\t\t\t\t\t\t\tid=\"commune";
            // line 24
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "id", [], "any", false, false, false, 24), "html", null, true);
            yield "\" style=\"fill-rule:evenodd;clip-rule:evenodd;fill:";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["flag"] ?? null), "html", null, true);
            yield ";stroke:#000;stroke-width:1;stroke-miterlimit:10;\" d=\"M";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "coordonnee", [], "any", false, false, false, 24), "html", null, true);
            yield "\"><title>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "name", [], "any", false, false, false, 24), "html", null, true);
            yield "</title>
\t\t\t\t\t\t\t</path>
\t\t\t\t\t\t</a>
\t\t\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['commune'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 28
        yield "\t\t\t\t\t</svg>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-lg-5\" style=\"margin-top : 0px;\">

\t\t\t\t\t<ul style=\"list-style-type: none;\">
\t\t\t\t\t";
        // line 33
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["departement"] ?? null), "communes", [], "any", false, false, false, 33));
        foreach ($context['_seq'] as $context["_key"] => $context["commune"]) {
            // line 34
            yield "\t\t\t\t\t\t<li style=\"padding: 3px 0 2px 0;\">
                            <font size=\"-1\">
\t\t\t\t\t\t\t<a href=\"";
            // line 36
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("commune", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "id", [], "any", false, false, false, 36)]), "html", null, true);
            yield "\">
\t\t\t\t\t\t\t\t<svg class=\"icon icon-chevron-right\" fill=\"currentColor\">
\t\t\t\t\t\t\t\t\t<use xlink:href=\"";
            // line 38
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/icons/icons-3.7.svg"), "html", null, true);
            yield "#chevron-right\"></use>
\t\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t\t";
            // line 40
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "name", [], "any", false, false, false, 40), "html", null, true);
            yield "
\t\t\t\t\t\t\t</a>
                            </font>
\t\t\t\t\t\t</li>
\t\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['commune'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 45
        yield "\t\t\t\t</ul>

\t\t\t\t</div>
\t\t\t</div>
\t\t\t</div>
";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "frontend/charger_communes.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  133 => 45,  122 => 40,  117 => 38,  112 => 36,  108 => 34,  104 => 33,  97 => 28,  81 => 24,  73 => 22,  70 => 21,  66 => 20,  47 => 4,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "frontend/charger_communes.html.twig", "/var/www/html/templates/frontend/charger_communes.html.twig");
    }
}
