<?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/normes.html.twig */
class __TwigTemplate_f1816e0b1cb0acab8012978cbeccdf3d 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 = [
            'css' => [$this, 'block_css'],
            '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/normes.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_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 4
        yield "\t<style>
\t\t.active {
    \t\tbackground: #FFFFFF;
\t\t}
\t\t.active a {
\t\t\tcolor: #023b6d !important;
\t\t}
\t</style>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 14
    /**
     * @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 15
        yield "<div class=\"container single-template\">
    <div class=\"page-header\">
\t\t<h1 class=\"page-title\">
\t\t\tLes normes d'action
\t\t</h1>
\t</div>

    <div class=\"container row\" style=\"margin-top: 20px;\">

\t<!-- Nav tabs -->
\t\t<ul class=\"nav nav-pills nav-fill\">
\t\t\t";
        // line 26
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["departements"]) || array_key_exists("departements", $context) ? $context["departements"] : (function () { throw new RuntimeError('Variable "departements" does not exist.', 26, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["departement"]) {
            // line 27
            yield "\t\t\t\t<li class=\"nav-item\">
\t\t\t\t\t<a class=\"nav-link ";
            // line 28
            yield (((CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "id", [], "any", false, false, false, 28) == 1)) ? ("active") : (""));
            yield "\" data-bs-toggle=\"tab\" href=\"#";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "name", [], "any", false, false, false, 28), "html", null, true);
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "name", [], "any", false, false, false, 28), "html", null, true);
            yield "</a>
\t\t\t\t</li>
\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['departement'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 31
        yield "\t\t</ul>

\t\t<!-- Tab panes -->
\t\t<div class=\"tab-content\">
\t\t\t";
        // line 35
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["departements"]) || array_key_exists("departements", $context) ? $context["departements"] : (function () { throw new RuntimeError('Variable "departements" does not exist.', 35, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["departement"]) {
            // line 36
            yield "\t\t\t\t<div class=\"tab-pane container ";
            yield (((CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "id", [], "any", false, false, false, 36) == 1)) ? ("active") : (""));
            yield "\" id=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["departement"], "name", [], "any", false, false, false, 36), "html", null, true);
            yield "\">
\t\t\t\t
\t\t\t\t\t<section id=\"faq\" class=\"faq\" style=\"margin-top : 30px;\">
\t\t\t\t\t\t<div class=\"container aos-init aos-animate\" data-aos=\"fade-up\">

\t\t\t\t\t\t\t<ul class=\"faq-list accordion aos-init aos-animate\" data-aos=\"fade-up\">
\t\t\t\t\t\t\t";
            // line 42
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["settingsManager"]) || array_key_exists("settingsManager", $context) ? $context["settingsManager"] : (function () { throw new RuntimeError('Variable "settingsManager" does not exist.', 42, $this->source); })()), "getCommunesByDepartement", [$context["departement"]], "method", false, false, false, 42));
            foreach ($context['_seq'] as $context["_key"] => $context["commune"]) {
                // line 43
                yield "\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t<a data-bs-toggle=\"collapse\" data-bs-target=\"#commune";
                // line 44
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "id", [], "any", false, false, false, 44), "html", null, true);
                yield "\" class=\"collapsed\" aria-expanded=\"false\">
\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<use xlink:href=\"";
                // line 46
                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</svg>
\t\t\t\t\t\t\t\t\t";
                // line 48
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "name", [], "any", false, false, false, 48), "html", null, true);
                yield " 
\t\t\t\t\t\t\t\t\t<i class=\"bx bx-chevron-down icon-show\"></i><i class=\"bx bx-x icon-close\"></i>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<div id=\"commune";
                // line 52
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "id", [], "any", false, false, false, 52), "html", null, true);
                yield "\" class=\"collapse\" data-bs-parent=\".faq-list\">
\t\t\t\t\t\t\t\t<ul style=\"list-style-type: none;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
                // line 54
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["commune"], "normeActionCommunes", [], "any", false, false, false, 54));
                foreach ($context['_seq'] as $context["_key"] => $context["norme"]) {
                    // line 55
                    yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li style=\"margin-top: 10px; margin-bottom: -10px;\">

\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\">
\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t<use xlink:href=\"";
                    // line 59
                    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\t\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tNorme : ";
                    // line 61
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["norme"], "code", [], "any", false, false, false, 61), "html", null, true);
                    yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
                    // line 63
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["norme"], "name", [], "any", false, false, false, 63), "html", null, true);
                    yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_key'], $context['norme'], $context['_parent']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 67
                yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\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['commune'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 72
            yield "\t\t\t\t\t\t\t</ul>

\t\t\t\t\t\t</div>
\t\t\t\t\t\t</section>
\t\t\t\t
\t\t\t\t</div>
\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['departement'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 79
        yield "            
    </div>


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

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  230 => 79,  218 => 72,  208 => 67,  198 => 63,  193 => 61,  188 => 59,  182 => 55,  178 => 54,  173 => 52,  166 => 48,  161 => 46,  156 => 44,  153 => 43,  149 => 42,  137 => 36,  133 => 35,  127 => 31,  114 => 28,  111 => 27,  107 => 26,  94 => 15,  84 => 14,  68 => 4,  58 => 3,  41 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends 'frontend/layout.html.twig' %}

{% block css %}
\t<style>
\t\t.active {
    \t\tbackground: #FFFFFF;
\t\t}
\t\t.active a {
\t\t\tcolor: #023b6d !important;
\t\t}
\t</style>
{% endblock %}

{% block content %}
<div class=\"container single-template\">
    <div class=\"page-header\">
\t\t<h1 class=\"page-title\">
\t\t\tLes normes d'action
\t\t</h1>
\t</div>

    <div class=\"container row\" style=\"margin-top: 20px;\">

\t<!-- Nav tabs -->
\t\t<ul class=\"nav nav-pills nav-fill\">
\t\t\t{% for departement in departements %}
\t\t\t\t<li class=\"nav-item\">
\t\t\t\t\t<a class=\"nav-link {{departement.id==1 ? 'active' : ''}}\" data-bs-toggle=\"tab\" href=\"#{{departement.name}}\">{{departement.name}}</a>
\t\t\t\t</li>
\t\t\t{% endfor %}
\t\t</ul>

\t\t<!-- Tab panes -->
\t\t<div class=\"tab-content\">
\t\t\t{% for departement in departements %}
\t\t\t\t<div class=\"tab-pane container {{departement.id==1 ? 'active' : ''}}\" id=\"{{departement.name}}\">
\t\t\t\t
\t\t\t\t\t<section id=\"faq\" class=\"faq\" style=\"margin-top : 30px;\">
\t\t\t\t\t\t<div class=\"container aos-init aos-animate\" data-aos=\"fade-up\">

\t\t\t\t\t\t\t<ul class=\"faq-list accordion aos-init aos-animate\" data-aos=\"fade-up\">
\t\t\t\t\t\t\t{% for commune in settingsManager.getCommunesByDepartement(departement) %}
\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t<a data-bs-toggle=\"collapse\" data-bs-target=\"#commune{{commune.id}}\" class=\"collapsed\" aria-expanded=\"false\">
\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<use xlink:href=\"{{asset('frontend/icons/icons-3.7.svg')}}#chevron-right\"></use>
\t\t\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t\t\t{{commune.name}} 
\t\t\t\t\t\t\t\t\t<i class=\"bx bx-chevron-down icon-show\"></i><i class=\"bx bx-x icon-close\"></i>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<div id=\"commune{{commune.id}}\" class=\"collapse\" data-bs-parent=\".faq-list\">
\t\t\t\t\t\t\t\t<ul style=\"list-style-type: none;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for norme in commune.normeActionCommunes %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li style=\"margin-top: 10px; margin-bottom: -10px;\">

\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\">
\t\t\t\t\t\t\t\t\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\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\t\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tNorme : {{ norme.code }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ norme.name }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t</ul>

\t\t\t\t\t\t</div>
\t\t\t\t\t\t</section>
\t\t\t\t
\t\t\t\t</div>
\t\t\t{% endfor %}
            
    </div>


</div>
{% endblock %}", "frontend/normes.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/frontend/normes.html.twig");
    }
}
