<?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_activity_list.html.twig */
class __TwigTemplate_bb248788f276a0eac4fb82680f20aa56 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_activity_list.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"] = "Liste des activités 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"] = "Liste des activités 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"] = "Liste des activités 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"] = "Liste des activités 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_activity_list.html.twig", 18, "1909782609")->unwrap()->yield($context);
        // line 25
        yield "
    ";
        // line 26
        if ((($tmp = (isset($context["show"]) || array_key_exists("show", $context) ? $context["show"] : (function () { throw new RuntimeError('Variable "show" does not exist.', 26, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 27
            yield "        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                ";
            // line 29
            yield from $this->load("output/output_activity_list.html.twig", 29, "1027674825")->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_activity_list.html.twig", 39, "525465015")->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_activity_list.html.twig", 50, "188463160")->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_activity_list.html.twig", 60, "622580441")->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_activity_list.html.twig", 71, "1953499845")->unwrap()->yield($context);
            // line 115
            yield "
    ";
        }
        // line 117
        yield "
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 120
    /**
     * @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 121
        yield "
    <script src=\"";
        // line 122
        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 128
        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 134
        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 135
        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 138
    /**
     * @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 139
        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_activity_list.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  218 => 139,  208 => 138,  198 => 135,  194 => 134,  185 => 128,  176 => 122,  173 => 121,  163 => 120,  154 => 117,  150 => 115,  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 = 'Liste des activités par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Liste des activités du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Liste des activités de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Liste des activités 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 show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    <th>Programme</th>
                    <th>Action</th>
                    <th>Activité</th>
                    <th>Nature</th>
                    <th>Cible</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 100px\">Appréciation</th>
                    <th style=\"width: 100px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['programm'] }}</td>
                    <td>{{ row['action'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td>{{ row['nature'] }}</td>
                    <td>{{ row['target'] }}</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_activity_list_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_activity_list.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_activity_list.html.twig");
    }
}


/* output/output_activity_list.html.twig */
class __TwigTemplate_bb248788f276a0eac4fb82680f20aa56___1909782609 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_activity_list.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_activity_list.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  457 => 22,  453 => 21,  448 => 20,  438 => 19,  421 => 18,  218 => 139,  208 => 138,  198 => 135,  194 => 134,  185 => 128,  176 => 122,  173 => 121,  163 => 120,  154 => 117,  150 => 115,  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 = 'Liste des activités par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Liste des activités du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Liste des activités de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Liste des activités 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 show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    <th>Programme</th>
                    <th>Action</th>
                    <th>Activité</th>
                    <th>Nature</th>
                    <th>Cible</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 100px\">Appréciation</th>
                    <th style=\"width: 100px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['programm'] }}</td>
                    <td>{{ row['action'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td>{{ row['nature'] }}</td>
                    <td>{{ row['target'] }}</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_activity_list_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_activity_list.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_activity_list.html.twig");
    }
}


/* output/output_activity_list.html.twig */
class __TwigTemplate_bb248788f276a0eac4fb82680f20aa56___1027674825 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_activity_list.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_activity_list.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  712 => 35,  695 => 34,  678 => 33,  661 => 29,  457 => 22,  453 => 21,  448 => 20,  438 => 19,  421 => 18,  218 => 139,  208 => 138,  198 => 135,  194 => 134,  185 => 128,  176 => 122,  173 => 121,  163 => 120,  154 => 117,  150 => 115,  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 = 'Liste des activités par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Liste des activités du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Liste des activités de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Liste des activités 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 show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    <th>Programme</th>
                    <th>Action</th>
                    <th>Activité</th>
                    <th>Nature</th>
                    <th>Cible</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 100px\">Appréciation</th>
                    <th style=\"width: 100px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['programm'] }}</td>
                    <td>{{ row['action'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td>{{ row['nature'] }}</td>
                    <td>{{ row['target'] }}</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_activity_list_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_activity_list.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_activity_list.html.twig");
    }
}


/* output/output_activity_list.html.twig */
class __TwigTemplate_bb248788f276a0eac4fb82680f20aa56___525465015 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_activity_list.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_activity_list.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  973 => 45,  956 => 44,  939 => 43,  922 => 39,  712 => 35,  695 => 34,  678 => 33,  661 => 29,  457 => 22,  453 => 21,  448 => 20,  438 => 19,  421 => 18,  218 => 139,  208 => 138,  198 => 135,  194 => 134,  185 => 128,  176 => 122,  173 => 121,  163 => 120,  154 => 117,  150 => 115,  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 = 'Liste des activités par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Liste des activités du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Liste des activités de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Liste des activités 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 show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    <th>Programme</th>
                    <th>Action</th>
                    <th>Activité</th>
                    <th>Nature</th>
                    <th>Cible</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 100px\">Appréciation</th>
                    <th style=\"width: 100px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['programm'] }}</td>
                    <td>{{ row['action'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td>{{ row['nature'] }}</td>
                    <td>{{ row['target'] }}</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_activity_list_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_activity_list.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_activity_list.html.twig");
    }
}


/* output/output_activity_list.html.twig */
class __TwigTemplate_bb248788f276a0eac4fb82680f20aa56___188463160 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_activity_list.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_activity_list.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  1234 => 56,  1217 => 55,  1200 => 54,  1183 => 50,  973 => 45,  956 => 44,  939 => 43,  922 => 39,  712 => 35,  695 => 34,  678 => 33,  661 => 29,  457 => 22,  453 => 21,  448 => 20,  438 => 19,  421 => 18,  218 => 139,  208 => 138,  198 => 135,  194 => 134,  185 => 128,  176 => 122,  173 => 121,  163 => 120,  154 => 117,  150 => 115,  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 = 'Liste des activités par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Liste des activités du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Liste des activités de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Liste des activités 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 show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    <th>Programme</th>
                    <th>Action</th>
                    <th>Activité</th>
                    <th>Nature</th>
                    <th>Cible</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 100px\">Appréciation</th>
                    <th style=\"width: 100px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['programm'] }}</td>
                    <td>{{ row['action'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td>{{ row['nature'] }}</td>
                    <td>{{ row['target'] }}</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_activity_list_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_activity_list.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_activity_list.html.twig");
    }
}


/* output/output_activity_list.html.twig */
class __TwigTemplate_bb248788f276a0eac4fb82680f20aa56___622580441 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_activity_list.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_activity_list.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  1495 => 66,  1478 => 65,  1461 => 64,  1444 => 60,  1234 => 56,  1217 => 55,  1200 => 54,  1183 => 50,  973 => 45,  956 => 44,  939 => 43,  922 => 39,  712 => 35,  695 => 34,  678 => 33,  661 => 29,  457 => 22,  453 => 21,  448 => 20,  438 => 19,  421 => 18,  218 => 139,  208 => 138,  198 => 135,  194 => 134,  185 => 128,  176 => 122,  173 => 121,  163 => 120,  154 => 117,  150 => 115,  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 = 'Liste des activités par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Liste des activités du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Liste des activités de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Liste des activités 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 show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    <th>Programme</th>
                    <th>Action</th>
                    <th>Activité</th>
                    <th>Nature</th>
                    <th>Cible</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 100px\">Appréciation</th>
                    <th style=\"width: 100px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['programm'] }}</td>
                    <td>{{ row['action'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td>{{ row['nature'] }}</td>
                    <td>{{ row['target'] }}</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_activity_list_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_activity_list.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_activity_list.html.twig");
    }
}


/* output/output_activity_list.html.twig */
class __TwigTemplate_bb248788f276a0eac4fb82680f20aa56___1953499845 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_activity_list.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>
                    <th>Programme</th>
                    <th>Action</th>
                    <th>Activité</th>
                    <th>Nature</th>
                    <th>Cible</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 100px\">Appréciation</th>
                    <th style=\"width: 100px\">Montant</th>
                </thead>
                ";
        // line 84
        $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.', 84, $this->source); })()), "rows", [], "array", false, false, false, 84));
        foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
            // line 85
            yield "                <tr>
                    <td>";
            // line 86
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "programm", [], "array", false, false, false, 86), "html", null, true);
            yield "</td>
                    <td>";
            // line 87
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "action", [], "array", false, false, false, 87), "html", null, true);
            yield "</td>
                    <td>";
            // line 88
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "name", [], "array", false, false, false, 88), "html", null, true);
            yield "</td>
                    <td>";
            // line 89
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "nature", [], "array", false, false, false, 89), "html", null, true);
            yield "</td>
                    <td>";
            // line 90
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "target", [], "array", false, false, false, 90), "html", null, true);
            yield "</td>
                    <td>
                        <div class=\"progress progress-xm mt-1\">
                            <div class=\"progress-bar bg-";
            // line 93
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "flag", [], "array", false, false, false, 93), "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, 93), "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, 93), "html", null, true);
            yield "%</div>
                        </div>
                    </td>
                    <td><span class=\"badge bg-";
            // line 96
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row"], "flag", [], "array", false, false, false, 96), "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, 96), "html", null, true);
            yield "</span></td>
                    <td class=\"text-right\">";
            // line 97
            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, 97), 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 100
        yield "                </table>
            ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  1828 => 108,  1822 => 105,  1817 => 104,  1807 => 103,  1798 => 100,  1789 => 97,  1783 => 96,  1773 => 93,  1767 => 90,  1763 => 89,  1759 => 88,  1755 => 87,  1751 => 86,  1748 => 85,  1744 => 84,  1731 => 73,  1721 => 72,  1704 => 71,  1495 => 66,  1478 => 65,  1461 => 64,  1444 => 60,  1234 => 56,  1217 => 55,  1200 => 54,  1183 => 50,  973 => 45,  956 => 44,  939 => 43,  922 => 39,  712 => 35,  695 => 34,  678 => 33,  661 => 29,  457 => 22,  453 => 21,  448 => 20,  438 => 19,  421 => 18,  218 => 139,  208 => 138,  198 => 135,  194 => 134,  185 => 128,  176 => 122,  173 => 121,  163 => 120,  154 => 117,  150 => 115,  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 = 'Liste des activités par structure' %}
{% elseif app.user.direction %}
    {% set title = 'Liste des activités du ministère' %}
{% elseif app.user.commune  %}
    {% set title = 'Liste des activités de la commune' %}
{% elseif is_granted('ROLE_DDD') %}
    {% set title = 'Liste des activités 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 show %}
        <div class=\"row\">
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-map-signs',
                }%}
                    {% block box_text %}Nombre d'activités{% endblock %}
                    {% block box_number %}{{ datas['header']['nbActivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-chart-line',
                }%}
                    {% block box_text %}Sensibilité globale{% endblock %}
                    {% block box_number %}{{ datas['header']['sensitivity'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"clearfix hidden-md-up\"></div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-exclamation',
                }%}
                    {% block box_text %}Appréciation globale{% endblock %}
                    {% block box_number %}{{ datas['header']['appreciation'] }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
            <div class=\"col-12 col-sm-6 col-md-3\">
                {% embed '@AdminLTE/Widgets/infobox-widget.html.twig'  with {
                    'color' : datas[\"header\"][\"flag\"],
                    'icon'  : 'fas fa-hryvnia',
                }%}
                    {% block box_text %}Montant global{% endblock %}
                    {% block box_number %}{{ datas['header']['amount']|number_format(0, ',', ' ') }}{% endblock %}
                    {% block progress_description %}{% endblock %}
                {% endembed %}
            </div>
        </div>
        
        {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
            {% block box_body %}
                <table id=\"outputMinistryTable\" class=\"table table-striped\">
                <thead>
                    <th>Programme</th>
                    <th>Action</th>
                    <th>Activité</th>
                    <th>Nature</th>
                    <th>Cible</th>
                    <th style=\"width: 150px\">Sensibilité</th>
                    <th style=\"width: 100px\">Appréciation</th>
                    <th style=\"width: 100px\">Montant</th>
                </thead>
                {% for row in datas['rows'] %}
                <tr>
                    <td>{{ row['programm'] }}</td>
                    <td>{{ row['action'] }}</td>
                    <td>{{ row['name'] }}</td>
                    <td>{{ row['nature'] }}</td>
                    <td>{{ row['target'] }}</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_activity_list_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_activity_list.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/output/output_activity_list.html.twig");
    }
}
