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

/* output/output_target.html.twig */
class __TwigTemplate_1fd714a58a613082d97ba86dfec59c32 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/mesodd-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", "output/output_target.html.twig"));

        // line 3
        $context["title"] = "";
        // line 4
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 5
            $context["title"] = "Sensibilité par structure et par cible";
        } elseif ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,         // line 6
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 6, $this->source); })()), "user", [], "any", false, false, false, 6), "direction", [], "any", false, false, false, 6)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 7
            $context["title"] = "Sensibilité du ministère par cible";
        } elseif ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,         // line 8
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 8, $this->source); })()), "user", [], "any", false, false, false, 8), "commune", [], "any", false, false, false, 8)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 9
            $context["title"] = "Sensibilité de la commune par cible";
        } elseif ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DDD")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 11
            $context["title"] = "Sensibilité par commune et par cible";
        }
        // line 1
        $this->parent = $this->load("@AdminLTE/layout/mesodd-layout.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 14
    /**
     * @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->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 14, $this->source); })()), "html", null, true);
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 17
    /**
     * @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"));

        // line 18
        yield "    ";
        yield from $this->load("output/output_target.html.twig", 18, "1156405961")->unwrap()->yield($context);
        // line 25
        yield "
    ";
        // line 26
        if ((($tmp = (isset($context["show"]) || array_key_exists("show", $context) ? $context["show"] : (function () { throw new RuntimeError('Variable "show" does not exist.', 26, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 27
            yield "        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                ";
            // line 29
            yield from $this->load("output/output_target.html.twig", 29, "446904477")->unwrap()->yield(CoreExtension::merge($context, ["color" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,             // line 30
(isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 30, $this->source); })()), "header", [], "array", false, false, false, 30), "flag", [], "array", false, false, false, 30), "icon" => "fas fa-map-signs"]));
            // line 37
            yield "            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                ";
            // line 39
            yield from $this->load("output/output_target.html.twig", 39, "1288366667")->unwrap()->yield(CoreExtension::merge($context, ["color" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,             // line 40
(isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 40, $this->source); })()), "header", [], "array", false, false, false, 40), "flag", [], "array", false, false, false, 40), "icon" => "fas fa-chart-line"]));
            // line 47
            yield "            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                ";
            // line 50
            yield from $this->load("output/output_target.html.twig", 50, "228560596")->unwrap()->yield(CoreExtension::merge($context, ["color" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,             // line 51
(isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 51, $this->source); })()), "header", [], "array", false, false, false, 51), "flag", [], "array", false, false, false, 51), "icon" => "fas fa-exclamation"]));
            // line 58
            yield "            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                ";
            // line 60
            yield from $this->load("output/output_target.html.twig", 60, "2002987742")->unwrap()->yield(CoreExtension::merge($context, ["color" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,             // line 61
(isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 61, $this->source); })()), "header", [], "array", false, false, false, 61), "flag", [], "array", false, false, false, 61), "icon" => "fas fa-hryvnia"]));
            // line 68
            yield "            </div>
        </div>
        
        ";
            // line 71
            yield from $this->load("output/output_target.html.twig", 71, "663352140")->unwrap()->yield($context);
            // line 111
            yield "
    ";
        }
        // line 113
        yield "
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 116
    /**
     * @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 117
        yield "
<script>
        let \$type = \$('#ministry_sel_type');

        \$type.change(function() {
            let \$form = \$type.closest('form');

            let data = {};
            data[\$type.attr('name')] = \$type.val();

            \$.ajax({
                url: \$form.attr('action'),
                type: \$form.attr('method'),
                data: data,
                success: function(html) {
                    \$('#ministry_sel_entite').replaceWith(
                        \$(html).find('#ministry_sel_entite')
                    );
                }
            });
        });
    </script>
    
    <script src=\"";
        // line 140
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/datatables/French.json"), "html", null, true);
        yield "\"></script>
    <script>
        \$(function () {
            \$(\"#outputTargetTable\").DataTable({
                \"pageLength\": 25,
                \"language\": {
                    \"url\": \"";
        // line 146
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/datatables/French.json"), "html", null, true);
        yield "\"
                }
            });
        });
    </script>

    <script src=\"";
        // line 152
        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 153
        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 156
    /**
     * @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 157
        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 "output/output_target.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  240 => 157,  230 => 156,  220 => 153,  216 => 152,  207 => 146,  198 => 140,  173 => 117,  163 => 116,  154 => 113,  150 => 111,  148 => 71,  143 => 68,  141 => 61,  140 => 60,  136 => 58,  134 => 51,  133 => 50,  128 => 47,  126 => 40,  125 => 39,  121 => 37,  119 => 30,  118 => 29,  114 => 27,  112 => 26,  109 => 25,  106 => 18,  96 => 17,  79 => 14,  71 => 1,  68 => 11,  65 => 9,  63 => 8,  61 => 7,  59 => 6,  57 => 5,  55 => 4,  53 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/mesodd-layout.html.twig' %}

{% set title = '' %} 
{% if is_granted('ROLE_MANAGER') %}
    {% set title = 'Sensibilité par structure et par cible' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité du ministère par cible' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité de la commune par cible' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par commune et par cible' %}
{% endif %}

{% block page_title %}{{ title }}{% endblock %}


{% block page_content %}
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                {{ form_widget(form) }}
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

    {% if show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputTargetTable\" class=\"table table-striped\">
                <thead>
                    <th>ODD</th>
                    <th>Cible</th>
                    <th style=\"width: 50px\"># Act.</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 80px\">Appréciation</th>
                    <th style=\"width: 80px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['code'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td class=\"text-center\">{{ row['nbActivity'] }}</td>
                    <td>
                        <div class=\"progress progress-xm mt-1\">
                            <div class=\"progress-bar bg-{{ row['flag'] }}\" style=\"width: {{ row['sensitivity'] }}%\">{{ row['sensitivity'] }}%</div>
                        </div>
                    </td>
                    <td><span class=\"badge bg-{{ row['flag'] }}\">{{ row['appreciation'] }}</span></td>
                    <td class=\"text-right\">{{ row['amount']|number_format(0, ',', ' ') }}</td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}

            {% block box_footer %}
            <form name=\"output_ministry_export\" method=\"post\" action=\"{{ path('app_output_target_export') }}\">
                <input type=\"hidden\" name=\"datas\" value=\"{{ datas|json_encode() }}\"/>
                <div class=\"row\">
                    <div class=\"col-sm-3\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">{% trans %}basics.export{% endtrans %}</button>
                    </div>
                    <div class=\"col-sm-9\"></div>
                </div>
            </form>
            {% endblock %}
        {% endembed %}

    {% endif %}

{% endblock %}

{% block javascripts %}

<script>
        let \$type = \$('#ministry_sel_type');

        \$type.change(function() {
            let \$form = \$type.closest('form');

            let data = {};
            data[\$type.attr('name')] = \$type.val();

            \$.ajax({
                url: \$form.attr('action'),
                type: \$form.attr('method'),
                data: data,
                success: function(html) {
                    \$('#ministry_sel_entite').replaceWith(
                        \$(html).find('#ministry_sel_entite')
                    );
                }
            });
        });
    </script>
    
    <script src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputTargetTable\").DataTable({
                \"pageLength\": 25,
                \"language\": {
                    \"url\": \"{{ asset('plugins/datatables/French.json') }}\"
                }
            });
        });
    </script>

    <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 %}", "output/output_target.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_target.html.twig");
    }
}


/* output/output_target.html.twig */
class __TwigTemplate_1fd714a58a613082d97ba86dfec59c32___1156405961 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 18
        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", "output/output_target.html.twig"));

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

    }

    // line 19
    /**
     * @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 20
        yield "            ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 20, $this->source); })()), 'form_start');
        yield "
                ";
        // line 21
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 21, $this->source); })()), 'widget');
        yield "
            ";
        // line 22
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 22, $this->source); })()), 'form_end');
        yield "    
        ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  497 => 22,  493 => 21,  488 => 20,  478 => 19,  461 => 18,  240 => 157,  230 => 156,  220 => 153,  216 => 152,  207 => 146,  198 => 140,  173 => 117,  163 => 116,  154 => 113,  150 => 111,  148 => 71,  143 => 68,  141 => 61,  140 => 60,  136 => 58,  134 => 51,  133 => 50,  128 => 47,  126 => 40,  125 => 39,  121 => 37,  119 => 30,  118 => 29,  114 => 27,  112 => 26,  109 => 25,  106 => 18,  96 => 17,  79 => 14,  71 => 1,  68 => 11,  65 => 9,  63 => 8,  61 => 7,  59 => 6,  57 => 5,  55 => 4,  53 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/mesodd-layout.html.twig' %}

{% set title = '' %} 
{% if is_granted('ROLE_MANAGER') %}
    {% set title = 'Sensibilité par structure et par cible' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité du ministère par cible' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité de la commune par cible' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par commune et par cible' %}
{% endif %}

{% block page_title %}{{ title }}{% endblock %}


{% block page_content %}
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                {{ form_widget(form) }}
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

    {% if show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputTargetTable\" class=\"table table-striped\">
                <thead>
                    <th>ODD</th>
                    <th>Cible</th>
                    <th style=\"width: 50px\"># Act.</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 80px\">Appréciation</th>
                    <th style=\"width: 80px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['code'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td class=\"text-center\">{{ row['nbActivity'] }}</td>
                    <td>
                        <div class=\"progress progress-xm mt-1\">
                            <div class=\"progress-bar bg-{{ row['flag'] }}\" style=\"width: {{ row['sensitivity'] }}%\">{{ row['sensitivity'] }}%</div>
                        </div>
                    </td>
                    <td><span class=\"badge bg-{{ row['flag'] }}\">{{ row['appreciation'] }}</span></td>
                    <td class=\"text-right\">{{ row['amount']|number_format(0, ',', ' ') }}</td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}

            {% block box_footer %}
            <form name=\"output_ministry_export\" method=\"post\" action=\"{{ path('app_output_target_export') }}\">
                <input type=\"hidden\" name=\"datas\" value=\"{{ datas|json_encode() }}\"/>
                <div class=\"row\">
                    <div class=\"col-sm-3\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">{% trans %}basics.export{% endtrans %}</button>
                    </div>
                    <div class=\"col-sm-9\"></div>
                </div>
            </form>
            {% endblock %}
        {% endembed %}

    {% endif %}

{% endblock %}

{% block javascripts %}

<script>
        let \$type = \$('#ministry_sel_type');

        \$type.change(function() {
            let \$form = \$type.closest('form');

            let data = {};
            data[\$type.attr('name')] = \$type.val();

            \$.ajax({
                url: \$form.attr('action'),
                type: \$form.attr('method'),
                data: data,
                success: function(html) {
                    \$('#ministry_sel_entite').replaceWith(
                        \$(html).find('#ministry_sel_entite')
                    );
                }
            });
        });
    </script>
    
    <script src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputTargetTable\").DataTable({
                \"pageLength\": 25,
                \"language\": {
                    \"url\": \"{{ asset('plugins/datatables/French.json') }}\"
                }
            });
        });
    </script>

    <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 %}", "output/output_target.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_target.html.twig");
    }
}


/* output/output_target.html.twig */
class __TwigTemplate_1fd714a58a613082d97ba86dfec59c32___446904477 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_text' => [$this, 'block_box_text'],
            'box_number' => [$this, 'block_box_number'],
            'progress_description' => [$this, 'block_progress_description'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 29
        return "@AdminLTE/Widgets/infobox-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", "output/output_target.html.twig"));

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

    }

    // line 33
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_text(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_text"));

        yield "Nombre d'activités";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 34
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_number(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_number"));

        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 34, $this->source); })()), "header", [], "array", false, false, false, 34), "nbActivity", [], "array", false, false, false, 34), "html", null, true);
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  770 => 35,  753 => 34,  736 => 33,  719 => 29,  497 => 22,  493 => 21,  488 => 20,  478 => 19,  461 => 18,  240 => 157,  230 => 156,  220 => 153,  216 => 152,  207 => 146,  198 => 140,  173 => 117,  163 => 116,  154 => 113,  150 => 111,  148 => 71,  143 => 68,  141 => 61,  140 => 60,  136 => 58,  134 => 51,  133 => 50,  128 => 47,  126 => 40,  125 => 39,  121 => 37,  119 => 30,  118 => 29,  114 => 27,  112 => 26,  109 => 25,  106 => 18,  96 => 17,  79 => 14,  71 => 1,  68 => 11,  65 => 9,  63 => 8,  61 => 7,  59 => 6,  57 => 5,  55 => 4,  53 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/mesodd-layout.html.twig' %}

{% set title = '' %} 
{% if is_granted('ROLE_MANAGER') %}
    {% set title = 'Sensibilité par structure et par cible' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité du ministère par cible' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité de la commune par cible' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par commune et par cible' %}
{% endif %}

{% block page_title %}{{ title }}{% endblock %}


{% block page_content %}
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                {{ form_widget(form) }}
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

    {% if show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputTargetTable\" class=\"table table-striped\">
                <thead>
                    <th>ODD</th>
                    <th>Cible</th>
                    <th style=\"width: 50px\"># Act.</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 80px\">Appréciation</th>
                    <th style=\"width: 80px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['code'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td class=\"text-center\">{{ row['nbActivity'] }}</td>
                    <td>
                        <div class=\"progress progress-xm mt-1\">
                            <div class=\"progress-bar bg-{{ row['flag'] }}\" style=\"width: {{ row['sensitivity'] }}%\">{{ row['sensitivity'] }}%</div>
                        </div>
                    </td>
                    <td><span class=\"badge bg-{{ row['flag'] }}\">{{ row['appreciation'] }}</span></td>
                    <td class=\"text-right\">{{ row['amount']|number_format(0, ',', ' ') }}</td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}

            {% block box_footer %}
            <form name=\"output_ministry_export\" method=\"post\" action=\"{{ path('app_output_target_export') }}\">
                <input type=\"hidden\" name=\"datas\" value=\"{{ datas|json_encode() }}\"/>
                <div class=\"row\">
                    <div class=\"col-sm-3\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">{% trans %}basics.export{% endtrans %}</button>
                    </div>
                    <div class=\"col-sm-9\"></div>
                </div>
            </form>
            {% endblock %}
        {% endembed %}

    {% endif %}

{% endblock %}

{% block javascripts %}

<script>
        let \$type = \$('#ministry_sel_type');

        \$type.change(function() {
            let \$form = \$type.closest('form');

            let data = {};
            data[\$type.attr('name')] = \$type.val();

            \$.ajax({
                url: \$form.attr('action'),
                type: \$form.attr('method'),
                data: data,
                success: function(html) {
                    \$('#ministry_sel_entite').replaceWith(
                        \$(html).find('#ministry_sel_entite')
                    );
                }
            });
        });
    </script>
    
    <script src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputTargetTable\").DataTable({
                \"pageLength\": 25,
                \"language\": {
                    \"url\": \"{{ asset('plugins/datatables/French.json') }}\"
                }
            });
        });
    </script>

    <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 %}", "output/output_target.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_target.html.twig");
    }
}


/* output/output_target.html.twig */
class __TwigTemplate_1fd714a58a613082d97ba86dfec59c32___1288366667 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_text' => [$this, 'block_box_text'],
            'box_number' => [$this, 'block_box_number'],
            'progress_description' => [$this, 'block_progress_description'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 39
        return "@AdminLTE/Widgets/infobox-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", "output/output_target.html.twig"));

        $this->parent = $this->load("@AdminLTE/Widgets/infobox-widget.html.twig", 39);
        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_text(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_text"));

        yield "Sensibilité globale";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 44
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_number(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_number"));

        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 44, $this->source); })()), "header", [], "array", false, false, false, 44), "sensitivity", [], "array", false, false, false, 44), "html", null, true);
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  1049 => 45,  1032 => 44,  1015 => 43,  998 => 39,  770 => 35,  753 => 34,  736 => 33,  719 => 29,  497 => 22,  493 => 21,  488 => 20,  478 => 19,  461 => 18,  240 => 157,  230 => 156,  220 => 153,  216 => 152,  207 => 146,  198 => 140,  173 => 117,  163 => 116,  154 => 113,  150 => 111,  148 => 71,  143 => 68,  141 => 61,  140 => 60,  136 => 58,  134 => 51,  133 => 50,  128 => 47,  126 => 40,  125 => 39,  121 => 37,  119 => 30,  118 => 29,  114 => 27,  112 => 26,  109 => 25,  106 => 18,  96 => 17,  79 => 14,  71 => 1,  68 => 11,  65 => 9,  63 => 8,  61 => 7,  59 => 6,  57 => 5,  55 => 4,  53 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/mesodd-layout.html.twig' %}

{% set title = '' %} 
{% if is_granted('ROLE_MANAGER') %}
    {% set title = 'Sensibilité par structure et par cible' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité du ministère par cible' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité de la commune par cible' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par commune et par cible' %}
{% endif %}

{% block page_title %}{{ title }}{% endblock %}


{% block page_content %}
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                {{ form_widget(form) }}
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

    {% if show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputTargetTable\" class=\"table table-striped\">
                <thead>
                    <th>ODD</th>
                    <th>Cible</th>
                    <th style=\"width: 50px\"># Act.</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 80px\">Appréciation</th>
                    <th style=\"width: 80px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['code'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td class=\"text-center\">{{ row['nbActivity'] }}</td>
                    <td>
                        <div class=\"progress progress-xm mt-1\">
                            <div class=\"progress-bar bg-{{ row['flag'] }}\" style=\"width: {{ row['sensitivity'] }}%\">{{ row['sensitivity'] }}%</div>
                        </div>
                    </td>
                    <td><span class=\"badge bg-{{ row['flag'] }}\">{{ row['appreciation'] }}</span></td>
                    <td class=\"text-right\">{{ row['amount']|number_format(0, ',', ' ') }}</td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}

            {% block box_footer %}
            <form name=\"output_ministry_export\" method=\"post\" action=\"{{ path('app_output_target_export') }}\">
                <input type=\"hidden\" name=\"datas\" value=\"{{ datas|json_encode() }}\"/>
                <div class=\"row\">
                    <div class=\"col-sm-3\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">{% trans %}basics.export{% endtrans %}</button>
                    </div>
                    <div class=\"col-sm-9\"></div>
                </div>
            </form>
            {% endblock %}
        {% endembed %}

    {% endif %}

{% endblock %}

{% block javascripts %}

<script>
        let \$type = \$('#ministry_sel_type');

        \$type.change(function() {
            let \$form = \$type.closest('form');

            let data = {};
            data[\$type.attr('name')] = \$type.val();

            \$.ajax({
                url: \$form.attr('action'),
                type: \$form.attr('method'),
                data: data,
                success: function(html) {
                    \$('#ministry_sel_entite').replaceWith(
                        \$(html).find('#ministry_sel_entite')
                    );
                }
            });
        });
    </script>
    
    <script src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputTargetTable\").DataTable({
                \"pageLength\": 25,
                \"language\": {
                    \"url\": \"{{ asset('plugins/datatables/French.json') }}\"
                }
            });
        });
    </script>

    <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 %}", "output/output_target.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_target.html.twig");
    }
}


/* output/output_target.html.twig */
class __TwigTemplate_1fd714a58a613082d97ba86dfec59c32___228560596 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_text' => [$this, 'block_box_text'],
            'box_number' => [$this, 'block_box_number'],
            'progress_description' => [$this, 'block_progress_description'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 50
        return "@AdminLTE/Widgets/infobox-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", "output/output_target.html.twig"));

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

    }

    // line 54
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_text(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_text"));

        yield "Appréciation globale";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 55
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_number(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_number"));

        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 55, $this->source); })()), "header", [], "array", false, false, false, 55), "appreciation", [], "array", false, false, false, 55), "html", null, true);
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  1328 => 56,  1311 => 55,  1294 => 54,  1277 => 50,  1049 => 45,  1032 => 44,  1015 => 43,  998 => 39,  770 => 35,  753 => 34,  736 => 33,  719 => 29,  497 => 22,  493 => 21,  488 => 20,  478 => 19,  461 => 18,  240 => 157,  230 => 156,  220 => 153,  216 => 152,  207 => 146,  198 => 140,  173 => 117,  163 => 116,  154 => 113,  150 => 111,  148 => 71,  143 => 68,  141 => 61,  140 => 60,  136 => 58,  134 => 51,  133 => 50,  128 => 47,  126 => 40,  125 => 39,  121 => 37,  119 => 30,  118 => 29,  114 => 27,  112 => 26,  109 => 25,  106 => 18,  96 => 17,  79 => 14,  71 => 1,  68 => 11,  65 => 9,  63 => 8,  61 => 7,  59 => 6,  57 => 5,  55 => 4,  53 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/mesodd-layout.html.twig' %}

{% set title = '' %} 
{% if is_granted('ROLE_MANAGER') %}
    {% set title = 'Sensibilité par structure et par cible' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité du ministère par cible' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité de la commune par cible' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par commune et par cible' %}
{% endif %}

{% block page_title %}{{ title }}{% endblock %}


{% block page_content %}
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                {{ form_widget(form) }}
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

    {% if show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputTargetTable\" class=\"table table-striped\">
                <thead>
                    <th>ODD</th>
                    <th>Cible</th>
                    <th style=\"width: 50px\"># Act.</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 80px\">Appréciation</th>
                    <th style=\"width: 80px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['code'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td class=\"text-center\">{{ row['nbActivity'] }}</td>
                    <td>
                        <div class=\"progress progress-xm mt-1\">
                            <div class=\"progress-bar bg-{{ row['flag'] }}\" style=\"width: {{ row['sensitivity'] }}%\">{{ row['sensitivity'] }}%</div>
                        </div>
                    </td>
                    <td><span class=\"badge bg-{{ row['flag'] }}\">{{ row['appreciation'] }}</span></td>
                    <td class=\"text-right\">{{ row['amount']|number_format(0, ',', ' ') }}</td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}

            {% block box_footer %}
            <form name=\"output_ministry_export\" method=\"post\" action=\"{{ path('app_output_target_export') }}\">
                <input type=\"hidden\" name=\"datas\" value=\"{{ datas|json_encode() }}\"/>
                <div class=\"row\">
                    <div class=\"col-sm-3\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">{% trans %}basics.export{% endtrans %}</button>
                    </div>
                    <div class=\"col-sm-9\"></div>
                </div>
            </form>
            {% endblock %}
        {% endembed %}

    {% endif %}

{% endblock %}

{% block javascripts %}

<script>
        let \$type = \$('#ministry_sel_type');

        \$type.change(function() {
            let \$form = \$type.closest('form');

            let data = {};
            data[\$type.attr('name')] = \$type.val();

            \$.ajax({
                url: \$form.attr('action'),
                type: \$form.attr('method'),
                data: data,
                success: function(html) {
                    \$('#ministry_sel_entite').replaceWith(
                        \$(html).find('#ministry_sel_entite')
                    );
                }
            });
        });
    </script>
    
    <script src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputTargetTable\").DataTable({
                \"pageLength\": 25,
                \"language\": {
                    \"url\": \"{{ asset('plugins/datatables/French.json') }}\"
                }
            });
        });
    </script>

    <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 %}", "output/output_target.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_target.html.twig");
    }
}


/* output/output_target.html.twig */
class __TwigTemplate_1fd714a58a613082d97ba86dfec59c32___2002987742 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_text' => [$this, 'block_box_text'],
            'box_number' => [$this, 'block_box_number'],
            'progress_description' => [$this, 'block_progress_description'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 60
        return "@AdminLTE/Widgets/infobox-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", "output/output_target.html.twig"));

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

    }

    // line 64
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_text(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_text"));

        yield "Montant global";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 65
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_number(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_number"));

        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 65, $this->source); })()), "header", [], "array", false, false, false, 65), "amount", [], "array", false, false, false, 65), 0, ",", " "), "html", null, true);
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  1607 => 66,  1590 => 65,  1573 => 64,  1556 => 60,  1328 => 56,  1311 => 55,  1294 => 54,  1277 => 50,  1049 => 45,  1032 => 44,  1015 => 43,  998 => 39,  770 => 35,  753 => 34,  736 => 33,  719 => 29,  497 => 22,  493 => 21,  488 => 20,  478 => 19,  461 => 18,  240 => 157,  230 => 156,  220 => 153,  216 => 152,  207 => 146,  198 => 140,  173 => 117,  163 => 116,  154 => 113,  150 => 111,  148 => 71,  143 => 68,  141 => 61,  140 => 60,  136 => 58,  134 => 51,  133 => 50,  128 => 47,  126 => 40,  125 => 39,  121 => 37,  119 => 30,  118 => 29,  114 => 27,  112 => 26,  109 => 25,  106 => 18,  96 => 17,  79 => 14,  71 => 1,  68 => 11,  65 => 9,  63 => 8,  61 => 7,  59 => 6,  57 => 5,  55 => 4,  53 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/mesodd-layout.html.twig' %}

{% set title = '' %} 
{% if is_granted('ROLE_MANAGER') %}
    {% set title = 'Sensibilité par structure et par cible' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité du ministère par cible' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité de la commune par cible' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par commune et par cible' %}
{% endif %}

{% block page_title %}{{ title }}{% endblock %}


{% block page_content %}
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                {{ form_widget(form) }}
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

    {% if show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputTargetTable\" class=\"table table-striped\">
                <thead>
                    <th>ODD</th>
                    <th>Cible</th>
                    <th style=\"width: 50px\"># Act.</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 80px\">Appréciation</th>
                    <th style=\"width: 80px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['code'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td class=\"text-center\">{{ row['nbActivity'] }}</td>
                    <td>
                        <div class=\"progress progress-xm mt-1\">
                            <div class=\"progress-bar bg-{{ row['flag'] }}\" style=\"width: {{ row['sensitivity'] }}%\">{{ row['sensitivity'] }}%</div>
                        </div>
                    </td>
                    <td><span class=\"badge bg-{{ row['flag'] }}\">{{ row['appreciation'] }}</span></td>
                    <td class=\"text-right\">{{ row['amount']|number_format(0, ',', ' ') }}</td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}

            {% block box_footer %}
            <form name=\"output_ministry_export\" method=\"post\" action=\"{{ path('app_output_target_export') }}\">
                <input type=\"hidden\" name=\"datas\" value=\"{{ datas|json_encode() }}\"/>
                <div class=\"row\">
                    <div class=\"col-sm-3\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">{% trans %}basics.export{% endtrans %}</button>
                    </div>
                    <div class=\"col-sm-9\"></div>
                </div>
            </form>
            {% endblock %}
        {% endembed %}

    {% endif %}

{% endblock %}

{% block javascripts %}

<script>
        let \$type = \$('#ministry_sel_type');

        \$type.change(function() {
            let \$form = \$type.closest('form');

            let data = {};
            data[\$type.attr('name')] = \$type.val();

            \$.ajax({
                url: \$form.attr('action'),
                type: \$form.attr('method'),
                data: data,
                success: function(html) {
                    \$('#ministry_sel_entite').replaceWith(
                        \$(html).find('#ministry_sel_entite')
                    );
                }
            });
        });
    </script>
    
    <script src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputTargetTable\").DataTable({
                \"pageLength\": 25,
                \"language\": {
                    \"url\": \"{{ asset('plugins/datatables/French.json') }}\"
                }
            });
        });
    </script>

    <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 %}", "output/output_target.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_target.html.twig");
    }
}


/* output/output_target.html.twig */
class __TwigTemplate_1fd714a58a613082d97ba86dfec59c32___663352140 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'],
            'box_footer' => [$this, 'block_box_footer'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 71
        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", "output/output_target.html.twig"));

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

    }

    // line 72
    /**
     * @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 73
        yield "                <table id=\"outputTargetTable\" class=\"table table-striped\">
                <thead>
                    <th>ODD</th>
                    <th>Cible</th>
                    <th style=\"width: 50px\"># Act.</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 80px\">Appréciation</th>
                    <th style=\"width: 80px\">Montant</th>
                </thead>
                ";
        // line 82
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 82, $this->source); })()), "rows", [], "array", false, false, false, 82));
        foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
            // line 83
            yield "                <tr>
                    <td>";
            // line 84
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "code", [], "array", false, false, false, 84), "html", null, true);
            yield "</td>
                    <td>";
            // line 85
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "name", [], "array", false, false, false, 85), "html", null, true);
            yield "</td>
                    <td class=\"text-center\">";
            // line 86
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "nbActivity", [], "array", false, false, false, 86), "html", null, true);
            yield "</td>
                    <td>
                        <div class=\"progress progress-xm mt-1\">
                            <div class=\"progress-bar bg-";
            // line 89
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "flag", [], "array", false, false, false, 89), "html", null, true);
            yield "\" style=\"width: ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "sensitivity", [], "array", false, false, false, 89), "html", null, true);
            yield "%\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "sensitivity", [], "array", false, false, false, 89), "html", null, true);
            yield "%</div>
                        </div>
                    </td>
                    <td><span class=\"badge bg-";
            // line 92
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "flag", [], "array", false, false, false, 92), "html", null, true);
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "appreciation", [], "array", false, false, false, 92), "html", null, true);
            yield "</span></td>
                    <td class=\"text-right\">";
            // line 93
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "amount", [], "array", false, false, false, 93), 0, ",", " "), "html", null, true);
            yield "</td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['row'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 96
        yield "                </table>
            ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 99
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_footer(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_footer"));

        // line 100
        yield "            <form name=\"output_ministry_export\" method=\"post\" action=\"";
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_output_target_export");
        yield "\">
                <input type=\"hidden\" name=\"datas\" value=\"";
        // line 101
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(json_encode((isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 101, $this->source); })())), "html", null, true);
        yield "\"/>
                <div class=\"row\">
                    <div class=\"col-sm-3\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">";
        // line 104
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.export", [], "messages");
        yield "</button>
                    </div>
                    <div class=\"col-sm-9\"></div>
                </div>
            </form>
            ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  1948 => 104,  1942 => 101,  1937 => 100,  1927 => 99,  1918 => 96,  1909 => 93,  1903 => 92,  1893 => 89,  1887 => 86,  1883 => 85,  1879 => 84,  1876 => 83,  1872 => 82,  1861 => 73,  1851 => 72,  1834 => 71,  1607 => 66,  1590 => 65,  1573 => 64,  1556 => 60,  1328 => 56,  1311 => 55,  1294 => 54,  1277 => 50,  1049 => 45,  1032 => 44,  1015 => 43,  998 => 39,  770 => 35,  753 => 34,  736 => 33,  719 => 29,  497 => 22,  493 => 21,  488 => 20,  478 => 19,  461 => 18,  240 => 157,  230 => 156,  220 => 153,  216 => 152,  207 => 146,  198 => 140,  173 => 117,  163 => 116,  154 => 113,  150 => 111,  148 => 71,  143 => 68,  141 => 61,  140 => 60,  136 => 58,  134 => 51,  133 => 50,  128 => 47,  126 => 40,  125 => 39,  121 => 37,  119 => 30,  118 => 29,  114 => 27,  112 => 26,  109 => 25,  106 => 18,  96 => 17,  79 => 14,  71 => 1,  68 => 11,  65 => 9,  63 => 8,  61 => 7,  59 => 6,  57 => 5,  55 => 4,  53 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends '@AdminLTE/layout/mesodd-layout.html.twig' %}

{% set title = '' %} 
{% if is_granted('ROLE_MANAGER') %}
    {% set title = 'Sensibilité par structure et par cible' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité du ministère par cible' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité de la commune par cible' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par commune et par cible' %}
{% endif %}

{% block page_title %}{{ title }}{% endblock %}


{% block page_content %}
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                {{ form_widget(form) }}
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

    {% if show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputTargetTable\" class=\"table table-striped\">
                <thead>
                    <th>ODD</th>
                    <th>Cible</th>
                    <th style=\"width: 50px\"># Act.</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 80px\">Appréciation</th>
                    <th style=\"width: 80px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['code'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td class=\"text-center\">{{ row['nbActivity'] }}</td>
                    <td>
                        <div class=\"progress progress-xm mt-1\">
                            <div class=\"progress-bar bg-{{ row['flag'] }}\" style=\"width: {{ row['sensitivity'] }}%\">{{ row['sensitivity'] }}%</div>
                        </div>
                    </td>
                    <td><span class=\"badge bg-{{ row['flag'] }}\">{{ row['appreciation'] }}</span></td>
                    <td class=\"text-right\">{{ row['amount']|number_format(0, ',', ' ') }}</td>
                </tr>
                {% endfor %}
                </table>
            {% endblock %}

            {% block box_footer %}
            <form name=\"output_ministry_export\" method=\"post\" action=\"{{ path('app_output_target_export') }}\">
                <input type=\"hidden\" name=\"datas\" value=\"{{ datas|json_encode() }}\"/>
                <div class=\"row\">
                    <div class=\"col-sm-3\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">{% trans %}basics.export{% endtrans %}</button>
                    </div>
                    <div class=\"col-sm-9\"></div>
                </div>
            </form>
            {% endblock %}
        {% endembed %}

    {% endif %}

{% endblock %}

{% block javascripts %}

<script>
        let \$type = \$('#ministry_sel_type');

        \$type.change(function() {
            let \$form = \$type.closest('form');

            let data = {};
            data[\$type.attr('name')] = \$type.val();

            \$.ajax({
                url: \$form.attr('action'),
                type: \$form.attr('method'),
                data: data,
                success: function(html) {
                    \$('#ministry_sel_entite').replaceWith(
                        \$(html).find('#ministry_sel_entite')
                    );
                }
            });
        });
    </script>
    
    <script src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputTargetTable\").DataTable({
                \"pageLength\": 25,
                \"language\": {
                    \"url\": \"{{ asset('plugins/datatables/French.json') }}\"
                }
            });
        });
    </script>

    <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 %}", "output/output_target.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_target.html.twig");
    }
}
