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

/* setting/mesodd_dashboard.html.twig */
class __TwigTemplate_567e113ed9fbc0e9f9a47ce19dbe0a52 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'],
        ];
    }

    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;
        $this->parent = $this->load("@AdminLTE/layout/mesodd-layout.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("dashboard.title", [], "messages");
        yield " MesODD  ";
        if ((($tmp = ($context["ministry"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            yield " - ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["ministry"] ?? null), "name", [], "any", false, false, false, 3), "html", null, true);
            yield " ";
        }
        yield " ";
        if ((($tmp = ($context["departement"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            yield " - ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["departement"] ?? null), "name", [], "any", false, false, false, 3), "html", null, true);
            yield " ";
        }
        yield "  ";
        if ((($tmp = ($context["commune"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            yield "  - ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["commune"] ?? null), "name", [], "any", false, false, false, 3), "html", null, true);
            yield " ";
        }
        yield " ";
        yield from [];
    }

    // line 6
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 7
        yield "    ";
        if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DDD"))) {
            // line 8
            yield "        <div class=\"card card-default\">
            <div class=\"card-body\">
                ";
            // line 10
            yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
            yield "
                    <div class=\"form-group row\">
                        ";
            // line 12
            if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 13
                yield "                            <div class=\"col-sm-4\">
                                ";
                // line 14
                yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "type", [], "any", false, false, false, 14), 'label', ["label_attr" => ["class" => "col-sm-12"]]);
                yield "
                                ";
                // line 15
                yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "type", [], "any", false, false, false, 15), 'widget');
                yield "
                            </div>
                            <div class=\"col-sm-8\">
                                ";
                // line 18
                yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "entite", [], "any", false, false, false, 18), 'label', ["label_attr" => ["class" => "col-sm-12"]]);
                yield "
                                ";
                // line 19
                yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "entite", [], "any", false, false, false, 19), 'widget');
                yield "
                            </div>
                        ";
            } else {
                // line 22
                yield "                            <div class=\"col-sm-12\">
                                ";
                // line 23
                yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "entite", [], "any", false, false, false, 23), 'label', ["label_attr" => ["class" => "col-sm-12"]]);
                yield "
                                ";
                // line 24
                yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "entite", [], "any", false, false, false, 24), 'widget');
                yield "
                            </div>
                        ";
            }
            // line 27
            yield "                    </div>
                ";
            // line 28
            yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
            yield "  
            </div>
        </div>
    ";
        }
        // line 32
        yield "        
    <!-- Info boxes -->
    <div class=\"row\">
        <div class=\"col-12 col-sm-6 col-md-3\">
        ";
        // line 36
        yield from $this->load("setting/mesodd_dashboard.html.twig", 36, "1342684577")->unwrap()->yield(CoreExtension::merge($context, ["color" => "info", "icon" => "fas fa-cog"]));
        // line 44
        yield "        </div>

        <div class=\"col-12 col-sm-6 col-md-3\">
        ";
        // line 47
        yield from $this->load("setting/mesodd_dashboard.html.twig", 47, "1850905064")->unwrap()->yield(CoreExtension::merge($context, ["color" => "danger", "icon" => "fas fa-thumbs-up"]));
        // line 55
        yield "        </div>

        <div class=\"clearfix hidden-md-up\"></div>

        <div class=\"col-12 col-sm-6 col-md-3\">
        ";
        // line 60
        yield from $this->load("setting/mesodd_dashboard.html.twig", 60, "372938657")->unwrap()->yield(CoreExtension::merge($context, ["color" => "success", "icon" => "fas fa-shopping-cart"]));
        // line 68
        yield "        </div>

        <div class=\"col-12 col-sm-6 col-md-3\">
        ";
        // line 71
        yield from $this->load("setting/mesodd_dashboard.html.twig", 71, "1505421649")->unwrap()->yield(CoreExtension::merge($context, ["color" => "warning", "icon" => "fas fa-users"]));
        // line 79
        yield "        </div>
    </div>

    <div class=\"row\">
        <div class=\"col-md-12\">
        ";
        // line 84
        yield from $this->load("setting/mesodd_dashboard.html.twig", 84, "456745026")->unwrap()->yield($context);
        // line 154
        yield "      
       
";
        yield from [];
    }

    // line 158
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 159
        yield "
    <script>
        let \$type = \$('#ministry_commune_sel_type');

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

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

            \$.ajax({
                url: \$form.attr('action'),
                type: \$form.attr('method'),
                data: data,
                success: function(html) {
                    \$('#ministry_commune_sel_entite').replaceWith(
                        \$(html).find('#ministry_commune_sel_entite')
                    );
                }
            });
        });
    </script>


    <script>
        \$(function () {
            var barChartData = {
                labels: ";
        // line 186
        yield json_encode((($_v0 = ($context["barChart"] ?? null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0["labels"] ?? null) : null));
        yield ",
                datasets: [
                    {
                        backgroundColor     : ";
        // line 189
        yield json_encode((($_v1 = ($context["barChart"] ?? null)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1["bgColor"] ?? null) : null));
        yield ",
                        borderColor         : ";
        // line 190
        yield json_encode((($_v2 = ($context["barChart"] ?? null)) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2["bgColor"] ?? null) : null));
        yield ",
                        borderWidth         : 1,
                        pointRadius         : false,
                        pointColor          : '#3b8bba',
                        pointStrokeColor    : 'rgba(60,141,188,1)',
                        pointHighlightFill  : '#fff',
                        pointHighlightStroke: 'rgba(60,141,188,1)',
                        data                : ";
        // line 197
        yield json_encode((($_v3 = ($context["barChart"] ?? null)) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3["values"] ?? null) : null));
        yield "
                    },
                ]
            }

            var barChartCanvas = document.getElementById('barChart').getContext('2d');
      
            var barChartOptions = {
                responsive              : true,
                maintainAspectRatio     : false,
                datasetFill             : false,
                legend: {
                        display: false
                    },
                scales: {
                    yAxes: [{
                        ticks: {
                            beginAtZero: true
                        }
                    }]
                },
                plugins: {
                    // Change options for ALL labels of THIS CHART
                    datalabels: {
                        color: 'white',
                        font: {
                            weight: 'bold',
                            size: 12,
                        },
                        align: 'start',
\t\t\t\t\t\tanchor: 'end'
                    }
                }
            }
        
            var barChart = new Chart(barChartCanvas, {
                type: 'bar', 
                data: barChartData,
                options: barChartOptions
            })
      
        })
    </script>

    <script src=\"";
        // line 241
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/chart.js/Chart.min.js"), "html", null, true);
        yield "\"></script>
    <script src=\"";
        // line 242
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/chartjs-plugin-datalabels/chartjs-plugin-datalabels.min.js"), "html", null, true);
        yield "\"></script>
    
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  304 => 242,  300 => 241,  253 => 197,  243 => 190,  239 => 189,  233 => 186,  204 => 159,  197 => 158,  190 => 154,  188 => 84,  181 => 79,  179 => 71,  174 => 68,  172 => 60,  165 => 55,  163 => 47,  158 => 44,  156 => 36,  150 => 32,  143 => 28,  140 => 27,  134 => 24,  130 => 23,  127 => 22,  121 => 19,  117 => 18,  111 => 15,  107 => 14,  104 => 13,  102 => 12,  97 => 10,  93 => 8,  90 => 7,  83 => 6,  53 => 3,  42 => 1,);
    }

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


/* setting/mesodd_dashboard.html.twig */
class __TwigTemplate_567e113ed9fbc0e9f9a47ce19dbe0a52___1342684577 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 36
        return "@AdminLTE/Widgets/infobox-widget.html.twig";
    }

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

    // line 40
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_text(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield "Programmes";
        yield from [];
    }

    // line 41
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_number(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["totalProgramm"] ?? null), "html", null, true);
        yield from [];
    }

    // line 42
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_progress_description(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  400 => 42,  389 => 41,  378 => 40,  367 => 36,  304 => 242,  300 => 241,  253 => 197,  243 => 190,  239 => 189,  233 => 186,  204 => 159,  197 => 158,  190 => 154,  188 => 84,  181 => 79,  179 => 71,  174 => 68,  172 => 60,  165 => 55,  163 => 47,  158 => 44,  156 => 36,  150 => 32,  143 => 28,  140 => 27,  134 => 24,  130 => 23,  127 => 22,  121 => 19,  117 => 18,  111 => 15,  107 => 14,  104 => 13,  102 => 12,  97 => 10,  93 => 8,  90 => 7,  83 => 6,  53 => 3,  42 => 1,);
    }

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


/* setting/mesodd_dashboard.html.twig */
class __TwigTemplate_567e113ed9fbc0e9f9a47ce19dbe0a52___1850905064 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 47
        return "@AdminLTE/Widgets/infobox-widget.html.twig";
    }

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

    // line 51
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_text(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield "Actions";
        yield from [];
    }

    // line 52
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_number(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["totalAction"] ?? null), "html", null, true);
        yield from [];
    }

    // line 53
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_progress_description(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  498 => 53,  487 => 52,  476 => 51,  465 => 47,  400 => 42,  389 => 41,  378 => 40,  367 => 36,  304 => 242,  300 => 241,  253 => 197,  243 => 190,  239 => 189,  233 => 186,  204 => 159,  197 => 158,  190 => 154,  188 => 84,  181 => 79,  179 => 71,  174 => 68,  172 => 60,  165 => 55,  163 => 47,  158 => 44,  156 => 36,  150 => 32,  143 => 28,  140 => 27,  134 => 24,  130 => 23,  127 => 22,  121 => 19,  117 => 18,  111 => 15,  107 => 14,  104 => 13,  102 => 12,  97 => 10,  93 => 8,  90 => 7,  83 => 6,  53 => 3,  42 => 1,);
    }

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


/* setting/mesodd_dashboard.html.twig */
class __TwigTemplate_567e113ed9fbc0e9f9a47ce19dbe0a52___372938657 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;
        $this->parent = $this->load("@AdminLTE/Widgets/infobox-widget.html.twig", 60);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 64
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_text(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield "Activités";
        yield from [];
    }

    // line 65
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_number(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["nbActivityTotal"] ?? null), "html", null, true);
        yield from [];
    }

    // line 66
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_progress_description(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  596 => 66,  585 => 65,  574 => 64,  563 => 60,  498 => 53,  487 => 52,  476 => 51,  465 => 47,  400 => 42,  389 => 41,  378 => 40,  367 => 36,  304 => 242,  300 => 241,  253 => 197,  243 => 190,  239 => 189,  233 => 186,  204 => 159,  197 => 158,  190 => 154,  188 => 84,  181 => 79,  179 => 71,  174 => 68,  172 => 60,  165 => 55,  163 => 47,  158 => 44,  156 => 36,  150 => 32,  143 => 28,  140 => 27,  134 => 24,  130 => 23,  127 => 22,  121 => 19,  117 => 18,  111 => 15,  107 => 14,  104 => 13,  102 => 12,  97 => 10,  93 => 8,  90 => 7,  83 => 6,  53 => 3,  42 => 1,);
    }

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


/* setting/mesodd_dashboard.html.twig */
class __TwigTemplate_567e113ed9fbc0e9f9a47ce19dbe0a52___1505421649 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 71
        return "@AdminLTE/Widgets/infobox-widget.html.twig";
    }

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

    // line 75
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_text(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield "Montant";
        yield from [];
    }

    // line 76
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_number(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(($context["amount"] ?? null), 0, ",", " "), "html", null, true);
        yield from [];
    }

    // line 77
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_progress_description(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  694 => 77,  683 => 76,  672 => 75,  661 => 71,  596 => 66,  585 => 65,  574 => 64,  563 => 60,  498 => 53,  487 => 52,  476 => 51,  465 => 47,  400 => 42,  389 => 41,  378 => 40,  367 => 36,  304 => 242,  300 => 241,  253 => 197,  243 => 190,  239 => 189,  233 => 186,  204 => 159,  197 => 158,  190 => 154,  188 => 84,  181 => 79,  179 => 71,  174 => 68,  172 => 60,  165 => 55,  163 => 47,  158 => 44,  156 => 36,  150 => 32,  143 => 28,  140 => 27,  134 => 24,  130 => 23,  127 => 22,  121 => 19,  117 => 18,  111 => 15,  107 => 14,  104 => 13,  102 => 12,  97 => 10,  93 => 8,  90 => 7,  83 => 6,  53 => 3,  42 => 1,);
    }

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


/* setting/mesodd_dashboard.html.twig */
class __TwigTemplate_567e113ed9fbc0e9f9a47ce19dbe0a52___456745026 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'box_title' => [$this, 'block_box_title'],
            'box_tools' => [$this, 'block_box_tools'],
            'box_body' => [$this, 'block_box_body'],
            'box_footer' => [$this, 'block_box_footer'],
        ];
    }

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

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

    // line 85
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 86
        yield "                <label class=\"col-sm-12 col-form-label\"><span style=\"color:red\">Sensibilité globale : ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(($context["global"] ?? null), 2, ",", " "), "html", null, true);
        yield " %</span></label>
            ";
        yield from [];
    }

    // line 88
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_tools(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield from [];
    }

    // line 89
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 90
        yield "                <div class=\"row\">
                    <div class=\"col-md-8\">
                        <p class=\"text-center\">
                            <strong>Sensibilité par ODD</strong>
                        </p>
                        <div class=\"chart\">
                            <canvas id=\"barChart\" height=\"250\" style=\"height: 250px;\"></canvas>
                        </div>
                    </div>
                   
                    <div class=\"col-md-4\">
                        <p class=\"text-center\">
                            <strong>Natures d’activités</strong>
                        </p>
  
                        <div class=\"progress-group\">
                            Actions
                            <span class=\"float-right\"><b>";
        // line 107
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["totalActionTreated"] ?? null), "html", null, true);
        yield "</b>/";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["totalAction"] ?? null), "html", null, true);
        yield "</span>
                            <div class=\"progress\">
                                <div class=\"progress-bar bg-secondary\" style=\"width: ";
        // line 109
        if ((($tmp = ($context["totalAction"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((($context["totalActionTreated"] ?? null) / ($context["totalAction"] ?? null)) * 100), "html", null, true);
        }
        yield "%\"></div>
                            </div>
                        </div>
  
                        <div class=\"progress-group\">
                            Activités
                            <span class=\"float-right\"><b>";
        // line 115
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["nbActivityTreated"] ?? null), "html", null, true);
        yield "</b>/";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["nbActivityTotal"] ?? null), "html", null, true);
        yield "</span>
                            <div class=\"progress\">
                                <div class=\"progress-bar bg-secondary\" style=\"width: ";
        // line 117
        if ((($tmp = ($context["nbActivityTotal"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((($context["nbActivityTreated"] ?? null) / ($context["nbActivityTotal"] ?? null)) * 100), "html", null, true);
        }
        yield "%\"></div>
                            </div>
                        </div>

                        <!--div class=\"progress-group\">
                            <span class=\"progress-text\">Visit Premium Page</span>
                            <span class=\"float-right\"><b>480</b>/800</span>
                            <div class=\"progress\">
                                <div class=\"progress-bar bg-secondary\" style=\"width: 60%\"></div>
                            </div>
                        </div>

                        <div class=\"progress-group\">
                            Send Inquiries
                            <span class=\"float-right\"><b>250</b>/500</span>
                            <div class=\"progress\">
                                <div class=\"progress-bar bg-secondary\" style=\"width: 50%\"></div>
                            </div>
                        </div-->
                    </div>
                </div>
            ";
        yield from [];
    }

    // line 140
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_footer(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 141
        yield "                <div class=\"row\">
                    ";
        // line 142
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["natures"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["nature"]) {
            // line 143
            yield "                    <div class=\"col-sm-3 col-6\">
                        <div class=\"description-block border-right\">
                            <span class=\"description-text\">";
            // line 145
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["nature"], "name", [], "any", false, false, false, 145), "html", null, true);
            yield "</span>
                            <h5 class=\"description-header\">";
            // line 146
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, $context["nature"], "amount", [], "any", false, false, false, 146), 0, ",", " "), "html", null, true);
            yield " F</h5>
                            <span class=\"description-percentage text-success\">";
            // line 147
            if ((($tmp = ($context["amount"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                yield " ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(((CoreExtension::getAttribute($this->env, $this->source, $context["nature"], "amount", [], "any", false, false, false, 147) / ($context["amount"] ?? null)) * 100), 2, ",", " "), "html", null, true);
                yield "% ";
            }
            yield "</span>
                        </div>
                    </div>
                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['nature'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 151
        yield "                </div>
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  916 => 151,  902 => 147,  898 => 146,  894 => 145,  890 => 143,  886 => 142,  883 => 141,  876 => 140,  847 => 117,  840 => 115,  829 => 109,  822 => 107,  803 => 90,  796 => 89,  786 => 88,  778 => 86,  771 => 85,  760 => 84,  694 => 77,  683 => 76,  672 => 75,  661 => 71,  596 => 66,  585 => 65,  574 => 64,  563 => 60,  498 => 53,  487 => 52,  476 => 51,  465 => 47,  400 => 42,  389 => 41,  378 => 40,  367 => 36,  304 => 242,  300 => 241,  253 => 197,  243 => 190,  239 => 189,  233 => 186,  204 => 159,  197 => 158,  190 => 154,  188 => 84,  181 => 79,  179 => 71,  174 => 68,  172 => 60,  165 => 55,  163 => 47,  158 => 44,  156 => 36,  150 => 32,  143 => 28,  140 => 27,  134 => 24,  130 => 23,  127 => 22,  121 => 19,  117 => 18,  111 => 15,  107 => 14,  104 => 13,  102 => 12,  97 => 10,  93 => 8,  90 => 7,  83 => 6,  53 => 3,  42 => 1,);
    }

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