<?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_ministry.html.twig */
class __TwigTemplate_1b6440ccdd533d146175d27d368637c6 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_ministry.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 ODD et par structure";
        } 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é par ODD du ministère";
        } 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é par ODD de la commune";
        } elseif ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DDD")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 11
            $context["title"] = "Sensibilité par ODD et par commune";
        }
        // 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_ministry.html.twig", 18, "440910295")->unwrap()->yield($context);
        // line 25
        yield "
    ";
        // line 26
        if ((($tmp = (isset($context["goal"]) || array_key_exists("goal", $context) ? $context["goal"] : (function () { throw new RuntimeError('Variable "goal" 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_ministry.html.twig", 29, "1002226539")->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_ministry.html.twig", 39, "21419929")->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_ministry.html.twig", 50, "945226570")->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_ministry.html.twig", 60, "93198685")->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_ministry.html.twig", 71, "1697041292")->unwrap()->yield($context);
            // line 120
            yield "
    ";
        }
        // line 122
        yield "
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 125
    /**
     * @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 126
        yield "    <script src=\"";
        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 () {
            \$(\"#outputMinistryTable\").DataTable({
                \"pageLength\": 25,
                \"language\": {
                    \"url\": \"";
        // line 132
        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 138
        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 139
        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 142
    /**
     * @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 143
        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_ministry.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  216 => 143,  206 => 142,  196 => 139,  192 => 138,  183 => 132,  173 => 126,  163 => 125,  154 => 122,  150 => 120,  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 ODD et par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité par ODD du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité par ODD de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par ODD et par commune' %}
{% 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 goal %}
        <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=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    {% if is_granted('ROLE_MANAGER') %}
                        {% if  type=='ministere' %} <th>Code</th> {% endif %}
                        <th>{{ type=='ministere' ? 'Ministère' : 'Commune' }}</th>
                    {% endif %}
                    {% if is_granted('ROLE_DDD')  %}
                        <th>Commune</th>
                    {% endif %}
                    <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>
                    {% if is_granted('ROLE_MANAGER') and type=='ministere' %}
                        <td>{{ row['code'] }}</td>
                    {% endif %}
                    {% if is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD')  %}
                        <td>{{ row['name'] }}</td>
                    {% endif %}
                    <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_ministry_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 src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputMinistryTable\").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_ministry.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_ministry.html.twig");
    }
}


/* output/output_ministry.html.twig */
class __TwigTemplate_1b6440ccdd533d146175d27d368637c6___440910295 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_ministry.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_ministry.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  459 => 22,  455 => 21,  450 => 20,  440 => 19,  423 => 18,  216 => 143,  206 => 142,  196 => 139,  192 => 138,  183 => 132,  173 => 126,  163 => 125,  154 => 122,  150 => 120,  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 ODD et par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité par ODD du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité par ODD de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par ODD et par commune' %}
{% 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 goal %}
        <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=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    {% if is_granted('ROLE_MANAGER') %}
                        {% if  type=='ministere' %} <th>Code</th> {% endif %}
                        <th>{{ type=='ministere' ? 'Ministère' : 'Commune' }}</th>
                    {% endif %}
                    {% if is_granted('ROLE_DDD')  %}
                        <th>Commune</th>
                    {% endif %}
                    <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>
                    {% if is_granted('ROLE_MANAGER') and type=='ministere' %}
                        <td>{{ row['code'] }}</td>
                    {% endif %}
                    {% if is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD')  %}
                        <td>{{ row['name'] }}</td>
                    {% endif %}
                    <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_ministry_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 src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputMinistryTable\").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_ministry.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_ministry.html.twig");
    }
}


/* output/output_ministry.html.twig */
class __TwigTemplate_1b6440ccdd533d146175d27d368637c6___1002226539 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_ministry.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_ministry.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  718 => 35,  701 => 34,  684 => 33,  667 => 29,  459 => 22,  455 => 21,  450 => 20,  440 => 19,  423 => 18,  216 => 143,  206 => 142,  196 => 139,  192 => 138,  183 => 132,  173 => 126,  163 => 125,  154 => 122,  150 => 120,  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 ODD et par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité par ODD du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité par ODD de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par ODD et par commune' %}
{% 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 goal %}
        <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=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    {% if is_granted('ROLE_MANAGER') %}
                        {% if  type=='ministere' %} <th>Code</th> {% endif %}
                        <th>{{ type=='ministere' ? 'Ministère' : 'Commune' }}</th>
                    {% endif %}
                    {% if is_granted('ROLE_DDD')  %}
                        <th>Commune</th>
                    {% endif %}
                    <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>
                    {% if is_granted('ROLE_MANAGER') and type=='ministere' %}
                        <td>{{ row['code'] }}</td>
                    {% endif %}
                    {% if is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD')  %}
                        <td>{{ row['name'] }}</td>
                    {% endif %}
                    <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_ministry_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 src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputMinistryTable\").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_ministry.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_ministry.html.twig");
    }
}


/* output/output_ministry.html.twig */
class __TwigTemplate_1b6440ccdd533d146175d27d368637c6___21419929 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_ministry.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_ministry.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  983 => 45,  966 => 44,  949 => 43,  932 => 39,  718 => 35,  701 => 34,  684 => 33,  667 => 29,  459 => 22,  455 => 21,  450 => 20,  440 => 19,  423 => 18,  216 => 143,  206 => 142,  196 => 139,  192 => 138,  183 => 132,  173 => 126,  163 => 125,  154 => 122,  150 => 120,  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 ODD et par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité par ODD du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité par ODD de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par ODD et par commune' %}
{% 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 goal %}
        <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=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    {% if is_granted('ROLE_MANAGER') %}
                        {% if  type=='ministere' %} <th>Code</th> {% endif %}
                        <th>{{ type=='ministere' ? 'Ministère' : 'Commune' }}</th>
                    {% endif %}
                    {% if is_granted('ROLE_DDD')  %}
                        <th>Commune</th>
                    {% endif %}
                    <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>
                    {% if is_granted('ROLE_MANAGER') and type=='ministere' %}
                        <td>{{ row['code'] }}</td>
                    {% endif %}
                    {% if is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD')  %}
                        <td>{{ row['name'] }}</td>
                    {% endif %}
                    <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_ministry_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 src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputMinistryTable\").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_ministry.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_ministry.html.twig");
    }
}


/* output/output_ministry.html.twig */
class __TwigTemplate_1b6440ccdd533d146175d27d368637c6___945226570 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_ministry.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_ministry.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  1248 => 56,  1231 => 55,  1214 => 54,  1197 => 50,  983 => 45,  966 => 44,  949 => 43,  932 => 39,  718 => 35,  701 => 34,  684 => 33,  667 => 29,  459 => 22,  455 => 21,  450 => 20,  440 => 19,  423 => 18,  216 => 143,  206 => 142,  196 => 139,  192 => 138,  183 => 132,  173 => 126,  163 => 125,  154 => 122,  150 => 120,  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 ODD et par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité par ODD du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité par ODD de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par ODD et par commune' %}
{% 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 goal %}
        <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=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    {% if is_granted('ROLE_MANAGER') %}
                        {% if  type=='ministere' %} <th>Code</th> {% endif %}
                        <th>{{ type=='ministere' ? 'Ministère' : 'Commune' }}</th>
                    {% endif %}
                    {% if is_granted('ROLE_DDD')  %}
                        <th>Commune</th>
                    {% endif %}
                    <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>
                    {% if is_granted('ROLE_MANAGER') and type=='ministere' %}
                        <td>{{ row['code'] }}</td>
                    {% endif %}
                    {% if is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD')  %}
                        <td>{{ row['name'] }}</td>
                    {% endif %}
                    <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_ministry_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 src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputMinistryTable\").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_ministry.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_ministry.html.twig");
    }
}


/* output/output_ministry.html.twig */
class __TwigTemplate_1b6440ccdd533d146175d27d368637c6___93198685 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_ministry.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_ministry.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  1513 => 66,  1496 => 65,  1479 => 64,  1462 => 60,  1248 => 56,  1231 => 55,  1214 => 54,  1197 => 50,  983 => 45,  966 => 44,  949 => 43,  932 => 39,  718 => 35,  701 => 34,  684 => 33,  667 => 29,  459 => 22,  455 => 21,  450 => 20,  440 => 19,  423 => 18,  216 => 143,  206 => 142,  196 => 139,  192 => 138,  183 => 132,  173 => 126,  163 => 125,  154 => 122,  150 => 120,  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 ODD et par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité par ODD du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité par ODD de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par ODD et par commune' %}
{% 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 goal %}
        <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=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    {% if is_granted('ROLE_MANAGER') %}
                        {% if  type=='ministere' %} <th>Code</th> {% endif %}
                        <th>{{ type=='ministere' ? 'Ministère' : 'Commune' }}</th>
                    {% endif %}
                    {% if is_granted('ROLE_DDD')  %}
                        <th>Commune</th>
                    {% endif %}
                    <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>
                    {% if is_granted('ROLE_MANAGER') and type=='ministere' %}
                        <td>{{ row['code'] }}</td>
                    {% endif %}
                    {% if is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD')  %}
                        <td>{{ row['name'] }}</td>
                    {% endif %}
                    <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_ministry_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 src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputMinistryTable\").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_ministry.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_ministry.html.twig");
    }
}


/* output/output_ministry.html.twig */
class __TwigTemplate_1b6440ccdd533d146175d27d368637c6___1697041292 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_ministry.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=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    ";
        // line 75
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 76
            yield "                        ";
            if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 76, $this->source); })()) == "ministere")) {
                yield " <th>Code</th> ";
            }
            // line 77
            yield "                        <th>";
            yield ((((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 77, $this->source); })()) == "ministere")) ? ("Ministère") : ("Commune"));
            yield "</th>
                    ";
        }
        // line 79
        yield "                    ";
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DDD")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 80
            yield "                        <th>Commune</th>
                    ";
        }
        // line 82
        yield "                    <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 87
        $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.', 87, $this->source); })()), "rows", [], "array", false, false, false, 87));
        foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
            // line 88
            yield "                <tr>
                    ";
            // line 89
            if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER") && ((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 89, $this->source); })()) == "ministere"))) {
                // line 90
                yield "                        <td>";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "code", [], "array", false, false, false, 90), "html", null, true);
                yield "</td>
                    ";
            }
            // line 92
            yield "                    ";
            if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DDD"))) {
                // line 93
                yield "                        <td>";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "name", [], "array", false, false, false, 93), "html", null, true);
                yield "</td>
                    ";
            }
            // line 95
            yield "                    <td class=\"text-center\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "nbActivity", [], "array", false, false, false, 95), "html", null, true);
            yield "</td>
                    <td>
                        <div class=\"progress progress-xm mt-1\">
                            <div class=\"progress-bar bg-";
            // line 98
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "flag", [], "array", false, false, false, 98), "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, 98), "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, 98), "html", null, true);
            yield "%</div>
                        </div>
                    </td>
                    <td><span class=\"badge bg-";
            // line 101
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "flag", [], "array", false, false, false, 101), "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, 101), "html", null, true);
            yield "</span></td>
                    <td class=\"text-right\">";
            // line 102
            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, 102), 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 105
        yield "                </table>
            ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 108
    /**
     * @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 109
        yield "            <form name=\"output_ministry_export\" method=\"post\" action=\"";
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_output_ministry_export");
        yield "\">
                <input type=\"hidden\" name=\"datas\" value=\"";
        // line 110
        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.', 110, $this->source); })())), "html", null, true);
        yield "\"/>
                <div class=\"row\">
                    <div class=\"col-sm-3\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">";
        // line 113
        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_ministry.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  1870 => 113,  1864 => 110,  1859 => 109,  1849 => 108,  1840 => 105,  1831 => 102,  1825 => 101,  1815 => 98,  1808 => 95,  1802 => 93,  1799 => 92,  1793 => 90,  1791 => 89,  1788 => 88,  1784 => 87,  1777 => 82,  1773 => 80,  1770 => 79,  1764 => 77,  1759 => 76,  1757 => 75,  1753 => 73,  1743 => 72,  1726 => 71,  1513 => 66,  1496 => 65,  1479 => 64,  1462 => 60,  1248 => 56,  1231 => 55,  1214 => 54,  1197 => 50,  983 => 45,  966 => 44,  949 => 43,  932 => 39,  718 => 35,  701 => 34,  684 => 33,  667 => 29,  459 => 22,  455 => 21,  450 => 20,  440 => 19,  423 => 18,  216 => 143,  206 => 142,  196 => 139,  192 => 138,  183 => 132,  173 => 126,  163 => 125,  154 => 122,  150 => 120,  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 ODD et par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Sensibilité par ODD du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Sensibilité par ODD de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Sensibilité par ODD et par commune' %}
{% 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 goal %}
        <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=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    {% if is_granted('ROLE_MANAGER') %}
                        {% if  type=='ministere' %} <th>Code</th> {% endif %}
                        <th>{{ type=='ministere' ? 'Ministère' : 'Commune' }}</th>
                    {% endif %}
                    {% if is_granted('ROLE_DDD')  %}
                        <th>Commune</th>
                    {% endif %}
                    <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>
                    {% if is_granted('ROLE_MANAGER') and type=='ministere' %}
                        <td>{{ row['code'] }}</td>
                    {% endif %}
                    {% if is_granted('ROLE_MANAGER') or is_granted('ROLE_DDD')  %}
                        <td>{{ row['name'] }}</td>
                    {% endif %}
                    <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_ministry_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 src=\"{{ asset('plugins/datatables/French.json') }}\"></script>
    <script>
        \$(function () {
            \$(\"#outputMinistryTable\").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_ministry.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_ministry.html.twig");
    }
}
