<?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_pta.html.twig */
class __TwigTemplate_c2ae41604f5505dac033826006fdf041 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 "Récapitulatif des TEF par pilier
";
        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 "
    <a href=\"";
        // line 9
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_suiviPTA");
        yield "\" class=\"mb-2 mr-2 btn-shadow  btn btn-success text-left\">
        <i class=\"fa fa-save\"></i> Exporter
    </a>
    ";
        // line 12
        yield from $this->load("output/output_pta.html.twig", 12, "1744746105")->unwrap()->yield($context);
        // line 44
        yield "
    ";
        // line 45
        yield from $this->load("output/output_pta.html.twig", 45, "1639190293")->unwrap()->yield($context);
        // line 52
        yield "
    ";
        // line 53
        if ((($tmp = ($context["pilier"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            yield from $this->load("output/output_pta.html.twig", 53, "582860061")->unwrap()->yield($context);
        }
        // line 86
        yield "


";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  94 => 86,  90 => 53,  87 => 52,  85 => 45,  82 => 44,  80 => 12,  74 => 9,  71 => 8,  64 => 7,  52 => 3,  41 => 1,);
    }

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


/* output/output_pta.html.twig */
class __TwigTemplate_c2ae41604f5505dac033826006fdf041___1744746105 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 12
        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", 12);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 13
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 14
        yield "    <table class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-3\">Pilier</div>
                            <div class=\"col-3\">Programmés</div>
                            <div class=\"col-3\">Réalisés</div>
                            <div class=\"col-3\">TEF</div>
                        </div>
                    </th>
                </thead>

                ";
        // line 26
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["piliers"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["pilier"]) {
            // line 27
            yield "                    ";
            $context["valeur"] = CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "montantByPilier", [$context["pilier"], ($context["year"] ?? null)], "method", false, false, false, 27);
            // line 28
            yield "                    ";
            $context["tef"] = ((((($_v0 = ($context["valeur"] ?? null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0["programme"] ?? null) : null) > 0)) ? ((((($_v1 = ($context["valeur"] ?? null)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1["realise"] ?? null) : null) * 100) / (($_v2 = ($context["valeur"] ?? null)) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2["programme"] ?? null) : null))) : (null));
            // line 29
            yield "                <tr>
                    <td>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-3\">";
            // line 32
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pilier"], "name", [], "any", false, false, false, 32), "html", null, true);
            yield "</div>
                            <div class=\"col-3\">";
            // line 33
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v3 = ($context["valeur"] ?? null)) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3["programme"] ?? null) : null), "html", null, true);
            yield "</div>
                            <div class=\"col-3\">";
            // line 34
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v4 = ($context["valeur"] ?? null)) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4["realise"] ?? null) : null), "html", null, true);
            yield "</div>
                            <div class=\"col-3\">";
            // line 35
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::round(($context["tef"] ?? null), 2, "floor"), "html", null, true);
            yield " %</div>
                        </div>
                    </td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['pilier'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 40
        yield "
                </table>
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  225 => 40,  214 => 35,  210 => 34,  206 => 33,  202 => 32,  197 => 29,  194 => 28,  191 => 27,  187 => 26,  173 => 14,  166 => 13,  155 => 12,  94 => 86,  90 => 53,  87 => 52,  85 => 45,  82 => 44,  80 => 12,  74 => 9,  71 => 8,  64 => 7,  52 => 3,  41 => 1,);
    }

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


/* output/output_pta.html.twig */
class __TwigTemplate_c2ae41604f5505dac033826006fdf041___1639190293 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 45
        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", 45);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

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

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  312 => 49,  308 => 48,  303 => 47,  296 => 46,  285 => 45,  225 => 40,  214 => 35,  210 => 34,  206 => 33,  202 => 32,  197 => 29,  194 => 28,  191 => 27,  187 => 26,  173 => 14,  166 => 13,  155 => 12,  94 => 86,  90 => 53,  87 => 52,  85 => 45,  82 => 44,  80 => 12,  74 => 9,  71 => 8,  64 => 7,  52 => 3,  41 => 1,);
    }

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


/* output/output_pta.html.twig */
class __TwigTemplate_c2ae41604f5505dac033826006fdf041___582860061 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 53
        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", 53);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 54
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 55
        yield "                <table class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">ODD</div>
                            <div class=\"col-3\">Ministère</div>
                            <div class=\"col-3\">Programmés</div>
                            <div class=\"col-3\">Réalisés</div>
                            <div class=\"col-1\">TEF</div>
                        </div>
                    </th>
                </thead>

                ";
        // line 68
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["piliers"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["pilier"]) {
            // line 69
            yield "                    ";
            $context["valeur"] = CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "montantByPilier", [$context["pilier"], ($context["year"] ?? null)], "method", false, false, false, 69);
            // line 70
            yield "                    ";
            $context["tef"] = ((((($_v5 = ($context["valeur"] ?? null)) && is_array($_v5) || $_v5 instanceof ArrayAccess ? ($_v5["programme"] ?? null) : null) > 0)) ? ((((($_v6 = ($context["valeur"] ?? null)) && is_array($_v6) || $_v6 instanceof ArrayAccess ? ($_v6["realise"] ?? null) : null) * 100) / (($_v7 = ($context["valeur"] ?? null)) && is_array($_v7) || $_v7 instanceof ArrayAccess ? ($_v7["programme"] ?? null) : null))) : (null));
            // line 71
            yield "                <tr>
                    <td>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-3\">";
            // line 74
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pilier"], "name", [], "any", false, false, false, 74), "html", null, true);
            yield "</div>
                            <div class=\"col-3\">";
            // line 75
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v8 = ($context["valeur"] ?? null)) && is_array($_v8) || $_v8 instanceof ArrayAccess ? ($_v8["programme"] ?? null) : null), "html", null, true);
            yield "</div>
                            <div class=\"col-3\">";
            // line 76
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v9 = ($context["valeur"] ?? null)) && is_array($_v9) || $_v9 instanceof ArrayAccess ? ($_v9["realise"] ?? null) : null), "html", null, true);
            yield "</div>
                            <div class=\"col-3\">";
            // line 77
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::round(($context["tef"] ?? null), 2, "floor"), "html", null, true);
            yield " %</div>
                        </div>
                    </td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['pilier'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 82
        yield "
                </table>
        ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  443 => 82,  432 => 77,  428 => 76,  424 => 75,  420 => 74,  415 => 71,  412 => 70,  409 => 69,  405 => 68,  390 => 55,  383 => 54,  372 => 53,  312 => 49,  308 => 48,  303 => 47,  296 => 46,  285 => 45,  225 => 40,  214 => 35,  210 => 34,  206 => 33,  202 => 32,  197 => 29,  194 => 28,  191 => 27,  187 => 26,  173 => 14,  166 => 13,  155 => 12,  94 => 86,  90 => 53,  87 => 52,  85 => 45,  82 => 44,  80 => 12,  74 => 9,  71 => 8,  64 => 7,  52 => 3,  41 => 1,);
    }

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