<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* widget/section-chart.html.twig */
class __TwigTemplate_8b7e198183f9239b8c1275bf4f032dd1c1b0477127cb56ff8aa896b630c3bad0 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<div class=\"row\">
    <div class=\"col-md-12\">
        ";
        // line 3
        $this->loadTemplate("widget/section-chart.html.twig", "widget/section-chart.html.twig", 3, "1873958462")->display($context);
        // line 38
        echo "    </div>
</div>
";
    }

    public function getTemplateName()
    {
        return "widget/section-chart.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  43 => 38,  41 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "widget/section-chart.html.twig", "/var/www/html/kimai2/templates/widget/section-chart.html.twig");
    }
}


/* widget/section-chart.html.twig */
class __TwigTemplate_8b7e198183f9239b8c1275bf4f032dd1c1b0477127cb56ff8aa896b630c3bad0___1873958462 extends Template
{
    private $source;
    private $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'],
            'box_footer' => [$this, 'block_box_footer'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 3
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $this->parent = $this->loadTemplate("@AdminLTE/Widgets/box-widget.html.twig", "widget/section-chart.html.twig", 3);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 4
    public function block_box_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 5
        echo "                ";
        if ( !twig_test_empty(($context["title"] ?? null))) {
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["title"] ?? null)), "html", null, true);
        }
        // line 6
        echo "            ";
    }

    // line 7
    public function block_box_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 8
        echo "                <div class=\"row\">
                    <div class=\"col-md-12\">
                        ";
        // line 10
        echo $this->extensions['App\Twig\WidgetExtension']->renderWidget(twig_get_attribute($this->env, $this->source, ($context["widgets"] ?? null), 0, [], "any", false, false, false, 10));
        echo "
                    </div>
                </div>
            ";
    }

    // line 14
    public function block_box_footer($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 15
        echo "                ";
        if (1 === twig_compare(twig_length_filter($this->env, ($context["widgets"] ?? null)), 1)) {
            // line 16
            echo "                    <div class=\"row\">
                        ";
            // line 17
            $context["width"] = (twig_length_filter($this->env, ($context["widgets"] ?? null)) - 1);
            // line 18
            echo "                        ";
            $context["rawWidth"] = (12 / ($context["width"] ?? null));
            // line 19
            echo "                        ";
            $context["columnWidth"] = twig_round(($context["rawWidth"] ?? null), 0, "floor");
            // line 20
            echo "                        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_slice($this->env, ($context["widgets"] ?? null), 1, ($context["width"] ?? null)));
            foreach ($context['_seq'] as $context["_key"] => $context["widget"]) {
                // line 21
                echo "                            ";
                $context["data"] = twig_get_attribute($this->env, $this->source, $context["widget"], "data", [], "any", false, false, false, 21);
                // line 22
                echo "                            ";
                if (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["widget"], "option", [0 => "dataType"], "method", false, false, false, 22), "duration")) {
                    // line 23
                    echo "                                ";
                    $context["data"] = $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, $context["widget"], "data", [], "any", false, false, false, 23));
                    // line 24
                    echo "                            ";
                } elseif (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["widget"], "option", [0 => "dataType"], "method", false, false, false, 24), "money")) {
                    // line 25
                    echo "                                ";
                    $context["data"] = $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, $context["widget"], "data", [], "any", false, false, false, 25));
                    // line 26
                    echo "                            ";
                }
                // line 27
                echo "                            <div class=\"col-sm-";
                echo twig_escape_filter($this->env, ($context["columnWidth"] ?? null), "html", null, true);
                echo " col-xs-";
                echo twig_escape_filter($this->env, (($context["columnWidth"] ?? null) * 2), "html", null, true);
                echo "\">
                                <div class=\"description-block border-right\">
                                    <h5 class=\"description-header\">";
                // line 29
                echo twig_escape_filter($this->env, ($context["data"] ?? null), "html", null, true);
                echo "</h5>
                                    <span class=\"description-text\">";
                // line 30
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["widget"], "title", [], "any", false, false, false, 30)), "html", null, true);
                echo "</span>
                                </div>
                            </div>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['widget'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 34
            echo "                    </div>
                ";
        }
        // line 36
        echo "            ";
    }

    public function getTemplateName()
    {
        return "widget/section-chart.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  199 => 36,  195 => 34,  185 => 30,  181 => 29,  173 => 27,  170 => 26,  167 => 25,  164 => 24,  161 => 23,  158 => 22,  155 => 21,  150 => 20,  147 => 19,  144 => 18,  142 => 17,  139 => 16,  136 => 15,  132 => 14,  124 => 10,  120 => 8,  116 => 7,  112 => 6,  107 => 5,  103 => 4,  92 => 3,  43 => 38,  41 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "widget/section-chart.html.twig", "/var/www/html/kimai2/templates/widget/section-chart.html.twig");
    }
}
