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

/* graph/graph_goal.html.twig */
class __TwigTemplate_905ce8ebcdb4b7b9496ce34de5d0295d 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;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "graph/graph_goal.html.twig"));

        $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 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));

        // line 4
        yield "    ";
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            yield " 
        Sensibilité par ODD par Ministère
    ";
        } 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
            yield "        Sensibilité par ODD du Ministère
    ";
        } elseif ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,         // line 8
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 8, $this->source); })()), "user", [], "any", false, false, false, 8), "commune", [], "any", false, false, false, 8)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 9
            yield "        Sensibilité par ODD de la commune
    ";
        } elseif ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DDD")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 11
            yield "        Sensibilité par ODD par Commune
    ";
        }
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 16
    /**
     * @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 17
        yield "
    ";
        // line 18
        yield from $this->load("graph/graph_goal.html.twig", 18, "1113848038")->unwrap()->yield($context);
        // line 25
        yield "
    ";
        // line 26
        if (((isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 26, $this->source); })()) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER"))) {
            // line 27
            yield "        <div class=\"card card-primary\">
            <div class=\"card-header with-border\">
                <h3 class=\"card-title\"> Ministères </h3>        
            </div>
        </div>
    ";
        }
        // line 33
        yield "

    <div class=\"row\">
        ";
        // line 36
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["datas"]) || array_key_exists("datas", $context) ? $context["datas"] : (function () { throw new RuntimeError('Variable "datas" does not exist.', 36, $this->source); })()));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
            // line 37
            yield "        <div class=\"col-6 col-md-3 text-center\">

            ";
            // line 39
            yield from $this->load("graph/graph_goal.html.twig", 39, "949713363")->unwrap()->yield($context);
            // line 56
            yield "
        </div>
        ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 59
        yield "    </div>


    ";
        // line 62
        if ((($tmp = (isset($context["datasCommunes"]) || array_key_exists("datasCommunes", $context) ? $context["datasCommunes"] : (function () { throw new RuntimeError('Variable "datasCommunes" does not exist.', 62, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 63
            yield "        <div class=\"card card-success\" style=\"margin-bottom : -1px;\">
            <div class=\"card-header with-border\">
                <h3 class=\"card-title\"> Communes </h3>        
            </div>
        </div>
    ";
        }
        // line 69
        yield "

    <div class=\"row\" >
        ";
        // line 72
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["datasCommunes"]) || array_key_exists("datasCommunes", $context) ? $context["datasCommunes"] : (function () { throw new RuntimeError('Variable "datasCommunes" does not exist.', 72, $this->source); })()));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
            // line 73
            yield "        <div class=\"col-6 col-md-3 text-center\">

            ";
            // line 75
            yield from $this->load("graph/graph_goal.html.twig", 75, "72187108")->unwrap()->yield($context);
            // line 92
            yield "
        </div>
        ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 95
        yield "    </div>

";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 100
    /**
     * @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 101
        yield "    <script>
        \$(function () {
            \$('.knob').knob({
                draw: function () {
    
                }
            })
        })
    </script>
    
    <script src=\"";
        // line 111
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/jquery-knob/jquery.knob.min.js"), "html", null, true);
        yield "\"></script>
    
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  259 => 111,  247 => 101,  237 => 100,  227 => 95,  211 => 92,  209 => 75,  205 => 73,  188 => 72,  183 => 69,  175 => 63,  173 => 62,  168 => 59,  152 => 56,  150 => 39,  146 => 37,  129 => 36,  124 => 33,  116 => 27,  114 => 26,  111 => 25,  109 => 18,  106 => 17,  96 => 16,  86 => 11,  82 => 9,  80 => 8,  77 => 7,  75 => 6,  69 => 4,  59 => 3,  42 => 1,);
    }

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

{% block page_title %}
    {% if is_granted('ROLE_MANAGER') %} 
        Sensibilité par ODD par Ministère
    {% elseif app.user.direction %}
        Sensibilité par ODD du Ministère
    {% elseif app.user.commune  %}
        Sensibilité par ODD de la commune
    {% elseif is_granted('ROLE_DDD')  %}
        Sensibilité par ODD par Commune
    {% endif %}
{% 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 datas and is_granted('ROLE_MANAGER') %}
        <div class=\"card card-primary\">
            <div class=\"card-header with-border\">
                <h3 class=\"card-title\"> Ministères </h3>        
            </div>
        </div>
    {% endif %}


    <div class=\"row\">
        {% for data in datas %}
        <div class=\"col-6 col-md-3 text-center\">

            {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
                {% set boxtype = data['color']  %}
                {% block box_title %}
                    <span class=\"text-right\">{{ data['code'] }}</span>
                {% endblock %}
                {% block box_body %}
                    <input type=\"text\" class=\"knob\" value={{ data['sensitivity'] }} 
                        data-skin=\"tron\" 
                        data-thickness=\"0.3\" 
                        data-width=\"180\"
                        data-height=\"180\" 
                        data-fgColor={{ data['color'] }}
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                {% endblock %}
            {% endembed %}

        </div>
        {% endfor %}
    </div>


    {% if datasCommunes %}
        <div class=\"card card-success\" style=\"margin-bottom : -1px;\">
            <div class=\"card-header with-border\">
                <h3 class=\"card-title\"> Communes </h3>        
            </div>
        </div>
    {% endif %}


    <div class=\"row\" >
        {% for data in datasCommunes %}
        <div class=\"col-6 col-md-3 text-center\">

            {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
                {% set boxtype = data['color']  %}
                {% block box_title %}
                    <span class=\"text-right\">{{ data['name'] }}</span>
                {% endblock %}
                {% block box_body %}
                    <input type=\"text\" class=\"knob\" value={{ data['sensitivity'] }} 
                        data-skin=\"tron\" 
                        data-thickness=\"0.3\" 
                        data-width=\"180\"
                        data-height=\"180\" 
                        data-fgColor={{ data['color'] }}
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                {% endblock %}
            {% endembed %}

        </div>
        {% endfor %}
    </div>

{% endblock %}


{% block javascripts %}
    <script>
        \$(function () {
            \$('.knob').knob({
                draw: function () {
    
                }
            })
        })
    </script>
    
    <script src=\"{{ asset('plugins/jquery-knob/jquery.knob.min.js') }}\"></script>
    
{% endblock %}

", "graph/graph_goal.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/graph/graph_goal.html.twig");
    }
}


/* graph/graph_goal.html.twig */
class __TwigTemplate_905ce8ebcdb4b7b9496ce34de5d0295d___1113848038 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", "graph/graph_goal.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 "graph/graph_goal.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  473 => 22,  469 => 21,  464 => 20,  454 => 19,  437 => 18,  259 => 111,  247 => 101,  237 => 100,  227 => 95,  211 => 92,  209 => 75,  205 => 73,  188 => 72,  183 => 69,  175 => 63,  173 => 62,  168 => 59,  152 => 56,  150 => 39,  146 => 37,  129 => 36,  124 => 33,  116 => 27,  114 => 26,  111 => 25,  109 => 18,  106 => 17,  96 => 16,  86 => 11,  82 => 9,  80 => 8,  77 => 7,  75 => 6,  69 => 4,  59 => 3,  42 => 1,);
    }

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

{% block page_title %}
    {% if is_granted('ROLE_MANAGER') %} 
        Sensibilité par ODD par Ministère
    {% elseif app.user.direction %}
        Sensibilité par ODD du Ministère
    {% elseif app.user.commune  %}
        Sensibilité par ODD de la commune
    {% elseif is_granted('ROLE_DDD')  %}
        Sensibilité par ODD par Commune
    {% endif %}
{% 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 datas and is_granted('ROLE_MANAGER') %}
        <div class=\"card card-primary\">
            <div class=\"card-header with-border\">
                <h3 class=\"card-title\"> Ministères </h3>        
            </div>
        </div>
    {% endif %}


    <div class=\"row\">
        {% for data in datas %}
        <div class=\"col-6 col-md-3 text-center\">

            {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
                {% set boxtype = data['color']  %}
                {% block box_title %}
                    <span class=\"text-right\">{{ data['code'] }}</span>
                {% endblock %}
                {% block box_body %}
                    <input type=\"text\" class=\"knob\" value={{ data['sensitivity'] }} 
                        data-skin=\"tron\" 
                        data-thickness=\"0.3\" 
                        data-width=\"180\"
                        data-height=\"180\" 
                        data-fgColor={{ data['color'] }}
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                {% endblock %}
            {% endembed %}

        </div>
        {% endfor %}
    </div>


    {% if datasCommunes %}
        <div class=\"card card-success\" style=\"margin-bottom : -1px;\">
            <div class=\"card-header with-border\">
                <h3 class=\"card-title\"> Communes </h3>        
            </div>
        </div>
    {% endif %}


    <div class=\"row\" >
        {% for data in datasCommunes %}
        <div class=\"col-6 col-md-3 text-center\">

            {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
                {% set boxtype = data['color']  %}
                {% block box_title %}
                    <span class=\"text-right\">{{ data['name'] }}</span>
                {% endblock %}
                {% block box_body %}
                    <input type=\"text\" class=\"knob\" value={{ data['sensitivity'] }} 
                        data-skin=\"tron\" 
                        data-thickness=\"0.3\" 
                        data-width=\"180\"
                        data-height=\"180\" 
                        data-fgColor={{ data['color'] }}
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                {% endblock %}
            {% endembed %}

        </div>
        {% endfor %}
    </div>

{% endblock %}


{% block javascripts %}
    <script>
        \$(function () {
            \$('.knob').knob({
                draw: function () {
    
                }
            })
        })
    </script>
    
    <script src=\"{{ asset('plugins/jquery-knob/jquery.knob.min.js') }}\"></script>
    
{% endblock %}

", "graph/graph_goal.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/graph/graph_goal.html.twig");
    }
}


/* graph/graph_goal.html.twig */
class __TwigTemplate_905ce8ebcdb4b7b9496ce34de5d0295d___949713363 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_body' => [$this, 'block_box_body'],
        ];
    }

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

        // line 40
        $context["boxtype"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 40, $this->source); })()), "color", [], "array", false, false, false, 40);
        // line 39
        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 39);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

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

        // line 42
        yield "                    <span class=\"text-right\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 42, $this->source); })()), "code", [], "array", false, false, false, 42), "html", null, true);
        yield "</span>
                ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 44
    /**
     * @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 45
        yield "                    <input type=\"text\" class=\"knob\" value=";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 45, $this->source); })()), "sensitivity", [], "array", false, false, false, 45), "html", null, true);
        yield " 
                        data-skin=\"tron\" 
                        data-thickness=\"0.3\" 
                        data-width=\"180\"
                        data-height=\"180\" 
                        data-fgColor=";
        // line 50
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 50, $this->source); })()), "color", [], "array", false, false, false, 50), "html", null, true);
        yield "
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  711 => 50,  702 => 45,  692 => 44,  681 => 42,  671 => 41,  663 => 39,  661 => 40,  651 => 39,  473 => 22,  469 => 21,  464 => 20,  454 => 19,  437 => 18,  259 => 111,  247 => 101,  237 => 100,  227 => 95,  211 => 92,  209 => 75,  205 => 73,  188 => 72,  183 => 69,  175 => 63,  173 => 62,  168 => 59,  152 => 56,  150 => 39,  146 => 37,  129 => 36,  124 => 33,  116 => 27,  114 => 26,  111 => 25,  109 => 18,  106 => 17,  96 => 16,  86 => 11,  82 => 9,  80 => 8,  77 => 7,  75 => 6,  69 => 4,  59 => 3,  42 => 1,);
    }

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

{% block page_title %}
    {% if is_granted('ROLE_MANAGER') %} 
        Sensibilité par ODD par Ministère
    {% elseif app.user.direction %}
        Sensibilité par ODD du Ministère
    {% elseif app.user.commune  %}
        Sensibilité par ODD de la commune
    {% elseif is_granted('ROLE_DDD')  %}
        Sensibilité par ODD par Commune
    {% endif %}
{% 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 datas and is_granted('ROLE_MANAGER') %}
        <div class=\"card card-primary\">
            <div class=\"card-header with-border\">
                <h3 class=\"card-title\"> Ministères </h3>        
            </div>
        </div>
    {% endif %}


    <div class=\"row\">
        {% for data in datas %}
        <div class=\"col-6 col-md-3 text-center\">

            {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
                {% set boxtype = data['color']  %}
                {% block box_title %}
                    <span class=\"text-right\">{{ data['code'] }}</span>
                {% endblock %}
                {% block box_body %}
                    <input type=\"text\" class=\"knob\" value={{ data['sensitivity'] }} 
                        data-skin=\"tron\" 
                        data-thickness=\"0.3\" 
                        data-width=\"180\"
                        data-height=\"180\" 
                        data-fgColor={{ data['color'] }}
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                {% endblock %}
            {% endembed %}

        </div>
        {% endfor %}
    </div>


    {% if datasCommunes %}
        <div class=\"card card-success\" style=\"margin-bottom : -1px;\">
            <div class=\"card-header with-border\">
                <h3 class=\"card-title\"> Communes </h3>        
            </div>
        </div>
    {% endif %}


    <div class=\"row\" >
        {% for data in datasCommunes %}
        <div class=\"col-6 col-md-3 text-center\">

            {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
                {% set boxtype = data['color']  %}
                {% block box_title %}
                    <span class=\"text-right\">{{ data['name'] }}</span>
                {% endblock %}
                {% block box_body %}
                    <input type=\"text\" class=\"knob\" value={{ data['sensitivity'] }} 
                        data-skin=\"tron\" 
                        data-thickness=\"0.3\" 
                        data-width=\"180\"
                        data-height=\"180\" 
                        data-fgColor={{ data['color'] }}
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                {% endblock %}
            {% endembed %}

        </div>
        {% endfor %}
    </div>

{% endblock %}


{% block javascripts %}
    <script>
        \$(function () {
            \$('.knob').knob({
                draw: function () {
    
                }
            })
        })
    </script>
    
    <script src=\"{{ asset('plugins/jquery-knob/jquery.knob.min.js') }}\"></script>
    
{% endblock %}

", "graph/graph_goal.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/graph/graph_goal.html.twig");
    }
}


/* graph/graph_goal.html.twig */
class __TwigTemplate_905ce8ebcdb4b7b9496ce34de5d0295d___72187108 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_body' => [$this, 'block_box_body'],
        ];
    }

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

        // line 76
        $context["boxtype"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 76, $this->source); })()), "color", [], "array", false, false, false, 76);
        // line 75
        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 75);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

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

        // line 78
        yield "                    <span class=\"text-right\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 78, $this->source); })()), "name", [], "array", false, false, false, 78), "html", null, true);
        yield "</span>
                ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 80
    /**
     * @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 81
        yield "                    <input type=\"text\" class=\"knob\" value=";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 81, $this->source); })()), "sensitivity", [], "array", false, false, false, 81), "html", null, true);
        yield " 
                        data-skin=\"tron\" 
                        data-thickness=\"0.3\" 
                        data-width=\"180\"
                        data-height=\"180\" 
                        data-fgColor=";
        // line 86
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 86, $this->source); })()), "color", [], "array", false, false, false, 86), "html", null, true);
        yield "
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  952 => 86,  943 => 81,  933 => 80,  922 => 78,  912 => 77,  904 => 75,  902 => 76,  892 => 75,  711 => 50,  702 => 45,  692 => 44,  681 => 42,  671 => 41,  663 => 39,  661 => 40,  651 => 39,  473 => 22,  469 => 21,  464 => 20,  454 => 19,  437 => 18,  259 => 111,  247 => 101,  237 => 100,  227 => 95,  211 => 92,  209 => 75,  205 => 73,  188 => 72,  183 => 69,  175 => 63,  173 => 62,  168 => 59,  152 => 56,  150 => 39,  146 => 37,  129 => 36,  124 => 33,  116 => 27,  114 => 26,  111 => 25,  109 => 18,  106 => 17,  96 => 16,  86 => 11,  82 => 9,  80 => 8,  77 => 7,  75 => 6,  69 => 4,  59 => 3,  42 => 1,);
    }

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

{% block page_title %}
    {% if is_granted('ROLE_MANAGER') %} 
        Sensibilité par ODD par Ministère
    {% elseif app.user.direction %}
        Sensibilité par ODD du Ministère
    {% elseif app.user.commune  %}
        Sensibilité par ODD de la commune
    {% elseif is_granted('ROLE_DDD')  %}
        Sensibilité par ODD par Commune
    {% endif %}
{% 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 datas and is_granted('ROLE_MANAGER') %}
        <div class=\"card card-primary\">
            <div class=\"card-header with-border\">
                <h3 class=\"card-title\"> Ministères </h3>        
            </div>
        </div>
    {% endif %}


    <div class=\"row\">
        {% for data in datas %}
        <div class=\"col-6 col-md-3 text-center\">

            {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
                {% set boxtype = data['color']  %}
                {% block box_title %}
                    <span class=\"text-right\">{{ data['code'] }}</span>
                {% endblock %}
                {% block box_body %}
                    <input type=\"text\" class=\"knob\" value={{ data['sensitivity'] }} 
                        data-skin=\"tron\" 
                        data-thickness=\"0.3\" 
                        data-width=\"180\"
                        data-height=\"180\" 
                        data-fgColor={{ data['color'] }}
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                {% endblock %}
            {% endembed %}

        </div>
        {% endfor %}
    </div>


    {% if datasCommunes %}
        <div class=\"card card-success\" style=\"margin-bottom : -1px;\">
            <div class=\"card-header with-border\">
                <h3 class=\"card-title\"> Communes </h3>        
            </div>
        </div>
    {% endif %}


    <div class=\"row\" >
        {% for data in datasCommunes %}
        <div class=\"col-6 col-md-3 text-center\">

            {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
                {% set boxtype = data['color']  %}
                {% block box_title %}
                    <span class=\"text-right\">{{ data['name'] }}</span>
                {% endblock %}
                {% block box_body %}
                    <input type=\"text\" class=\"knob\" value={{ data['sensitivity'] }} 
                        data-skin=\"tron\" 
                        data-thickness=\"0.3\" 
                        data-width=\"180\"
                        data-height=\"180\" 
                        data-fgColor={{ data['color'] }}
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                {% endblock %}
            {% endembed %}

        </div>
        {% endfor %}
    </div>

{% endblock %}


{% block javascripts %}
    <script>
        \$(function () {
            \$('.knob').knob({
                draw: function () {
    
                }
            })
        })
    </script>
    
    <script src=\"{{ asset('plugins/jquery-knob/jquery.knob.min.js') }}\"></script>
    
{% endblock %}

", "graph/graph_goal.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/graph/graph_goal.html.twig");
    }
}
