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

/* communes/annoter.html.twig */
class __TwigTemplate_e40168b98ac17f7addab417fc85fa681 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 = [
            'page_title' => [$this, 'block_page_title'],
            'page_content' => [$this, 'block_page_content'],
            'stylesheets' => [$this, 'block_stylesheets'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 7
        return $this->load(($context["extendedTemplate"] ?? null), 7);
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DDD")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 2
            $context["extendedTemplate"] = "@AdminLTE/layout/ddd-layout.html.twig";
        } else {
            // line 4
            $context["extendedTemplate"] = "@AdminLTE/layout/communeodd-layout.html.twig";
        }
        // line 7
        yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 9
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield "Données - ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["commune"] ?? null), "name", [], "any", false, false, false, 9), "html", null, true);
        yield from [];
    }

    // line 12
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 13
        yield "  ";
        if ((($context["structure"] ?? null) && CoreExtension::getAttribute($this->env, $this->source, ($context["structure"] ?? null), "dpp2", [], "any", false, false, false, 13))) {
            // line 14
            yield "    <div class=\"text-right mb-3\">
                <a href=\"";
            // line 15
            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"] ?? null), "id", [], "any", false, false, false, 15)]), "html", null, true);
            yield "\" class=\"btn btn-primary text-right\">
                    Télécharger les données brutes
                </a>
            </div>
  ";
        }
        // line 20
        yield "
<div class=\"container-fluid\">
  <section>

    ";
        // line 24
        yield from $this->load("communes/annoter.html.twig", 24, 1401263883)->unwrap()->yield($context);
        // line 56
        yield " 


        ";
        // line 59
        yield from $this->load("communes/annoter.html.twig", 59, 1333172876)->unwrap()->yield($context);
        // line 79
        yield " 
   

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

    // line 87
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_stylesheets(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 88
        yield "    <link rel=\"stylesheet\" href=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/dashboard/css/mdb.min.css"), "html", null, true);
        yield "\">
    <link rel=\"stylesheet\" href=\"";
        // line 89
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/dashboard/css/style.css"), "html", null, true);
        yield "\">
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  132 => 89,  127 => 88,  120 => 87,  109 => 79,  107 => 59,  102 => 56,  100 => 24,  94 => 20,  86 => 15,  83 => 14,  80 => 13,  73 => 12,  61 => 9,  57 => 7,  54 => 4,  51 => 2,  49 => 1,  42 => 7,);
    }

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


/* communes/annoter.html.twig */
class __TwigTemplate_e40168b98ac17f7addab417fc85fa681___1401263883 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 = [
            'box_body' => [$this, 'block_box_body'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 24
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 24);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 25
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 26
        yield "                <table id=\"suiviIndicateurTable\" class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-5\">Cible</div>
                            <div class=\"col-5\">Indicateur</div>
                            <div class=\"col-2\">
                                ";
        // line 33
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["year"] ?? null), "html", null, true);
        yield "
                            </div>
                        </div>
                    </th>
                </thead>

                ";
        // line 39
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["indicators"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["indicator"]) {
            // line 40
            yield "                <tr>
                    <td>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-5\">";
            // line 43
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "target", [], "any", false, false, false, 43), "html", null, true);
            yield "</div>
                            <div class=\"col-5\">";
            // line 44
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["indicator"], "html", null, true);
            yield "</div>
                            <div class=\"col-2\">
                                ";
            // line 46
            if ((($context["structure"] ?? null) && CoreExtension::getAttribute($this->env, $this->source, ($context["structure"] ?? null), "dpp2", [], "any", false, false, false, 46))) {
                // line 47
                yield "                                  <div class=\"col-2 float-left text-center\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v0 = ($context["suivis"] ?? null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0[CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 47)] ?? null) : null), "html", null, true);
                yield " ";
                yield ((((($_v1 = ($context["suivis"] ?? null)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1[CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 47)] ?? null) : null) == "-")) ? ("") : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "unity", [], "any", false, false, false, 47), "html", null, true)));
                yield "</div>
                                ";
            }
            // line 49
            yield "                            </div>
                        </div>
                    </td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['indicator'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 54
        yield "                </table>
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  266 => 54,  256 => 49,  248 => 47,  246 => 46,  241 => 44,  237 => 43,  232 => 40,  228 => 39,  219 => 33,  210 => 26,  203 => 25,  192 => 24,  132 => 89,  127 => 88,  120 => 87,  109 => 79,  107 => 59,  102 => 56,  100 => 24,  94 => 20,  86 => 15,  83 => 14,  80 => 13,  73 => 12,  61 => 9,  57 => 7,  54 => 4,  51 => 2,  49 => 1,  42 => 7,);
    }

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


/* communes/annoter.html.twig */
class __TwigTemplate_e40168b98ac17f7addab417fc85fa681___1333172876 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 = [
            'box_title' => [$this, 'block_box_title'],
            'box_body' => [$this, 'block_box_body'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 59
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 59);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 60
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 61
        yield "                <h3>Avis sur les données de la commune</h3>
            ";
        yield from [];
    }

    // line 64
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 65
        yield "
              ";
        // line 66
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
        yield "
                  ";
        // line 67
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "avis", [], "any", false, false, false, 67), 'row');
        yield "
                  ";
        // line 68
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "observation", [], "any", false, false, false, 68), 'row');
        yield "

                  <div class=\"form-group row\">
                    <div class=\"col-sm-2\"><a href=\"";
        // line 71
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_departement_dashboard");
        yield "\" class=\"btn btn-block btn-default\">Fermer</a></div>
                    <div class=\"col-sm-offset-2 col-sm-10\">
                        <button type=\"submit\" ";
        // line 73
        yield (((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("disabled") : (""));
        yield " class=\"btn btn-block btn-primary\">";
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.save", [], "messages");
        yield "</button>
                    </div>

              ";
        // line 76
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "

            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  387 => 76,  379 => 73,  374 => 71,  368 => 68,  364 => 67,  360 => 66,  357 => 65,  350 => 64,  344 => 61,  337 => 60,  326 => 59,  266 => 54,  256 => 49,  248 => 47,  246 => 46,  241 => 44,  237 => 43,  232 => 40,  228 => 39,  219 => 33,  210 => 26,  203 => 25,  192 => 24,  132 => 89,  127 => 88,  120 => 87,  109 => 79,  107 => 59,  102 => 56,  100 => 24,  94 => 20,  86 => 15,  83 => 14,  80 => 13,  73 => 12,  61 => 9,  57 => 7,  54 => 4,  51 => 2,  49 => 1,  42 => 7,);
    }

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