<?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_b52fea9f4564fe0e6a8989c08a90c917 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
";
        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";
        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, "968493151")->unwrap()->yield($context);
            // line 16
            yield "\t";
        }
        // line 17
        yield "\t\t";
        if ((($tmp = ($context["goal"] ?? null)) && $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((($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 29
            yield "                                    </div>
                                </th>
                            </thead>

                            ";
            // line 33
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["indicateurs"] ?? null));
            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, ($context["settingsManager"] ?? null), "getValeurIndicateur", [(($context["year"] ?? null) - $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, ($context["goal"] ?? null), "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 "
";
        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 (  185 => 70,  175 => 63,  170 => 60,  159 => 52,  151 => 46,  142 => 42,  133 => 40,  129 => 39,  125 => 38,  121 => 37,  116 => 34,  112 => 33,  106 => 29,  97 => 27,  93 => 26,  83 => 18,  80 => 17,  77 => 16,  74 => 9,  71 => 8,  64 => 7,  52 => 3,  41 => 1,);
    }

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


/* output/output_indicateur.html.twig */
class __TwigTemplate_b52fea9f4564fe0e6a8989c08a90c917___968493151 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;
        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 9);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  271 => 13,  267 => 12,  262 => 11,  255 => 10,  244 => 9,  185 => 70,  175 => 63,  170 => 60,  159 => 52,  151 => 46,  142 => 42,  133 => 40,  129 => 39,  125 => 38,  121 => 37,  116 => 34,  112 => 33,  106 => 29,  97 => 27,  93 => 26,  83 => 18,  80 => 17,  77 => 16,  74 => 9,  71 => 8,  64 => 7,  52 => 3,  41 => 1,);
    }

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