<?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_9fd0538e84a1cac0236f646b77514b00 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;
        // 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
($context["app"] ?? null), "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
($context["app"] ?? null), "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
    ";
        }
        yield from [];
    }

    // line 16
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 17
        yield "
    ";
        // line 18
        yield from $this->load("graph/graph_goal.html.twig", 18, "1407947022")->unwrap()->yield($context);
        // line 25
        yield "
    ";
        // line 26
        if ((($context["datas"] ?? null) && $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(($context["datas"] ?? null));
        $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, "126119396")->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 = ($context["datasCommunes"] ?? null)) && $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(($context["datasCommunes"] ?? null));
        $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, "218841616")->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>

";
        yield from [];
    }

    // line 100
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // 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>
    
";
        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 (  238 => 111,  226 => 101,  219 => 100,  212 => 95,  196 => 92,  194 => 75,  190 => 73,  173 => 72,  168 => 69,  160 => 63,  158 => 62,  153 => 59,  137 => 56,  135 => 39,  131 => 37,  114 => 36,  109 => 33,  101 => 27,  99 => 26,  96 => 25,  94 => 18,  91 => 17,  84 => 16,  77 => 11,  73 => 9,  71 => 8,  68 => 7,  66 => 6,  60 => 4,  53 => 3,  42 => 1,);
    }

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


/* graph/graph_goal.html.twig */
class __TwigTemplate_9fd0538e84a1cac0236f646b77514b00___1407947022 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;
        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 18);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 19
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 20
        yield "            ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
        yield "
                ";
        // line 21
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        yield "
            ";
        // line 22
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "    
        ";
        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 (  326 => 22,  322 => 21,  317 => 20,  310 => 19,  299 => 18,  238 => 111,  226 => 101,  219 => 100,  212 => 95,  196 => 92,  194 => 75,  190 => 73,  173 => 72,  168 => 69,  160 => 63,  158 => 62,  153 => 59,  137 => 56,  135 => 39,  131 => 37,  114 => 36,  109 => 33,  101 => 27,  99 => 26,  96 => 25,  94 => 18,  91 => 17,  84 => 16,  77 => 11,  73 => 9,  71 => 8,  68 => 7,  66 => 6,  60 => 4,  53 => 3,  42 => 1,);
    }

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


/* graph/graph_goal.html.twig */
class __TwigTemplate_9fd0538e84a1cac0236f646b77514b00___126119396 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;
        // line 40
        $context["boxtype"] = (($_v0 = ($context["data"] ?? null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0["color"] ?? null) : null);
        // 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));
    }

    // line 41
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 42
        yield "                    <span class=\"text-right\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v1 = ($context["data"] ?? null)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1["code"] ?? null) : null), "html", null, true);
        yield "</span>
                ";
        yield from [];
    }

    // line 44
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 45
        yield "                    <input type=\"text\" class=\"knob\" value=";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v2 = ($context["data"] ?? null)) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2["sensitivity"] ?? null) : null), "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((($_v3 = ($context["data"] ?? null)) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3["color"] ?? null) : null), "html", null, true);
        yield "
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                ";
        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 (  432 => 50,  423 => 45,  416 => 44,  408 => 42,  401 => 41,  396 => 39,  394 => 40,  387 => 39,  326 => 22,  322 => 21,  317 => 20,  310 => 19,  299 => 18,  238 => 111,  226 => 101,  219 => 100,  212 => 95,  196 => 92,  194 => 75,  190 => 73,  173 => 72,  168 => 69,  160 => 63,  158 => 62,  153 => 59,  137 => 56,  135 => 39,  131 => 37,  114 => 36,  109 => 33,  101 => 27,  99 => 26,  96 => 25,  94 => 18,  91 => 17,  84 => 16,  77 => 11,  73 => 9,  71 => 8,  68 => 7,  66 => 6,  60 => 4,  53 => 3,  42 => 1,);
    }

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


/* graph/graph_goal.html.twig */
class __TwigTemplate_9fd0538e84a1cac0236f646b77514b00___218841616 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;
        // line 76
        $context["boxtype"] = (($_v4 = ($context["data"] ?? null)) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4["color"] ?? null) : null);
        // 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));
    }

    // line 77
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 78
        yield "                    <span class=\"text-right\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v5 = ($context["data"] ?? null)) && is_array($_v5) || $_v5 instanceof ArrayAccess ? ($_v5["name"] ?? null) : null), "html", null, true);
        yield "</span>
                ";
        yield from [];
    }

    // line 80
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 81
        yield "                    <input type=\"text\" class=\"knob\" value=";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v6 = ($context["data"] ?? null)) && is_array($_v6) || $_v6 instanceof ArrayAccess ? ($_v6["sensitivity"] ?? null) : null), "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((($_v7 = ($context["data"] ?? null)) && is_array($_v7) || $_v7 instanceof ArrayAccess ? ($_v7["color"] ?? null) : null), "html", null, true);
        yield "
                        data-readonly=\"true\"
                        data-linecap=round
                        > 
                ";
        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 (  541 => 86,  532 => 81,  525 => 80,  517 => 78,  510 => 77,  505 => 75,  503 => 76,  496 => 75,  432 => 50,  423 => 45,  416 => 44,  408 => 42,  401 => 41,  396 => 39,  394 => 40,  387 => 39,  326 => 22,  322 => 21,  317 => 20,  310 => 19,  299 => 18,  238 => 111,  226 => 101,  219 => 100,  212 => 95,  196 => 92,  194 => 75,  190 => 73,  173 => 72,  168 => 69,  160 => 63,  158 => 62,  153 => 59,  137 => 56,  135 => 39,  131 => 37,  114 => 36,  109 => 33,  101 => 27,  99 => 26,  96 => 25,  94 => 18,  91 => 17,  84 => 16,  77 => 11,  73 => 9,  71 => 8,  68 => 7,  66 => 6,  60 => 4,  53 => 3,  42 => 1,);
    }

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