<?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/rapports.html.twig */
class __TwigTemplate_980ec2ae9b577b1dec13238dddb7265e 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/rapports.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\">
    <div class=\"page-header\">
\t\t\t<h1 class=\"page-title\">
\t\t\t\tTélécharger les rapports nationaux sur les ODD
\t\t\t</h1>
\t\t</div>


    <table id=\"documentTable\" class=\"table table-striped\">
            <thead>
                <th>Année</th>
                <th>";
        // line 15
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.title", [], "messages");
        yield "</th>
                <th>Fichier</th>
            </thead>
            <tbody>
            ";
        // line 19
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["rapports"]) || array_key_exists("rapports", $context) ? $context["rapports"] : (function () { throw new RuntimeError('Variable "rapports" does not exist.', 19, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["rapport"]) {
            // line 20
            yield "                ";
            if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["rapport"], "rapportSuivi", [], "any", false, false, false, 20)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 21
                yield "                <tr>
                    <td><div class=\"text-center\">";
                // line 22
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["rapport"], "name", [], "any", false, false, false, 22), "html", null, true);
                yield "</div></td>
                    <td>Rapport du suivi de la mise en oeuvre des ODD</td>
                    <td>
                        <a href=\"";
                // line 25
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("upload/rapports/"), "html", null, true);
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["rapport"], "rapportSuivi", [], "any", false, false, false, 25), "html", null, true);
                yield "\">
                            <img src=\"";
                // line 26
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("dist/img/icon/pdf.png"), "html", null, true);
                yield "\" height=\"32px\">
                        </a>    
                    </td>
                </tr>
                ";
            }
            // line 31
            yield "                ";
            if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["rapport"], "rapportIndicateurs", [], "any", false, false, false, 31)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 32
                yield "                <tr>
                    <td><div class=\"text-center\">";
                // line 33
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["rapport"], "name", [], "any", false, false, false, 33), "html", null, true);
                yield "</div></td>
                     <td>Rapport national des indicateurs des ODD</td>
                    <td>
                        <a href=\"";
                // line 36
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("upload/rapports/"), "html", null, true);
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["rapport"], "rapportIndicateurs", [], "any", false, false, false, 36), "html", null, true);
                yield "\">
                            <img src=\"";
                // line 37
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("dist/img/icon/pdf.png"), "html", null, true);
                yield "\" height=\"32px\">
                        </a> 
                    </td>
                </tr>
                ";
            }
            // line 42
            yield "            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['rapport'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 43
        yield "            </tbody>
            </table>
</div>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 48
    /**
     * @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 49
        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\": 25
            });
        });
    </script>

    <script src=\"";
        // line 58
        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 59
        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 62
    /**
     * @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 63
        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/rapports.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  207 => 63,  197 => 62,  187 => 59,  183 => 58,  170 => 49,  160 => 48,  149 => 43,  143 => 42,  135 => 37,  130 => 36,  124 => 33,  121 => 32,  118 => 31,  110 => 26,  105 => 25,  99 => 22,  96 => 21,  93 => 20,  89 => 19,  82 => 15,  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\">
    <div class=\"page-header\">
\t\t\t<h1 class=\"page-title\">
\t\t\t\tTélécharger les rapports nationaux sur les ODD
\t\t\t</h1>
\t\t</div>


    <table id=\"documentTable\" class=\"table table-striped\">
            <thead>
                <th>Année</th>
                <th>{% trans %}basics.title{% endtrans %}</th>
                <th>Fichier</th>
            </thead>
            <tbody>
            {% for rapport in rapports %}
                {% if rapport.rapportSuivi %}
                <tr>
                    <td><div class=\"text-center\">{{ rapport.name}}</div></td>
                    <td>Rapport du suivi de la mise en oeuvre des ODD</td>
                    <td>
                        <a href=\"{{asset('upload/rapports/')}}{{rapport.rapportSuivi}}\">
                            <img src=\"{{ asset('dist/img/icon/pdf.png') }}\" height=\"32px\">
                        </a>    
                    </td>
                </tr>
                {% endif %}
                {% if rapport.rapportIndicateurs %}
                <tr>
                    <td><div class=\"text-center\">{{ rapport.name }}</div></td>
                     <td>Rapport national des indicateurs des ODD</td>
                    <td>
                        <a href=\"{{asset('upload/rapports/')}}{{rapport.rapportIndicateurs}}\">
                            <img src=\"{{ asset('dist/img/icon/pdf.png') }}\" height=\"32px\">
                        </a> 
                    </td>
                </tr>
                {% endif %}
            {% endfor %}
            </tbody>
            </table>
</div>
{% endblock %}

{% block js %}
    <script src=\"{{ asset('plugins/jquery/jquery.min.js') }}\"></script>
    <script>
        \$(function () {
            \$(\"#documentTable\").DataTable({
                \"pageLength\": 25
            });
        });
    </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/rapports.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/frontend/rapports.html.twig");
    }
}
