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

        $this->parent = $this->load("@AdminLTE/layout/suiodd-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 7
    /**
     * @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 8
        yield "\t";
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 9
            yield "\t";
            yield from $this->load("output/output_indicateur.html.twig", 9, "647027133")->unwrap()->yield($context);
            // line 16
            yield "\t";
        }
        // line 17
        yield "\t\t";
        if ((($tmp = (isset($context["goal"]) || array_key_exists("goal", $context) ? $context["goal"] : (function () { throw new RuntimeError('Variable "goal" does not exist.', 17, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 18
            yield "\t\t\t<div class=\"card\">
\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-2\">Code</div>
                                        <div class=\"col-5\">Indicateur</div>
                                            ";
            // line 26
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(range(4, 0));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 27
                yield "                                            <div class=\"col-1 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.', 27, $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 29
            yield "                                    </div>
                                </th>
                            </thead>

                            ";
            // line 33
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable((isset($context["indicateurs"]) || array_key_exists("indicateurs", $context) ? $context["indicateurs"] : (function () { throw new RuntimeError('Variable "indicateurs" does not exist.', 33, $this->source); })()));
            foreach ($context['_seq'] as $context["_key"] => $context["indicator"]) {
                // line 34
                yield "                            <tr>
                                <td>
                                    <div class=\"row mt-2 mb-2\">
                                        <div class=\"col-2\">";
                // line 37
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "code", [], "any", false, false, false, 37), "html", null, true);
                yield "</div>
                                        <div class=\"col-5\">";
                // line 38
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "name", [], "any", false, false, false, 38), "html", null, true);
                yield "</div>
                                            ";
                // line 39
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(range(4, 0));
                foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                    // line 40
                    yield "                                            <div class=\"col-1 float-left text-center\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["settingsManager"]) || array_key_exists("settingsManager", $context) ? $context["settingsManager"] : (function () { throw new RuntimeError('Variable "settingsManager" does not exist.', 40, $this->source); })()), "getValeurIndicateur", [((isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 40, $this->source); })()) - $context["i"]), $context["indicator"]], "method", false, false, false, 40), "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 42
                yield "                                    </div>
                                </td>
                            </tr>
                            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['indicator'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 46
            yield "                            </table>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"card-footer\">            
\t\t\t\t\t\t<div class=\"row\">
                    \t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t\t<a href=\"";
            // line 52
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_export_indicateurs", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["goal"]) || array_key_exists("goal", $context) ? $context["goal"] : (function () { throw new RuntimeError('Variable "goal" does not exist.', 52, $this->source); })()), "id", [], "any", false, false, false, 52)]), "html", null, true);
            yield "\">
                        \t\t\t<button class=\"btn btn-block btn-primary\">Exporter</button>
\t\t\t\t\t\t\t\t</div>
                    \t\t</div>
                    \t<div class=\"col-sm-9\"></div>
                \t</div>
            </div>
            ";
        } else {
            // line 60
            yield "                <div class=\"card-footer\">            
\t\t\t\t\t\t<div class=\"row\">
                    \t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t\t<a href=\"";
            // line 63
            yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_export_indicateurs");
            yield "\">
                        \t\t\t<button class=\"btn btn-block btn-primary\">Exporter</button>
\t\t\t\t\t\t\t\t</div>
                    \t\t</div>
                    \t<div class=\"col-sm-9\"></div>
                \t</div>
\t\t\t";
        }
        // line 70
        yield "
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  200 => 70,  190 => 63,  185 => 60,  174 => 52,  166 => 46,  157 => 42,  148 => 40,  144 => 39,  140 => 38,  136 => 37,  131 => 34,  127 => 33,  121 => 29,  112 => 27,  108 => 26,  98 => 18,  95 => 17,  92 => 16,  89 => 9,  86 => 8,  76 => 7,  58 => 3,  41 => 1,);
    }

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

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


{% block page_content %}
\t{% if is_granted('ROLE_MANAGER') %}
\t{% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
\t\t{% block box_body %}
\t\t\t{{ form_start(form) }}
\t\t\t{{ form_widget(form) }}
\t\t\t{{ form_end(form) }}
\t\t{% endblock %}
\t{% endembed %}
\t{% endif %}
\t\t{% if goal %}
\t\t\t<div class=\"card\">
\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-2\">Code</div>
                                        <div class=\"col-5\">Indicateur</div>
                                            {% for i in 4..0 %}
                                            <div class=\"col-1 float-left text-center\">{{ year - i }}</div>
                                            {% endfor %}
                                    </div>
                                </th>
                            </thead>

                            {% for indicator in indicateurs %}
                            <tr>
                                <td>
                                    <div class=\"row mt-2 mb-2\">
                                        <div class=\"col-2\">{{ indicator.code }}</div>
                                        <div class=\"col-5\">{{ indicator.name }}</div>
                                            {% for i in 4..0 %}
                                            <div class=\"col-1 float-left text-center\">{{ settingsManager.getValeurIndicateur(year - i,indicator) }}</div>
                                            {% endfor %}
                                    </div>
                                </td>
                            </tr>
                            {% endfor %}
                            </table>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"card-footer\">            
\t\t\t\t\t\t<div class=\"row\">
                    \t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t\t<a href=\"{{ path('app_export_indicateurs', { 'id': goal.id }) }}\">
                        \t\t\t<button class=\"btn btn-block btn-primary\">Exporter</button>
\t\t\t\t\t\t\t\t</div>
                    \t\t</div>
                    \t<div class=\"col-sm-9\"></div>
                \t</div>
            </div>
            {% else %}
                <div class=\"card-footer\">            
\t\t\t\t\t\t<div class=\"row\">
                    \t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t\t<a href=\"{{ path('app_export_indicateurs') }}\">
                        \t\t\t<button class=\"btn btn-block btn-primary\">Exporter</button>
\t\t\t\t\t\t\t\t</div>
                    \t\t</div>
                    \t<div class=\"col-sm-9\"></div>
                \t</div>
\t\t\t{% endif %}

{% endblock %}
", "output/output_indicateur.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_indicateur.html.twig");
    }
}


/* output/output_indicateur.html.twig */
class __TwigTemplate_89bb4aba4079df1517493b42cb9d5eee___647027133 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 9
        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", "output/output_indicateur.html.twig"));

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

    }

    // line 10
    /**
     * @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 11
        yield "\t\t\t";
        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.', 11, $this->source); })()), 'form_start');
        yield "
\t\t\t";
        // line 12
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 12, $this->source); })()), 'widget');
        yield "
\t\t\t";
        // line 13
        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.', 13, $this->source); })()), 'form_end');
        yield "
\t\t";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  369 => 13,  365 => 12,  360 => 11,  350 => 10,  333 => 9,  200 => 70,  190 => 63,  185 => 60,  174 => 52,  166 => 46,  157 => 42,  148 => 40,  144 => 39,  140 => 38,  136 => 37,  131 => 34,  127 => 33,  121 => 29,  112 => 27,  108 => 26,  98 => 18,  95 => 17,  92 => 16,  89 => 9,  86 => 8,  76 => 7,  58 => 3,  41 => 1,);
    }

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

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


{% block page_content %}
\t{% if is_granted('ROLE_MANAGER') %}
\t{% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
\t\t{% block box_body %}
\t\t\t{{ form_start(form) }}
\t\t\t{{ form_widget(form) }}
\t\t\t{{ form_end(form) }}
\t\t{% endblock %}
\t{% endembed %}
\t{% endif %}
\t\t{% if goal %}
\t\t\t<div class=\"card\">
\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-2\">Code</div>
                                        <div class=\"col-5\">Indicateur</div>
                                            {% for i in 4..0 %}
                                            <div class=\"col-1 float-left text-center\">{{ year - i }}</div>
                                            {% endfor %}
                                    </div>
                                </th>
                            </thead>

                            {% for indicator in indicateurs %}
                            <tr>
                                <td>
                                    <div class=\"row mt-2 mb-2\">
                                        <div class=\"col-2\">{{ indicator.code }}</div>
                                        <div class=\"col-5\">{{ indicator.name }}</div>
                                            {% for i in 4..0 %}
                                            <div class=\"col-1 float-left text-center\">{{ settingsManager.getValeurIndicateur(year - i,indicator) }}</div>
                                            {% endfor %}
                                    </div>
                                </td>
                            </tr>
                            {% endfor %}
                            </table>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"card-footer\">            
\t\t\t\t\t\t<div class=\"row\">
                    \t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t\t<a href=\"{{ path('app_export_indicateurs', { 'id': goal.id }) }}\">
                        \t\t\t<button class=\"btn btn-block btn-primary\">Exporter</button>
\t\t\t\t\t\t\t\t</div>
                    \t\t</div>
                    \t<div class=\"col-sm-9\"></div>
                \t</div>
            </div>
            {% else %}
                <div class=\"card-footer\">            
\t\t\t\t\t\t<div class=\"row\">
                    \t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t\t<a href=\"{{ path('app_export_indicateurs') }}\">
                        \t\t\t<button class=\"btn btn-block btn-primary\">Exporter</button>
\t\t\t\t\t\t\t\t</div>
                    \t\t</div>
                    \t<div class=\"col-sm-9\"></div>
                \t</div>
\t\t\t{% endif %}

{% endblock %}
", "output/output_indicateur.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_indicateur.html.twig");
    }
}
