<?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_communes2.html.twig */
class __TwigTemplate_8a57cb1c0dc780dc14d35b30f0829c4e 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;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/charger_communes2.html.twig"));

        // 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, (isset($context["departement"]) || array_key_exists("departement", $context) ? $context["departement"] : (function () { throw new RuntimeError('Variable "departement" does not exist.', 4, $this->source); })()), "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((isset($context["communes"]) || array_key_exists("communes", $context) ? $context["communes"] : (function () { throw new RuntimeError('Variable "communes" does not exist.', 20, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["commune"]) {
            // line 21
            yield "\t\t\t\t\t\t";
            $context["flag"] = "#dff1fd";
            // 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((isset($context["flag"]) || array_key_exists("flag", $context) ? $context["flag"] : (function () { throw new RuntimeError('Variable "flag" does not exist.', 24, $this->source); })()), "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, (isset($context["departement"]) || array_key_exists("departement", $context) ? $context["departement"] : (function () { throw new RuntimeError('Variable "departement" does not exist.', 33, $this->source); })()), "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>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  136 => 45,  125 => 40,  120 => 38,  115 => 36,  111 => 34,  107 => 33,  100 => 28,  84 => 24,  76 => 22,  73 => 21,  69 => 20,  50 => 4,  45 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("<br>
<div style=\"margin-bottom: -150px;\">
            <div class=\"template-details\">
                    <h2>{{departement.name}} </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{% for commune in communes %}
\t\t\t\t\t\t{% set flag='#dff1fd' %}
\t\t\t\t\t\t<a onclick=\"commune({{commune.id}})\" class=\"tooltips\" data-container=\"body\" data-original-title=\"{{commune.name}}\">
\t\t\t\t\t\t\t<path
\t\t\t\t\t\t\t\tid=\"commune{{commune.id}}\" style=\"fill-rule:evenodd;clip-rule:evenodd;fill:{{flag}};stroke:#000;stroke-width:1;stroke-miterlimit:10;\" d=\"M{{commune.coordonnee}}\"><title>{{commune.name}}</title>
\t\t\t\t\t\t\t</path>
\t\t\t\t\t\t</a>
\t\t\t\t\t\t{% endfor %}
\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{% for commune in departement.communes %}
\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=\"{{ path('commune', { 'id': commune.id }) }}\">
\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=\"{{asset('frontend/icons/icons-3.7.svg')}}#chevron-right\"></use>
\t\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t\t{{ commune.name }}
\t\t\t\t\t\t\t</a>
                            </font>
\t\t\t\t\t\t</li>
\t\t\t\t\t{% endfor %}
\t\t\t\t</ul>

\t\t\t\t</div>
\t\t\t</div>
\t\t\t</div>
", "frontend/charger_communes2.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/frontend/charger_communes2.html.twig");
    }
}
