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

/* communes/output.html.twig */
class __TwigTemplate_4553e3ac2e2cbeb81a1bffe1d906d942 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/communeodd-layout.html.twig";
    }

    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", "communes/output.html.twig"));

        $this->parent = $this->load("@AdminLTE/layout/communeodd-layout.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_title(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(), "block", "page_title"));

        yield "Valeurs des indicateurs ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 6
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(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(), "block", "page_content"));

        // line 7
        yield "    ";
        yield from $this->load("communes/output.html.twig", 7, "171842245")->unwrap()->yield($context);
        // line 22
        yield "
    ";
        // line 23
        if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["indicators"]) || array_key_exists("indicators", $context) ? $context["indicators"] : (function () { throw new RuntimeError('Variable "indicators" does not exist.', 23, $this->source); })())) > 0)) {
            // line 24
            yield "        ";
            yield from $this->load("communes/output.html.twig", 24, "33608083")->unwrap()->yield($context);
            // line 63
            yield "        ";
        }
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  96 => 63,  93 => 24,  91 => 23,  88 => 22,  85 => 7,  75 => 6,  58 => 3,  41 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/communeodd-layout.html.twig' %}

{% block page_title %}Valeurs des indicateurs {% endblock %}


{% block page_content %}
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
\t\t\t\t\t    <label class=\"col-form-label\">{% trans %}basics.goal{% endtrans %}</label>
\t\t\t\t    </div>
                    <div class=\"col-10 col-sm-10 col-md-10\">
                        {{ form_widget(form.goal) }}
                    </div>
                </div>
                
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

    {% if indicators|length > 0 %}
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"suiviIndicateurTable\" class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">Cible</div>
                            <div class=\"col-3\">Indicateur</div>
                            <div class=\"col-7\">
                                {% for i in 4..0 %}
                                <div class=\"col-2 float-left text-center\">{{ year - i }}</div>
                                {% endfor %}
                                <div class=\"col-2 float-left text-center\">Val. cible</div>
                            </div>
                        </div>
                    </th>
                </thead>

                {% for indicator in indicators %}
                <tr>
                    <td>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">{{ indicator.target }}</div>
                            <div class=\"col-3\">{{ indicator }}</div>
                            <div class=\"col-7\">
                                {% for i in 4..0 %}
                                <div class=\"col-2 float-left text-center\">{{ suivis[indicator.id][year - i] }}</div>
                                {% endfor %}
                                <div class=\"col-2 float-left text-center\"><b>{{ indicator.maxValue }}</b></div>
                                
                                <div class=\"col-12 float-left\"><hr><i>{{ suivis[indicator.id]['observation'] }}</i></div>
                            </div>
                        </div>
                    </td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}
        {% endembed %}
        {% endif %}
{% endblock %}
", "communes/output.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/communes/output.html.twig");
    }
}


/* communes/output.html.twig */
class __TwigTemplate_4553e3ac2e2cbeb81a1bffe1d906d942___171842245 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 7
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    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", "communes/output.html.twig"));

        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 7);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 8
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(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(), "block", "box_body"));

        // line 9
        yield "            ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 9, $this->source); })()), 'form_start');
        yield "
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
\t\t\t\t\t    <label class=\"col-form-label\">";
        // line 12
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.goal", [], "messages");
        yield "</label>
\t\t\t\t    </div>
                    <div class=\"col-10 col-sm-10 col-md-10\">
                        ";
        // line 15
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 15, $this->source); })()), "goal", [], "any", false, false, false, 15), 'widget');
        yield "
                    </div>
                </div>
                
            ";
        // line 19
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 19, $this->source); })()), 'form_end');
        yield "    
        ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  269 => 19,  262 => 15,  256 => 12,  249 => 9,  239 => 8,  222 => 7,  96 => 63,  93 => 24,  91 => 23,  88 => 22,  85 => 7,  75 => 6,  58 => 3,  41 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/communeodd-layout.html.twig' %}

{% block page_title %}Valeurs des indicateurs {% endblock %}


{% block page_content %}
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
\t\t\t\t\t    <label class=\"col-form-label\">{% trans %}basics.goal{% endtrans %}</label>
\t\t\t\t    </div>
                    <div class=\"col-10 col-sm-10 col-md-10\">
                        {{ form_widget(form.goal) }}
                    </div>
                </div>
                
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

    {% if indicators|length > 0 %}
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"suiviIndicateurTable\" class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">Cible</div>
                            <div class=\"col-3\">Indicateur</div>
                            <div class=\"col-7\">
                                {% for i in 4..0 %}
                                <div class=\"col-2 float-left text-center\">{{ year - i }}</div>
                                {% endfor %}
                                <div class=\"col-2 float-left text-center\">Val. cible</div>
                            </div>
                        </div>
                    </th>
                </thead>

                {% for indicator in indicators %}
                <tr>
                    <td>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">{{ indicator.target }}</div>
                            <div class=\"col-3\">{{ indicator }}</div>
                            <div class=\"col-7\">
                                {% for i in 4..0 %}
                                <div class=\"col-2 float-left text-center\">{{ suivis[indicator.id][year - i] }}</div>
                                {% endfor %}
                                <div class=\"col-2 float-left text-center\"><b>{{ indicator.maxValue }}</b></div>
                                
                                <div class=\"col-12 float-left\"><hr><i>{{ suivis[indicator.id]['observation'] }}</i></div>
                            </div>
                        </div>
                    </td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}
        {% endembed %}
        {% endif %}
{% endblock %}
", "communes/output.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/communes/output.html.twig");
    }
}


/* communes/output.html.twig */
class __TwigTemplate_4553e3ac2e2cbeb81a1bffe1d906d942___33608083 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 24
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    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", "communes/output.html.twig"));

        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 24);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 25
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(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(), "block", "box_body"));

        // line 26
        yield "                <table id=\"suiviIndicateurTable\" class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">Cible</div>
                            <div class=\"col-3\">Indicateur</div>
                            <div class=\"col-7\">
                                ";
        // line 33
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(range(4, 0));
        foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
            // line 34
            yield "                                <div class=\"col-2 float-left text-center\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 34, $this->source); })()) - $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 36
        yield "                                <div class=\"col-2 float-left text-center\">Val. cible</div>
                            </div>
                        </div>
                    </th>
                </thead>

                ";
        // line 42
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["indicators"]) || array_key_exists("indicators", $context) ? $context["indicators"] : (function () { throw new RuntimeError('Variable "indicators" does not exist.', 42, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["indicator"]) {
            // line 43
            yield "                <tr>
                    <td>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">";
            // line 46
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "target", [], "any", false, false, false, 46), "html", null, true);
            yield "</div>
                            <div class=\"col-3\">";
            // line 47
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["indicator"], "html", null, true);
            yield "</div>
                            <div class=\"col-7\">
                                ";
            // line 49
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(range(4, 0));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 50
                yield "                                <div class=\"col-2 float-left text-center\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["suivis"]) || array_key_exists("suivis", $context) ? $context["suivis"] : (function () { throw new RuntimeError('Variable "suivis" does not exist.', 50, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 50), [], "array", false, false, false, 50), ((isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 50, $this->source); })()) - $context["i"]), [], "array", false, false, false, 50), "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 52
            yield "                                <div class=\"col-2 float-left text-center\"><b>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "maxValue", [], "any", false, false, false, 52), "html", null, true);
            yield "</b></div>
                                
                                <div class=\"col-12 float-left\"><hr><i>";
            // line 54
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["suivis"]) || array_key_exists("suivis", $context) ? $context["suivis"] : (function () { throw new RuntimeError('Variable "suivis" does not exist.', 54, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 54), [], "array", false, false, false, 54), "observation", [], "array", false, false, false, 54), "html", null, true);
            yield "</i></div>
                            </div>
                        </div>
                    </td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['indicator'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 60
        yield "                </table>
            ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  502 => 60,  490 => 54,  484 => 52,  475 => 50,  471 => 49,  466 => 47,  462 => 46,  457 => 43,  453 => 42,  445 => 36,  436 => 34,  432 => 33,  423 => 26,  413 => 25,  396 => 24,  269 => 19,  262 => 15,  256 => 12,  249 => 9,  239 => 8,  222 => 7,  96 => 63,  93 => 24,  91 => 23,  88 => 22,  85 => 7,  75 => 6,  58 => 3,  41 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/communeodd-layout.html.twig' %}

{% block page_title %}Valeurs des indicateurs {% endblock %}


{% block page_content %}
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
\t\t\t\t\t    <label class=\"col-form-label\">{% trans %}basics.goal{% endtrans %}</label>
\t\t\t\t    </div>
                    <div class=\"col-10 col-sm-10 col-md-10\">
                        {{ form_widget(form.goal) }}
                    </div>
                </div>
                
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

    {% if indicators|length > 0 %}
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"suiviIndicateurTable\" class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">Cible</div>
                            <div class=\"col-3\">Indicateur</div>
                            <div class=\"col-7\">
                                {% for i in 4..0 %}
                                <div class=\"col-2 float-left text-center\">{{ year - i }}</div>
                                {% endfor %}
                                <div class=\"col-2 float-left text-center\">Val. cible</div>
                            </div>
                        </div>
                    </th>
                </thead>

                {% for indicator in indicators %}
                <tr>
                    <td>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">{{ indicator.target }}</div>
                            <div class=\"col-3\">{{ indicator }}</div>
                            <div class=\"col-7\">
                                {% for i in 4..0 %}
                                <div class=\"col-2 float-left text-center\">{{ suivis[indicator.id][year - i] }}</div>
                                {% endfor %}
                                <div class=\"col-2 float-left text-center\"><b>{{ indicator.maxValue }}</b></div>
                                
                                <div class=\"col-12 float-left\"><hr><i>{{ suivis[indicator.id]['observation'] }}</i></div>
                            </div>
                        </div>
                    </td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}
        {% endembed %}
        {% endif %}
{% endblock %}
", "communes/output.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/communes/output.html.twig");
    }
}
