<?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/ministeres.html.twig */
class __TwigTemplate_ca5d69430f5fbf566d034ce96876128d 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'],
        ];
    }

    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/ministeres.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 "\t<div class=\"container single-template\">
\t\t<div class=\"page-header\">
\t\t\t<h1 class=\"page-title\">
\t\t\t\tLes ministères
\t\t\t</h1>
\t\t</div>



\t<section id=\"faq\" class=\"faq\">
      <div class=\"container aos-init aos-animate\" data-aos=\"fade-up\">

        <ul class=\"faq-list accordion aos-init aos-animate\" data-aos=\"fade-up\">
          ";
        // line 17
        $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.', 17, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["ministere"]) {
            // line 18
            yield "          <li>
            <a data-bs-toggle=\"collapse\" data-bs-target=\"#faq";
            // line 19
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ministere"], "id", [], "any", false, false, false, 19), "html", null, true);
            yield "\" class=\"collapsed\" aria-expanded=\"false\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ministere"], "name", [], "any", false, false, false, 19), "html", null, true);
            yield " <i class=\"bx bx-chevron-down icon-show\"></i><i class=\"bx bx-x icon-close\"></i></a>
            ";
            // line 20
            if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["ministere"], "indicators", [], "any", false, false, false, 20)) > 0)) {
                // line 21
                yield "\t\t\t<div id=\"faq";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ministere"], "id", [], "any", false, false, false, 21), "html", null, true);
                yield "\" class=\"collapse\" data-bs-parent=\".faq-list\">
              <p style=\"margin-left: 20px; color:red; margin-bouttom: 10px;\">
\t\t\t  \t\tLes indicateurs que le ministère renseigne
              </p>
\t\t\t  <ul style=\"list-style-type: none;\">
\t\t\t  ";
                // line 26
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["ministere"], "indicators", [], "any", false, false, false, 26));
                foreach ($context['_seq'] as $context["_key"] => $context["indicateur"]) {
                    // line 27
                    yield "\t\t\t\t\t\t<li style=\"margin-bottom: 10px; padding-bottom: 0px;\">

\t\t\t\t\t\t\t<a href=\"";
                    // line 29
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("indicateur", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["indicateur"], "id", [], "any", false, false, false, 29)]), "html", null, true);
                    yield "\">
\t\t\t\t\t\t\t\t<svg class=\"icon icon-chevron-right\" fill=\"currentColor\">
\t\t\t\t\t\t\t\t\t<use xlink:href=\"";
                    // line 31
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/icons/icons-3.7.svg"), "html", null, true);
                    yield "#chevron-right\"></use>
\t\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t\t";
                    // line 33
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicateur"], "code", [], "any", false, false, false, 33), "html", null, true);
                    yield "
\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t";
                    // line 35
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicateur"], "name", [], "any", false, false, false, 35), "html", null, true);
                    yield "
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_key'], $context['indicateur'], $context['_parent']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 39
                yield "\t\t\t\t</ul>
\t\t\t\t\t";
                // line 40
                if (((CoreExtension::getAttribute($this->env, $this->source, $context["ministere"], "code", [], "any", false, false, false, 40) == "MEF") && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["indicatorsinstad"]) || array_key_exists("indicatorsinstad", $context) ? $context["indicatorsinstad"] : (function () { throw new RuntimeError('Variable "indicatorsinstad" does not exist.', 40, $this->source); })())) > 0))) {
                    // line 41
                    yield "\t\t\t\t\t<p style=\"margin-left: 20px; color:red; margin-bouttom: 10px;\">
\t\t\t  \t\t\tLes indicateurs renseignés par l'Institut National de la Statistique et de la Démographie (INSTaD)
\t\t\t\t\t</p>
\t\t\t\t\t<ul style=\"list-style-type: none;\">
\t\t\t\t\t";
                    // line 45
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable((isset($context["indicatorsinstad"]) || array_key_exists("indicatorsinstad", $context) ? $context["indicatorsinstad"] : (function () { throw new RuntimeError('Variable "indicatorsinstad" does not exist.', 45, $this->source); })()));
                    foreach ($context['_seq'] as $context["_key"] => $context["indicateur"]) {
                        // line 46
                        yield "\t\t\t\t\t\t\t\t<li style=\"margin-bottom: 10px; padding-bottom: 0px;\">

\t\t\t\t\t\t\t\t\t<a href=\"";
                        // line 48
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("indicateur", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["indicateur"], "id", [], "any", false, false, false, 48)]), "html", null, true);
                        yield "\">
\t\t\t\t\t\t\t\t\t\t<svg class=\"icon icon-chevron-right\" fill=\"currentColor\">
\t\t\t\t\t\t\t\t\t\t\t<use xlink:href=\"";
                        // line 50
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/icons/icons-3.7.svg"), "html", null, true);
                        yield "#chevron-right\"></use>
\t\t\t\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t\t\t\t";
                        // line 52
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicateur"], "code", [], "any", false, false, false, 52), "html", null, true);
                        yield "
\t\t\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t\t\t";
                        // line 54
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicateur"], "name", [], "any", false, false, false, 54), "html", null, true);
                        yield "
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_key'], $context['indicateur'], $context['_parent']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 58
                    yield "\t\t\t\t\t\t</ul>
\t\t\t\t\t";
                }
                // line 60
                yield "
            </div>
\t\t\t";
            } else {
                // line 63
                yield "\t\t\t\t<div id=\"faq";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ministere"], "id", [], "any", false, false, false, 63), "html", null, true);
                yield "\" class=\"collapse\" data-bs-parent=\".faq-list\">
\t\t\t\t\t<p style=\"margin-left: 20px;\">
\t\t\t\t\t\t\tCe ministère ne renseigne directement aucun indicateur.
\t\t\t\t\t</p>
\t\t\t\t</div>
\t\t\t";
            }
            // line 69
            yield "          </li>
          ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['ministere'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 71
        yield "        </ul>

      </div>
    </section>
\t</div>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  209 => 71,  202 => 69,  192 => 63,  187 => 60,  183 => 58,  173 => 54,  168 => 52,  163 => 50,  158 => 48,  154 => 46,  150 => 45,  144 => 41,  142 => 40,  139 => 39,  129 => 35,  124 => 33,  119 => 31,  114 => 29,  110 => 27,  106 => 26,  97 => 21,  95 => 20,  89 => 19,  86 => 18,  82 => 17,  67 => 4,  57 => 3,  40 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends 'frontend/layout.html.twig' %}

{% block content %}
\t<div class=\"container single-template\">
\t\t<div class=\"page-header\">
\t\t\t<h1 class=\"page-title\">
\t\t\t\tLes ministères
\t\t\t</h1>
\t\t</div>



\t<section id=\"faq\" class=\"faq\">
      <div class=\"container aos-init aos-animate\" data-aos=\"fade-up\">

        <ul class=\"faq-list accordion aos-init aos-animate\" data-aos=\"fade-up\">
          {% for ministere in ministeres %}
          <li>
            <a data-bs-toggle=\"collapse\" data-bs-target=\"#faq{{ministere.id}}\" class=\"collapsed\" aria-expanded=\"false\">{{ministere.name}} <i class=\"bx bx-chevron-down icon-show\"></i><i class=\"bx bx-x icon-close\"></i></a>
            {% if ministere.indicators | length  > 0 %}
\t\t\t<div id=\"faq{{ministere.id}}\" class=\"collapse\" data-bs-parent=\".faq-list\">
              <p style=\"margin-left: 20px; color:red; margin-bouttom: 10px;\">
\t\t\t  \t\tLes indicateurs que le ministère renseigne
              </p>
\t\t\t  <ul style=\"list-style-type: none;\">
\t\t\t  {% for indicateur in ministere.indicators %}
\t\t\t\t\t\t<li style=\"margin-bottom: 10px; padding-bottom: 0px;\">

\t\t\t\t\t\t\t<a href=\"{{ path('indicateur', { 'id': indicateur.id }) }}\">
\t\t\t\t\t\t\t\t<svg class=\"icon icon-chevron-right\" fill=\"currentColor\">
\t\t\t\t\t\t\t\t\t<use xlink:href=\"{{asset('frontend/icons/icons-3.7.svg')}}#chevron-right\"></use>
\t\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t\t{{ indicateur.code }}
\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t{{ indicateur.name }}
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t{% endfor %}
\t\t\t\t</ul>
\t\t\t\t\t{% if ministere.code=='MEF' and indicatorsinstad | length  > 0 %}
\t\t\t\t\t<p style=\"margin-left: 20px; color:red; margin-bouttom: 10px;\">
\t\t\t  \t\t\tLes indicateurs renseignés par l'Institut National de la Statistique et de la Démographie (INSTaD)
\t\t\t\t\t</p>
\t\t\t\t\t<ul style=\"list-style-type: none;\">
\t\t\t\t\t{% for indicateur in indicatorsinstad %}
\t\t\t\t\t\t\t\t<li style=\"margin-bottom: 10px; padding-bottom: 0px;\">

\t\t\t\t\t\t\t\t\t<a href=\"{{ path('indicateur', { 'id': indicateur.id }) }}\">
\t\t\t\t\t\t\t\t\t\t<svg class=\"icon icon-chevron-right\" fill=\"currentColor\">
\t\t\t\t\t\t\t\t\t\t\t<use xlink:href=\"{{asset('frontend/icons/icons-3.7.svg')}}#chevron-right\"></use>
\t\t\t\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t\t\t\t{{ indicateur.code }}
\t\t\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t\t\t{{ indicateur.name }}
\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t</ul>
\t\t\t\t\t{% endif %}

            </div>
\t\t\t{% else %}
\t\t\t\t<div id=\"faq{{ministere.id}}\" class=\"collapse\" data-bs-parent=\".faq-list\">
\t\t\t\t\t<p style=\"margin-left: 20px;\">
\t\t\t\t\t\t\tCe ministère ne renseigne directement aucun indicateur.
\t\t\t\t\t</p>
\t\t\t\t</div>
\t\t\t{% endif %}
          </li>
          {% endfor %}
        </ul>

      </div>
    </section>
\t</div>
{% endblock %}
", "frontend/ministeres.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/frontend/ministeres.html.twig");
    }
}
