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

/* suivi_pta/output_global.html.twig */
class __TwigTemplate_c3e96b112022b19103b98159b78cba0e 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'],
            'javascripts' => [$this, 'block_javascripts'],
            'stylesheets' => [$this, 'block_stylesheets'],
        ];
    }

    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 $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("output.ministry.title", [], "messages");
        yield from [];
    }

    // line 6
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 7
        yield "
    ";
        // line 8
        if ((($tmp = (($_v0 = ($context["datas"] ?? null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0["rows"] ?? null) : null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 9
            yield " 
        
        ";
            // line 11
            yield from $this->load("suivi_pta/output_global.html.twig", 11, 1777262772)->unwrap()->yield($context);
            // line 49
            yield "
    ";
        }
        // line 51
        yield "
    

";
        yield from [];
    }

    // line 56
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 57
        yield "    <script>
        \$(function () {
            \$(\"#outputMinistryTable\").DataTable({
                \"searching\": false,
                \"pageLength\": 25,
                \"lengthChange\": false
            });
        });
    </script>

    <script src=\"";
        // line 67
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/datatables/jquery.dataTables.js"), "html", null, true);
        yield "\"></script>
    <script src=\"";
        // line 68
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/datatables-bs4/js/dataTables.bootstrap4.js"), "html", null, true);
        yield "\"></script>
";
        yield from [];
    }

    // line 71
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_stylesheets(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 72
        yield "    <link rel=\"stylesheet\" href=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/datatables-bs4/css/dataTables.bootstrap4.css"), "html", null, true);
        yield "\">
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  132 => 72,  125 => 71,  118 => 68,  114 => 67,  102 => 57,  95 => 56,  87 => 51,  83 => 49,  81 => 11,  77 => 9,  75 => 8,  72 => 7,  65 => 6,  54 => 3,  43 => 1,);
    }

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


/* suivi_pta/output_global.html.twig */
class __TwigTemplate_c3e96b112022b19103b98159b78cba0e___1777262772 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_title' => [$this, 'block_box_title'],
            'box_body' => [$this, 'block_box_body'],
            'box_footer' => [$this, 'block_box_footer'],
        ];
    }

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

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

    // line 13
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield "TEF Global";
        yield from [];
    }

    // line 14
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 15
        yield "                <table id=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    <th>Code</th>
                    <th>Pilier</th>
                    <th style=\"width: 50px\"># Act.</th>
                    <th style=\"width: 150px\">Mt. Programmés</th>
                    <th style=\"width: 80px\">Mt. Réalisés</th>
                    <th style=\"width: 80px\">TEF (%)</th>
                </thead>
                ";
        // line 24
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((($_v1 = ($context["datas"] ?? null)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1["rows"] ?? null) : null));
        foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
            // line 25
            yield "                <tr>
                    <td>";
            // line 26
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v2 = $context["row"]) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2["code"] ?? null) : null), "html", null, true);
            yield "</td>
                    <td>";
            // line 27
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v3 = $context["row"]) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3["name"] ?? null) : null), "html", null, true);
            yield "</td>
                    <td class=\"text-center\">";
            // line 28
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v4 = $context["row"]) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4["nbActivity"] ?? null) : null), "html", null, true);
            yield "</td>
                    <td class=\"text-right\">";
            // line 29
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((($_v5 = $context["row"]) && is_array($_v5) || $_v5 instanceof ArrayAccess ? ($_v5["sumExpectedCost"] ?? null) : null), 0, ",", " "), "html", null, true);
            yield "</td>
                    <td class=\"text-right\">";
            // line 30
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((($_v6 = $context["row"]) && is_array($_v6) || $_v6 instanceof ArrayAccess ? ($_v6["sumRealizedCost"] ?? null) : null), 0, ",", " "), "html", null, true);
            yield "</td>
                    <td class=\"text-right\">";
            // line 31
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((($_v7 = $context["row"]) && is_array($_v7) || $_v7 instanceof ArrayAccess ? ($_v7["rate"] ?? null) : null), 2, ",", " "), "html", null, true);
            yield "</td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['row'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 34
        yield "                </table>
            ";
        yield from [];
    }

    // line 37
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_footer(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 38
        yield "            <form name=\"output_ministry_export\" method=\"post\" action=\"";
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_output_ministry_export");
        yield "\">
                <input type=\"hidden\" name=\"datas\" value=\"";
        // line 39
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(json_encode(($context["datas"] ?? null)), "html", null, true);
        yield "\"/>
                <div class=\"row\">
                    <div class=\"col-sm-3\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">";
        // line 42
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.export", [], "messages");
        yield "</button>
                    </div>
                    <div class=\"col-sm-9\"></div>
                </div>
            </form>
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  298 => 42,  292 => 39,  287 => 38,  280 => 37,  274 => 34,  265 => 31,  261 => 30,  257 => 29,  253 => 28,  249 => 27,  245 => 26,  242 => 25,  238 => 24,  227 => 15,  220 => 14,  209 => 13,  204 => 11,  202 => 12,  195 => 11,  132 => 72,  125 => 71,  118 => 68,  114 => 67,  102 => 57,  95 => 56,  87 => 51,  83 => 49,  81 => 11,  77 => 9,  75 => 8,  72 => 7,  65 => 6,  54 => 3,  43 => 1,);
    }

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