<?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;

/* output/output_indicateur_commune.html.twig */
class __TwigTemplate_e81d8b62f67c630754b3c96c1196c00f 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->blocks = [
            'page_title' => [$this, 'block_page_title'],
            'page_content' => [$this, 'block_page_content'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "@AdminLTE/layout/suiodd-layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/layout/suiodd-layout.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield "Valeurs des indicateurs de la commune
";
        yield from [];
    }

    // line 7
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 8
        yield "\t";
        yield from $this->load("output/output_indicateur_commune.html.twig", 8, 985798652)->unwrap()->yield($context);
        // line 15
        yield "
\t";
        // line 16
        if ((($tmp = ($context["commune"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 17
            yield "
    <h4>Valeurs des indicateurs renseignables par la commune</h4>

    ";
            // line 20
            yield from $this->load("output/output_indicateur_commune.html.twig", 20, 1229939950)->unwrap()->yield($context);
            // line 45
            yield "
    <h4>Valeurs des indicateurs de la commune en liant avec les cibles spacialisées</h4>

\t\t<div class=\"accordion\" id=\"accordionExample\">
            ";
            // line 49
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::sort($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["commune"] ?? null), "cibles", [], "any", false, false, false, 49)));
            foreach ($context['_seq'] as $context["_key"] => $context["c"]) {
                // line 50
                yield "            ";
                $context["cible"] = CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "getCible", [$context["c"]], "method", false, false, false, 50);
                // line 51
                yield "\t\t\t<div class=\"card\">
\t\t\t\t<div class=\"card-header\" id=\"heading";
                // line 52
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["cible"] ?? null), "id", [], "any", false, false, false, 52), "html", null, true);
                yield "\">
\t\t\t\t\t<h2 class=\"mb-0\">
\t\t\t\t\t\t<button class=\"btn btn-link btn-block text-left collapsed\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse";
                // line 54
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["cible"] ?? null), "id", [], "any", false, false, false, 54), "html", null, true);
                yield "\" aria-expanded=\"false\" aria-controls=\"collapse";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["cible"] ?? null), "id", [], "any", false, false, false, 54), "html", null, true);
                yield "\">
\t\t\t\t\t\t\t";
                // line 55
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["cible"] ?? null), "code", [], "any", false, false, false, 55), "html", null, true);
                yield " : ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["cible"] ?? null), "description", [], "any", false, false, false, 55), "html", null, true);
                yield "
\t\t\t\t\t\t</button>
\t\t\t\t\t</h2>
\t\t\t\t</div>
                 ";
                // line 59
                if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "getIndicateursRenseignablesByCible", [($context["cible"] ?? null)], "method", false, false, false, 59)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                    // line 60
                    yield "\t\t\t\t<div id=\"collapse";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["cible"] ?? null), "id", [], "any", false, false, false, 60), "html", null, true);
                    yield "\" class=\"collapse\" aria-labelledby=\"heading";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["cible"] ?? null), "id", [], "any", false, false, false, 60), "html", null, true);
                    yield "\" data-parent=\"#accordionExample\">
\t\t\t\t\t<div class=\"card-body\">
                   
\t\t\t\t\t\t<table id=\"suiviIndicateurTable\" class=\"table table-striped\">
                            <thead>
                                <th>
                                    <div class=\"row mt-2 mb-2\">
                                        <div class=\"col-7\">Indicateur</div>
                                            ";
                    // line 68
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable(range(4, 0));
                    foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                        // line 69
                        yield "                                            <div class=\"col-1 float-left text-center\">";
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($context["year"] ?? null) - $context["i"]), "html", null, true);
                        yield "</div>
                                            ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 71
                    yield "                                    </div>
                                </th>
                            </thead>

                            ";
                    // line 75
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "getIndicateursRenseignablesByCible", [($context["cible"] ?? null)], "method", false, false, false, 75));
                    foreach ($context['_seq'] as $context["_key"] => $context["indicator"]) {
                        // line 76
                        yield "                            <tr>
                                <td>
                                    <div class=\"row mt-2 mb-2\">
                                        <div class=\"col-7\">";
                        // line 79
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["indicator"], "html", null, true);
                        yield "</div>
                                            ";
                        // line 80
                        $context['_parent'] = $context;
                        $context['_seq'] = CoreExtension::ensureTraversable(range(4, 0));
                        foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                            // line 81
                            yield "                                            <div class=\"col-1 float-left text-center\">";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "getIndiceCommune", [($context["commune"] ?? null), $context["indicator"], (($context["year"] ?? null) - $context["i"])], "method", false, false, false, 81), "html", null, true);
                            yield "</div>
                                            ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 83
                        yield "                                    </div>
                                </td>
                            </tr>
                            ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_key'], $context['indicator'], $context['_parent']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 87
                    yield "                            </table>
\t\t\t\t\t</div>
\t\t\t\t</div>
                
                            ";
                }
                // line 92
                yield "\t\t\t</div>
\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['c'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 94
            yield "\t\t</div>

\t";
        }
        // line 97
        yield "
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  211 => 97,  206 => 94,  199 => 92,  192 => 87,  183 => 83,  174 => 81,  170 => 80,  166 => 79,  161 => 76,  157 => 75,  151 => 71,  142 => 69,  138 => 68,  124 => 60,  122 => 59,  113 => 55,  107 => 54,  102 => 52,  99 => 51,  96 => 50,  92 => 49,  86 => 45,  84 => 20,  79 => 17,  77 => 16,  74 => 15,  71 => 8,  64 => 7,  52 => 3,  41 => 1,);
    }

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


/* output/output_indicateur_commune.html.twig */
class __TwigTemplate_e81d8b62f67c630754b3c96c1196c00f___985798652 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->blocks = [
            'box_body' => [$this, 'block_box_body'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 8
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 8);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 9
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 10
        yield "\t\t\t";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
        yield "
\t\t\t";
        // line 11
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        yield "
\t\t\t";
        // line 12
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "
\t\t";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  297 => 12,  293 => 11,  288 => 10,  281 => 9,  270 => 8,  211 => 97,  206 => 94,  199 => 92,  192 => 87,  183 => 83,  174 => 81,  170 => 80,  166 => 79,  161 => 76,  157 => 75,  151 => 71,  142 => 69,  138 => 68,  124 => 60,  122 => 59,  113 => 55,  107 => 54,  102 => 52,  99 => 51,  96 => 50,  92 => 49,  86 => 45,  84 => 20,  79 => 17,  77 => 16,  74 => 15,  71 => 8,  64 => 7,  52 => 3,  41 => 1,);
    }

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


/* output/output_indicateur_commune.html.twig */
class __TwigTemplate_e81d8b62f67c630754b3c96c1196c00f___1229939950 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->blocks = [
            'box_body' => [$this, 'block_box_body'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 20
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 20);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 21
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 22
        yield "            <table id=\"goalTable\" class=\"table table-striped\">
            <thead>
                <th>Code</th>
                <th>Indicateurs</th>
                ";
        // line 26
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(range(4, 0));
        foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
            // line 27
            yield "\t\t\t\t\t<th>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($context["year"] ?? null) - $context["i"]), "html", null, true);
            yield "</th>
\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 29
        yield "            </thead>
            <tbody>
            ";
        // line 31
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["indicators"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["indicator"]) {
            // line 32
            yield "                <tr>
                    <td>";
            // line 33
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "code", [], "any", false, false, false, 33), "html", null, true);
            yield "</td>
                    <td>";
            // line 34
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "name", [], "any", false, false, false, 34), "html", null, true);
            yield "</td>
                    ";
            // line 35
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(range(4, 0));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 36
                yield "                        <td>";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "getIndiceCommune", [($context["commune"] ?? null), $context["indicator"], CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "getYear", [(($context["year"] ?? null) - $context["i"])], "method", false, false, false, 36)], "method", false, false, false, 36), "html", null, true);
                yield "</td>
                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 38
            yield "                </tr>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['indicator'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 40
        yield "            </tbody>
            </table>
        ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  433 => 40,  426 => 38,  417 => 36,  413 => 35,  409 => 34,  405 => 33,  402 => 32,  398 => 31,  394 => 29,  385 => 27,  381 => 26,  375 => 22,  368 => 21,  357 => 20,  297 => 12,  293 => 11,  288 => 10,  281 => 9,  270 => 8,  211 => 97,  206 => 94,  199 => 92,  192 => 87,  183 => 83,  174 => 81,  170 => 80,  166 => 79,  161 => 76,  157 => 75,  151 => 71,  142 => 69,  138 => 68,  124 => 60,  122 => 59,  113 => 55,  107 => 54,  102 => 52,  99 => 51,  96 => 50,  92 => 49,  86 => 45,  84 => 20,  79 => 17,  77 => 16,  74 => 15,  71 => 8,  64 => 7,  52 => 3,  41 => 1,);
    }

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