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

        $this->parent = $this->load("frontend/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_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", "content"));

        // 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((isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 10, $this->source); })()), "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((isset($context["ministeres"]) || array_key_exists("ministeres", $context) ? $context["ministeres"] : (function () { throw new RuntimeError('Variable "ministeres" does not exist.', 35, $this->source); })()));
        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((isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 50, $this->source); })()), "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((isset($context["communes"]) || array_key_exists("communes", $context) ? $context["communes"] : (function () { throw new RuntimeError('Variable "communes" does not exist.', 69, $this->source); })()));
        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>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 83
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_js(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", "js"));

        // 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>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 105
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_css(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", "css"));

        // 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 "\">
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        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 (  256 => 106,  246 => 105,  236 => 102,  232 => 101,  211 => 84,  201 => 83,  189 => 77,  179 => 73,  174 => 71,  171 => 70,  167 => 69,  149 => 54,  142 => 50,  133 => 43,  123 => 39,  118 => 37,  115 => 36,  111 => 35,  105 => 32,  84 => 14,  77 => 10,  69 => 4,  59 => 3,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends 'frontend/layout.html.twig' %}

{% block content %}
<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 {{year}}
\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=\"{{ path('all_data_indicateurs') }}\">
\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=\"{{ path('app_export_indicateurs_ministere', { 'id': 0 }) }}\">Exporter</a>   
                    </td>
                </tr>
            {% for ministere in ministeres %}
                <tr>
                    <td>{{ ministere.name}}</td>
                    <td>
                        <a  class=\"btn btn-sm btn-secondary\" href=\"{{ path('app_export_indicateurs_ministere', { 'id': ministere.id }) }}\">Exporter</a>    
                    </td>
                </tr>
            {% endfor %}
            </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 {{year}}
\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=\"{{ path('all_data_communes') }}\">
\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>
            {% for commune in communes %}
                <tr>
                    <td>{{ commune.name}}</td>
                    <td>
                        <a  class=\"btn btn-sm btn-secondary\" href=\"{{ path('export_commune', { 'id': commune.id }) }}\">Exporter</a>   
                    </td>
                </tr>
            {% endfor %}
            </tbody>
            </table>

</div>
{% endblock %}

{% block js %}
    <script src=\"{{ asset('plugins/jquery/jquery.min.js') }}\"></script>
    <script>
        \$(function () {
            \$(\"#documentTable\").DataTable({
                \"pageLength\": 15
            });
        });
    </script>

\t<script>
        \$(function () {
            \$(\"#documentTable2\").DataTable({
                \"pageLength\": 15
            });
        });
    </script>

    <script src=\"{{ asset('plugins/datatables/jquery.dataTables.js') }}\"></script>
    <script src=\"{{ asset('plugins/datatables-bs4/js/dataTables.bootstrap4.js') }}\"></script>
{% endblock %}

{% block css %}
    <link rel=\"stylesheet\" href=\"{{ asset('plugins/datatables-bs4/css/dataTables.bootstrap4.css') }}\">
{% endblock %}", "frontend/download.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/frontend/download.html.twig");
    }
}
