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

/* frontend/download.html.twig */
class __TwigTemplate_c4e07ce0aa1965f9c2df5e0978d21dca 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 = [
            'content' => [$this, 'block_content'],
            'js' => [$this, 'block_js'],
            'css' => [$this, 'block_css'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "frontend/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("frontend/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_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 4
        yield "<div class=\"container single-template\">
\t
    <div class=\"page-header\">
\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-xl-8 col-lg-8\">
\t\t\t\t\t<h1 class=\"page-title\">
\t\t\t\t\t\tTélécharger les données des ministères de ";
        // line 10
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["year"] ?? null), "html", null, true);
        yield "
\t\t\t\t\t</h1>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-xl-4 col-lg-4\">
\t\t\t\t\t<a href=\"";
        // line 14
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("all_data_indicateurs");
        yield "\">
\t\t\t\t\t\t<span style=\"background: #009b !important; font-size: 16px; padding: 10px 10px 10px 10px; color: #fff; border: 0; text-align: center; width: 250px; float: right;\">
\t\t\t\t\t\t\tTélécharger toutes les données
\t\t\t\t\t\t</span>
\t\t\t\t\t</a>
\t\t\t\t</div>
\t\t\t</div>
\t</div>

\t<table id=\"documentTable\" class=\"table table-striped\">
        <thead>
        \t<th>Ministère</th>
                <th>Fichier</th>
            </thead>
            <tbody>
\t\t\t\t<tr>
                    <td>Institut National de la Statistique et de la Démographie</td>
                    <td>
                        <a  class=\"btn btn-sm btn-secondary\" href=\"";
        // line 32
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_export_indicateurs_ministere", ["id" => 0]);
        yield "\">Exporter</a>   
                    </td>
                </tr>
            ";
        // line 35
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["ministeres"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["ministere"]) {
            // line 36
            yield "                <tr>
                    <td>";
            // line 37
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ministere"], "name", [], "any", false, false, false, 37), "html", null, true);
            yield "</td>
                    <td>
                        <a  class=\"btn btn-sm btn-secondary\" href=\"";
            // line 39
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_export_indicateurs_ministere", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["ministere"], "id", [], "any", false, false, false, 39)]), "html", null, true);
            yield "\">Exporter</a>    
                    </td>
                </tr>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['ministere'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 43
        yield "            </tbody>
            </table>

\t<div class=\"page-header\">
\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-xl-8 col-lg-8\">
\t\t\t\t\t<h1 class=\"page-title\">
\t\t\t\t\t\tTélécharger les données des communes de ";
        // line 50
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["year"] ?? null), "html", null, true);
        yield "
\t\t\t\t\t</h1>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-xl-4 col-lg-4\">
\t\t\t\t\t<a href=\"";
        // line 54
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("all_data_communes");
        yield "\">
\t\t\t\t\t\t<span style=\"background: #009b !important; font-size: 16px; padding: 10px 10px 10px 10px; color: #fff; border: 0; text-align: center; width: 250px; float: right;\">
\t\t\t\t\t\t\tTélécharger toutes les données
\t\t\t\t\t\t</span>
\t\t\t\t\t</a>
\t\t\t\t</div>
\t\t\t</div>
\t</div>

\t<table id=\"documentTable2\" class=\"table table-striped\">
        <thead>
        \t<th>Commune</th>
                <th>Fichier</th>
            </thead>
            <tbody>
            ";
        // line 69
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["communes"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["commune"]) {
            // line 70
            yield "                <tr>
                    <td>";
            // line 71
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "name", [], "any", false, false, false, 71), "html", null, true);
            yield "</td>
                    <td>
                        <a  class=\"btn btn-sm btn-secondary\" href=\"";
            // line 73
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("export_commune", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "id", [], "any", false, false, false, 73)]), "html", null, true);
            yield "\">Exporter</a>   
                    </td>
                </tr>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['commune'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 77
        yield "            </tbody>
            </table>

</div>
";
        yield from [];
    }

    // line 83
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_js(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 84
        yield "    <script src=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/jquery/jquery.min.js"), "html", null, true);
        yield "\"></script>
    <script>
        \$(function () {
            \$(\"#documentTable\").DataTable({
                \"pageLength\": 15
            });
        });
    </script>

\t<script>
        \$(function () {
            \$(\"#documentTable2\").DataTable({
                \"pageLength\": 15
            });
        });
    </script>

    <script src=\"";
        // line 101
        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 102
        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 105
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_css(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 106
        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 "frontend/download.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  235 => 106,  228 => 105,  221 => 102,  217 => 101,  196 => 84,  189 => 83,  180 => 77,  170 => 73,  165 => 71,  162 => 70,  158 => 69,  140 => 54,  133 => 50,  124 => 43,  114 => 39,  109 => 37,  106 => 36,  102 => 35,  96 => 32,  75 => 14,  68 => 10,  60 => 4,  53 => 3,  42 => 1,);
    }

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