<?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/suivi.html.twig */
class __TwigTemplate_cd6c19352df65fca02b59b0d14a1b67e 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'],
            'javascripts' => [$this, 'block_javascripts'],
            'stylesheets' => [$this, 'block_stylesheets'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "@AdminLTE/layout/communeodd-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", "communes/suivi.html.twig"));

        $this->parent = $this->load("@AdminLTE/layout/communeodd-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_page_title(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", "page_title"));

        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("suivi.indicateur.title", [], "messages");
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 6
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_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", "page_content"));

        yield "     
        ";
        // line 7
        if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["indicators"]) || array_key_exists("indicators", $context) ? $context["indicators"] : (function () { throw new RuntimeError('Variable "indicators" does not exist.', 7, $this->source); })())) > 0)) {
            // line 8
            yield "            ";
            if ((($tmp = (isset($context["etat"]) || array_key_exists("etat", $context) ? $context["etat"] : (function () { throw new RuntimeError('Variable "etat" does not exist.', 8, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 9
                yield "                <div class=\"row\">
                    <div class=\"col-sm-12\">
                        <div class=\"text-right\">
                            <button type=\"button\" class=\"mb-2 mr-2 btn-shadow  btn btn-danger text-right ";
                // line 12
                yield (((($tmp = (isset($context["etat"]) || array_key_exists("etat", $context) ? $context["etat"] : (function () { throw new RuntimeError('Variable "etat" does not exist.', 12, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("") : ("disabled"));
                yield "\" data-toggle=\"modal\" data-target=\"#valideModal\">
                                <i class=\"fa fa-check\"></i> ";
                // line 13
                yield (((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FOCAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("Soumettre") : ("Valider"));
                yield "
                            </button>
                        </div>
                    </div>
                </div>
            ";
            } else {
                // line 19
                yield "                ";
                if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FOCAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                    // line 20
                    yield "                    ";
                    if (((isset($context["structureyear"]) || array_key_exists("structureyear", $context) ? $context["structureyear"] : (function () { throw new RuntimeError('Variable "structureyear" does not exist.', 20, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["structureyear"]) || array_key_exists("structureyear", $context) ? $context["structureyear"] : (function () { throw new RuntimeError('Variable "structureyear" does not exist.', 20, $this->source); })()), "focal2", [], "any", false, false, false, 20))) {
                        // line 21
                        yield "                        <div class=\"alert alert-success\">
                            Bravo!!!! Vous avez déjà soumis vos données. En cas de modification, veuillez contacter votre SE.
                        </div>
                    ";
                    } else {
                        // line 24
                        yield " 
                        <div class=\"alert alert-danger\">
                            Vous ne pouvez plus soumettre les données de votre commune. Veuillez le SE de votre commune.
                        </div>
                    ";
                    }
                    // line 29
                    yield "                ";
                }
                // line 30
                yield "                ";
                if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DPP")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                    // line 31
                    yield "                    ";
                    if (((isset($context["structureyear"]) || array_key_exists("structureyear", $context) ? $context["structureyear"] : (function () { throw new RuntimeError('Variable "structureyear" does not exist.', 31, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["structureyear"]) || array_key_exists("structureyear", $context) ? $context["structureyear"] : (function () { throw new RuntimeError('Variable "structureyear" does not exist.', 31, $this->source); })()), "dpp2", [], "any", false, false, false, 31))) {
                        // line 32
                        yield "                        <div class=\"alert alert-success\">
                            Bravo!!!! Vous avez déjà validé vos données. En cas de modification, veuillez contacter la DGCS-ODD.
                        </div>
                    ";
                    } else {
                        // line 35
                        yield " 
                        <div class=\"alert alert-danger\">
                            Vous ne pouvez pas valider les données de votre commune. Soit le point focal ne les a pas encore soumis. Veuillez lui demander de soummettre les données. Soit vous avez dépassé le délai accordé par la DGCS-ODD et dans ce cas, veuillez contacter la DGCS-ODD.
                        </div>
                    ";
                    }
                    // line 40
                    yield "                ";
                }
                // line 41
                yield "            ";
            }
            // line 42
            yield "        ";
            yield from $this->load("communes/suivi.html.twig", 42, "951450997")->unwrap()->yield($context);
            // line 89
            yield "  
        ";
        }
        // line 91
        yield "    
    ";
        // line 92
        if ((((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["indicators"]) || array_key_exists("indicators", $context) ? $context["indicators"] : (function () { throw new RuntimeError('Variable "indicators" does not exist.', 92, $this->source); })())) == 0) && (isset($context["goal"]) || array_key_exists("goal", $context) ? $context["goal"] : (function () { throw new RuntimeError('Variable "goal" does not exist.', 92, $this->source); })())) && (isset($context["entry"]) || array_key_exists("entry", $context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.', 92, $this->source); })()))) {
            // line 93
            yield "    <div class=\"alert alert-primary alert-dismissible fade show\" role=\"alert\">
       Vous n'êtes en charge d'aucun indicateur. Veuillez contacter la DGCS-ODD.
    </div>
    ";
        }
        // line 97
        yield "
<!-- Valide Modal -->
        <div class=\"modal fade\" id=\"valideModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myLargeModalLabel\" aria-hidden=\"true\">
            <div class=\"modal-dialog modal-lg\">
                <div class=\"modal-content\">
                    <div class=\"modal-header\">
                        <h5 class=\"modal-title h4\" id=\"myLargeModalLabel\">";
        // line 103
        yield (((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FOCAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("Soumision") : ("Validation"));
        yield " des données de ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 103, $this->source); })()), "session", [], "any", false, false, false, 103), "get", ["_year"], "method", false, false, false, 103), "html", null, true);
        yield "</h5>
                        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
                        <span aria-hidden=\"true\">&times;</span>
                        </button>
                    </div>
                    <form action=\"";
        // line 108
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_commune_validation");
        yield "\" method=\"post\" enctype=\"multipart/form-data\">
                    <div class=\"modal-body\">
                           Vous êtes sur le point de ";
        // line 110
        yield (((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FOCAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("soumettre") : ("valider"));
        yield " vos données. Vous ne pouvez plus les modifier.
                    </div>
                    <div class=\"modal-footer\">
                        <button type=\"button\" class=\"btn btn-primary\" data-dismiss=\"modal\">Annuler</button>
                        <button type=\"submit\" class=\"btn btn-success\">";
        // line 114
        yield (((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FOCAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("Soumettre") : ("Valider"));
        yield "</button>
                    </div>
                    </form>
                </div>
            </div>   
        </div>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

        // line 123
        yield "    <script src=\"";
        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 124
        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 128
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_stylesheets(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", "stylesheets"));

        // line 129
        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 "communes/suivi.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  258 => 129,  248 => 128,  237 => 124,  232 => 123,  222 => 122,  207 => 114,  200 => 110,  195 => 108,  185 => 103,  177 => 97,  171 => 93,  169 => 92,  166 => 91,  162 => 89,  159 => 42,  156 => 41,  153 => 40,  146 => 35,  140 => 32,  137 => 31,  134 => 30,  131 => 29,  124 => 24,  118 => 21,  115 => 20,  112 => 19,  103 => 13,  99 => 12,  94 => 9,  91 => 8,  89 => 7,  77 => 6,  60 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/communeodd-layout.html.twig' %}

{% block page_title %}{% trans %}suivi.indicateur.title{% endtrans %}{% endblock %}


{% block page_content %}     
        {% if indicators|length > 0 %}
            {% if(etat) %}
                <div class=\"row\">
                    <div class=\"col-sm-12\">
                        <div class=\"text-right\">
                            <button type=\"button\" class=\"mb-2 mr-2 btn-shadow  btn btn-danger text-right {{(etat) ? '' : 'disabled'}}\" data-toggle=\"modal\" data-target=\"#valideModal\">
                                <i class=\"fa fa-check\"></i> {{ is_granted('ROLE_FOCAL') ? 'Soumettre' : 'Valider' }}
                            </button>
                        </div>
                    </div>
                </div>
            {% else %}
                {% if is_granted('ROLE_FOCAL') %}
                    {% if(structureyear and structureyear.focal2) %}
                        <div class=\"alert alert-success\">
                            Bravo!!!! Vous avez déjà soumis vos données. En cas de modification, veuillez contacter votre SE.
                        </div>
                    {% else %} 
                        <div class=\"alert alert-danger\">
                            Vous ne pouvez plus soumettre les données de votre commune. Veuillez le SE de votre commune.
                        </div>
                    {% endif %}
                {% endif %}
                {% if is_granted('ROLE_DPP') %}
                    {% if(structureyear and structureyear.dpp2) %}
                        <div class=\"alert alert-success\">
                            Bravo!!!! Vous avez déjà validé vos données. En cas de modification, veuillez contacter la DGCS-ODD.
                        </div>
                    {% else %} 
                        <div class=\"alert alert-danger\">
                            Vous ne pouvez pas valider les données de votre commune. Soit le point focal ne les a pas encore soumis. Veuillez lui demander de soummettre les données. Soit vous avez dépassé le délai accordé par la DGCS-ODD et dans ce cas, veuillez contacter la DGCS-ODD.
                        </div>
                    {% endif %}
                {% endif %}
            {% endif %}
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"suiviIndicateurTable\" class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">Cible</div>
                            <div class=\"col-3\">Indicateur</div>
                            <div class=\"col-6\">
                                {% for i in 5..0 %}
                                <div class=\"col-2 float-left text-center\">{{ year - i }}</div>
                                {% endfor %}
                            </div>
                            
                            <div class=\"col-1 text-center\"></div>
                        </div>
                    </th>
                </thead>

                {% for indicator in indicators %}
                <tr>
                    <td>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">{{ indicator.target }}</div>
                            <div class=\"col-3\">{{ indicator }}</div>
                            <div class=\"col-6\">
                                {% for i in 5..0 %}
                                <div class=\"col-2 float-left text-center\">{{ suivis[indicator.id][year - i] }} {{suivis[indicator.id][year - i] ==\"-\" ? \"\" : indicator.unity}}</div>
                                {% endfor %}
                                
                                <div class=\"col-12 float-left\">
                                    <hr>
                                        <i>{{ suivis[indicator.id]['observation'] }}</i>
                                    <br>
                                        <i><b>Source : {{ suivis[indicator.id]['source'] }}</i></b> 
                                </div>
                            </div>
                            
                            <div class=\"col-1 text-center\">
                                <a href=\"{{ path('app_commune_indice_edit', { 'id': indicator.id}) }}\" class=\"btn btn-sm btn-secondary\">{% trans %}Modifier{% endtrans %}</a>
                            </div>
                        </div>
                    </td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}
        {% endembed %}  
        {% endif %}
    
    {% if indicators|length == 0 and goal and entry %}
    <div class=\"alert alert-primary alert-dismissible fade show\" role=\"alert\">
       Vous n'êtes en charge d'aucun indicateur. Veuillez contacter la DGCS-ODD.
    </div>
    {% endif %}

<!-- Valide Modal -->
        <div class=\"modal fade\" id=\"valideModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myLargeModalLabel\" aria-hidden=\"true\">
            <div class=\"modal-dialog modal-lg\">
                <div class=\"modal-content\">
                    <div class=\"modal-header\">
                        <h5 class=\"modal-title h4\" id=\"myLargeModalLabel\">{{ is_granted('ROLE_FOCAL') ? 'Soumision' : 'Validation'}} des données de {{app.session.get('_year')}}</h5>
                        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
                        <span aria-hidden=\"true\">&times;</span>
                        </button>
                    </div>
                    <form action=\"{{ path('app_commune_validation') }}\" method=\"post\" enctype=\"multipart/form-data\">
                    <div class=\"modal-body\">
                           Vous êtes sur le point de {{ is_granted('ROLE_FOCAL') ? 'soumettre' : 'valider' }} vos données. Vous ne pouvez plus les modifier.
                    </div>
                    <div class=\"modal-footer\">
                        <button type=\"button\" class=\"btn btn-primary\" data-dismiss=\"modal\">Annuler</button>
                        <button type=\"submit\" class=\"btn btn-success\">{{ is_granted('ROLE_FOCAL') ? 'Soumettre' : 'Valider' }}</button>
                    </div>
                    </form>
                </div>
            </div>   
        </div>
{% endblock %}

{% block javascripts %}
    <script src=\"{{ asset('plugins/datatables/jquery.dataTables.js') }}\"></script>
    <script src=\"{{ asset('plugins/datatables-bs4/js/dataTables.bootstrap4.js') }}\"></script>

{% endblock %}

{% block stylesheets %}
    <link rel=\"stylesheet\" href=\"{{ asset('plugins/datatables-bs4/css/dataTables.bootstrap4.css') }}\">
{% endblock %}", "communes/suivi.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/communes/suivi.html.twig");
    }
}


/* communes/suivi.html.twig */
class __TwigTemplate_cd6c19352df65fca02b59b0d14a1b67e___951450997 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 42
        return "@AdminLTE/Widgets/box-widget.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", "communes/suivi.html.twig"));

        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 42);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

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

        // line 44
        yield "                <table id=\"suiviIndicateurTable\" class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">Cible</div>
                            <div class=\"col-3\">Indicateur</div>
                            <div class=\"col-6\">
                                ";
        // line 51
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(range(5, 0));
        foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
            // line 52
            yield "                                <div class=\"col-2 float-left text-center\">";
            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.', 52, $this->source); })()) - $context["i"]), "html", null, true);
            yield "</div>
                                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 54
        yield "                            </div>
                            
                            <div class=\"col-1 text-center\"></div>
                        </div>
                    </th>
                </thead>

                ";
        // line 61
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["indicators"]) || array_key_exists("indicators", $context) ? $context["indicators"] : (function () { throw new RuntimeError('Variable "indicators" does not exist.', 61, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["indicator"]) {
            // line 62
            yield "                <tr>
                    <td>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">";
            // line 65
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "target", [], "any", false, false, false, 65), "html", null, true);
            yield "</div>
                            <div class=\"col-3\">";
            // line 66
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["indicator"], "html", null, true);
            yield "</div>
                            <div class=\"col-6\">
                                ";
            // line 68
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(range(5, 0));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 69
                yield "                                <div class=\"col-2 float-left text-center\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["suivis"]) || array_key_exists("suivis", $context) ? $context["suivis"] : (function () { throw new RuntimeError('Variable "suivis" does not exist.', 69, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 69), [], "array", false, false, false, 69), ((isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 69, $this->source); })()) - $context["i"]), [], "array", false, false, false, 69), "html", null, true);
                yield " ";
                yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["suivis"]) || array_key_exists("suivis", $context) ? $context["suivis"] : (function () { throw new RuntimeError('Variable "suivis" does not exist.', 69, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 69), [], "array", false, false, false, 69), ((isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 69, $this->source); })()) - $context["i"]), [], "array", false, false, false, 69) == "-")) ? ("") : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "unity", [], "any", false, false, false, 69), "html", null, true)));
                yield "</div>
                                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 71
            yield "                                
                                <div class=\"col-12 float-left\">
                                    <hr>
                                        <i>";
            // line 74
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["suivis"]) || array_key_exists("suivis", $context) ? $context["suivis"] : (function () { throw new RuntimeError('Variable "suivis" does not exist.', 74, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 74), [], "array", false, false, false, 74), "observation", [], "array", false, false, false, 74), "html", null, true);
            yield "</i>
                                    <br>
                                        <i><b>Source : ";
            // line 76
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["suivis"]) || array_key_exists("suivis", $context) ? $context["suivis"] : (function () { throw new RuntimeError('Variable "suivis" does not exist.', 76, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 76), [], "array", false, false, false, 76), "source", [], "array", false, false, false, 76), "html", null, true);
            yield "</i></b> 
                                </div>
                            </div>
                            
                            <div class=\"col-1 text-center\">
                                <a href=\"";
            // line 81
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_commune_indice_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 81)]), "html", null, true);
            yield "\" class=\"btn btn-sm btn-secondary\">";
            yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Modifier", [], "messages");
            yield "</a>
                            </div>
                        </div>
                    </td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['indicator'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 87
        yield "                </table>
            ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  574 => 87,  560 => 81,  552 => 76,  547 => 74,  542 => 71,  531 => 69,  527 => 68,  522 => 66,  518 => 65,  513 => 62,  509 => 61,  500 => 54,  491 => 52,  487 => 51,  478 => 44,  468 => 43,  451 => 42,  258 => 129,  248 => 128,  237 => 124,  232 => 123,  222 => 122,  207 => 114,  200 => 110,  195 => 108,  185 => 103,  177 => 97,  171 => 93,  169 => 92,  166 => 91,  162 => 89,  159 => 42,  156 => 41,  153 => 40,  146 => 35,  140 => 32,  137 => 31,  134 => 30,  131 => 29,  124 => 24,  118 => 21,  115 => 20,  112 => 19,  103 => 13,  99 => 12,  94 => 9,  91 => 8,  89 => 7,  77 => 6,  60 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/communeodd-layout.html.twig' %}

{% block page_title %}{% trans %}suivi.indicateur.title{% endtrans %}{% endblock %}


{% block page_content %}     
        {% if indicators|length > 0 %}
            {% if(etat) %}
                <div class=\"row\">
                    <div class=\"col-sm-12\">
                        <div class=\"text-right\">
                            <button type=\"button\" class=\"mb-2 mr-2 btn-shadow  btn btn-danger text-right {{(etat) ? '' : 'disabled'}}\" data-toggle=\"modal\" data-target=\"#valideModal\">
                                <i class=\"fa fa-check\"></i> {{ is_granted('ROLE_FOCAL') ? 'Soumettre' : 'Valider' }}
                            </button>
                        </div>
                    </div>
                </div>
            {% else %}
                {% if is_granted('ROLE_FOCAL') %}
                    {% if(structureyear and structureyear.focal2) %}
                        <div class=\"alert alert-success\">
                            Bravo!!!! Vous avez déjà soumis vos données. En cas de modification, veuillez contacter votre SE.
                        </div>
                    {% else %} 
                        <div class=\"alert alert-danger\">
                            Vous ne pouvez plus soumettre les données de votre commune. Veuillez le SE de votre commune.
                        </div>
                    {% endif %}
                {% endif %}
                {% if is_granted('ROLE_DPP') %}
                    {% if(structureyear and structureyear.dpp2) %}
                        <div class=\"alert alert-success\">
                            Bravo!!!! Vous avez déjà validé vos données. En cas de modification, veuillez contacter la DGCS-ODD.
                        </div>
                    {% else %} 
                        <div class=\"alert alert-danger\">
                            Vous ne pouvez pas valider les données de votre commune. Soit le point focal ne les a pas encore soumis. Veuillez lui demander de soummettre les données. Soit vous avez dépassé le délai accordé par la DGCS-ODD et dans ce cas, veuillez contacter la DGCS-ODD.
                        </div>
                    {% endif %}
                {% endif %}
            {% endif %}
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"suiviIndicateurTable\" class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">Cible</div>
                            <div class=\"col-3\">Indicateur</div>
                            <div class=\"col-6\">
                                {% for i in 5..0 %}
                                <div class=\"col-2 float-left text-center\">{{ year - i }}</div>
                                {% endfor %}
                            </div>
                            
                            <div class=\"col-1 text-center\"></div>
                        </div>
                    </th>
                </thead>

                {% for indicator in indicators %}
                <tr>
                    <td>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-2\">{{ indicator.target }}</div>
                            <div class=\"col-3\">{{ indicator }}</div>
                            <div class=\"col-6\">
                                {% for i in 5..0 %}
                                <div class=\"col-2 float-left text-center\">{{ suivis[indicator.id][year - i] }} {{suivis[indicator.id][year - i] ==\"-\" ? \"\" : indicator.unity}}</div>
                                {% endfor %}
                                
                                <div class=\"col-12 float-left\">
                                    <hr>
                                        <i>{{ suivis[indicator.id]['observation'] }}</i>
                                    <br>
                                        <i><b>Source : {{ suivis[indicator.id]['source'] }}</i></b> 
                                </div>
                            </div>
                            
                            <div class=\"col-1 text-center\">
                                <a href=\"{{ path('app_commune_indice_edit', { 'id': indicator.id}) }}\" class=\"btn btn-sm btn-secondary\">{% trans %}Modifier{% endtrans %}</a>
                            </div>
                        </div>
                    </td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}
        {% endembed %}  
        {% endif %}
    
    {% if indicators|length == 0 and goal and entry %}
    <div class=\"alert alert-primary alert-dismissible fade show\" role=\"alert\">
       Vous n'êtes en charge d'aucun indicateur. Veuillez contacter la DGCS-ODD.
    </div>
    {% endif %}

<!-- Valide Modal -->
        <div class=\"modal fade\" id=\"valideModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myLargeModalLabel\" aria-hidden=\"true\">
            <div class=\"modal-dialog modal-lg\">
                <div class=\"modal-content\">
                    <div class=\"modal-header\">
                        <h5 class=\"modal-title h4\" id=\"myLargeModalLabel\">{{ is_granted('ROLE_FOCAL') ? 'Soumision' : 'Validation'}} des données de {{app.session.get('_year')}}</h5>
                        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
                        <span aria-hidden=\"true\">&times;</span>
                        </button>
                    </div>
                    <form action=\"{{ path('app_commune_validation') }}\" method=\"post\" enctype=\"multipart/form-data\">
                    <div class=\"modal-body\">
                           Vous êtes sur le point de {{ is_granted('ROLE_FOCAL') ? 'soumettre' : 'valider' }} vos données. Vous ne pouvez plus les modifier.
                    </div>
                    <div class=\"modal-footer\">
                        <button type=\"button\" class=\"btn btn-primary\" data-dismiss=\"modal\">Annuler</button>
                        <button type=\"submit\" class=\"btn btn-success\">{{ is_granted('ROLE_FOCAL') ? 'Soumettre' : 'Valider' }}</button>
                    </div>
                    </form>
                </div>
            </div>   
        </div>
{% endblock %}

{% block javascripts %}
    <script src=\"{{ asset('plugins/datatables/jquery.dataTables.js') }}\"></script>
    <script src=\"{{ asset('plugins/datatables-bs4/js/dataTables.bootstrap4.js') }}\"></script>

{% endblock %}

{% block stylesheets %}
    <link rel=\"stylesheet\" href=\"{{ asset('plugins/datatables-bs4/css/dataTables.bootstrap4.css') }}\">
{% endblock %}", "communes/suivi.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/communes/suivi.html.twig");
    }
}
