<?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/widget-paginatedworkingtimechart.html.twig */
class __TwigTemplate_f7f67c17d67d10479a1314236d010c8e630d0676f62ec32da3f67468356fabef 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/widget-paginatedworkingtimechart.html.twig", "widget/widget-paginatedworkingtimechart.html.twig", 3, "2037701818")->display($context);
        // line 68
        echo "    </div>
</div>
<script type=\"text/javascript\">
    document.addEventListener('kimai.initialized', function() {
        KimaiPaginatedBoxWidget.create('#PaginatedWorkingTimeChart');
    });
</script>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

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

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


/* widget/widget-paginatedworkingtimechart.html.twig */
class __TwigTemplate_f7f67c17d67d10479a1314236d010c8e630d0676f62ec32da3f67468356fabef___2037701818 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_attributes' => [$this, 'block_box_attributes'],
            'box_tools' => [$this, 'block_box_tools'],
            '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/widget-paginatedworkingtimechart.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_attributes($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 8
        echo "                id=\"PaginatedWorkingTimeChart\" data-href=\"#\" data-reload=\"\"
            ";
    }

    // line 10
    public function block_box_tools($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 11
        echo "                    <ul class=\"pagination pagination-sm inline\">
                        ";
        // line 12
        $context["prevYear"] = twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "year", [], "any", false, false, false, 12);
        // line 13
        echo "                        ";
        $context["prevWeek"] = twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "week", [], "any", false, false, false, 13);
        // line 14
        echo "                        ";
        $context["nextYear"] = twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "year", [], "any", false, false, false, 14);
        // line 15
        echo "                        ";
        $context["nextWeek"] = twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "week", [], "any", false, false, false, 15);
        // line 16
        echo "                        ";
        if (0 === twig_compare(($context["prevWeek"] ?? null), 1)) {
            // line 17
            echo "                            ";
            $context["prevYear"] = (($context["prevYear"] ?? null) - 1);
            // line 18
            echo "                            ";
            $context["prevWeek"] = 52;
            // line 19
            echo "                        ";
        } else {
            // line 20
            echo "                            ";
            $context["prevWeek"] = (($context["prevWeek"] ?? null) - 1);
            // line 21
            echo "                        ";
        }
        // line 22
        echo "                        ";
        if (0 === twig_compare(($context["nextWeek"] ?? null), 52)) {
            // line 23
            echo "                            ";
            $context["nextYear"] = (($context["nextYear"] ?? null) + 1);
            // line 24
            echo "                            ";
            $context["nextWeek"] = 1;
            // line 25
            echo "                        ";
        } else {
            // line 26
            echo "                            ";
            $context["nextWeek"] = (($context["nextWeek"] ?? null) + 1);
            // line 27
            echo "                        ";
        }
        // line 28
        echo "                        <li class=\"prev\"><a onclick=\"destroyChart()\" href=\"";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("widgets_working_time_chart", ["year" => ($context["prevYear"] ?? null), "week" => ($context["prevWeek"] ?? null)]), "html", null, true);
        echo "\" rel=\"prev\"><i class=\"";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("left"), "html", null, true);
        echo "\"></i></a></li>
                        <li class=\"next\"><a onclick=\"destroyChart()\" href=\"";
        // line 29
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("widgets_working_time_chart", ["year" => ($context["nextYear"] ?? null), "week" => ($context["nextWeek"] ?? null)]), "html", null, true);
        echo "\" rel=\"next\"><i class=\"";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("right"), "html", null, true);
        echo "\"></i></a></li>
                    </ul>
            ";
    }

    // line 32
    public function block_box_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 33
        echo "                <div class=\"row\">
                    <div class=\"col-md-12\">
                        ";
        // line 35
        echo $this->extensions['App\Twig\WidgetExtension']->renderWidget("DailyWorkingTimeChart", twig_array_merge(($context["options"] ?? null), ["begin" => twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "begin", [], "any", false, false, false, 35), "end" => twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "end", [], "any", false, false, false, 35)]));
        echo "
                    </div>
                </div>
            ";
    }

    // line 39
    public function block_box_footer($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 40
        echo "                <div class=\"row\">
                    <div class=\"col-sm-3 col-xs-6\">
                        <div class=\"description-block border-right\">
                            <h5 class=\"description-header\">";
        // line 43
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "day", [], "any", false, false, false, 43)), "html", null, true);
        echo "</h5>
                            <span class=\"description-text\">";
        // line 44
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.workingTimeToday", ["%day%" => $this->extensions['App\Twig\DateExtensions']->dateShort("now")]), "html", null, true);
        echo "</span>
                        </div>
                    </div>
                    <div class=\"col-sm-3 col-xs-6\">
                        <div class=\"description-block border-right\">
                            <h5 class=\"description-header\">";
        // line 49
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "week", [], "any", false, false, false, 49)), "html", null, true);
        echo "</h5>
                            <span class=\"description-text\">";
        // line 50
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.workingTimeWeek", ["%week%" => $this->extensions['App\Twig\DateExtensions']->dateFormat(twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "begin", [], "any", false, false, false, 50), "W")]), "html", null, true);
        echo "</span>
                        </div>
                    </div>
                    <div class=\"col-sm-3 col-xs-6\">
                        <div class=\"description-block border-right\">
                            <h5 class=\"description-header\">";
        // line 55
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "month", [], "any", false, false, false, 55)), "html", null, true);
        echo "</h5>
                            <span class=\"description-text\">";
        // line 56
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.workingTimeMonth", ["%month%" => $this->extensions['App\Twig\DateExtensions']->monthName(twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "begin", [], "any", false, false, false, 56)), "%year%" => $this->extensions['App\Twig\DateExtensions']->dateFormat(twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "begin", [], "any", false, false, false, 56), "Y")]), "html", null, true);
        echo "</span>
                        </div>
                    </div>
                    <div class=\"col-sm-3 col-xs-6\">
                        <div class=\"description-block border-right\">
                            <h5 class=\"description-header\">";
        // line 61
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "year", [], "any", false, false, false, 61)), "html", null, true);
        echo "</h5>
                            <span class=\"description-text\">";
        // line 62
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.workingTimeYear", ["%year%" => $this->extensions['App\Twig\DateExtensions']->dateFormat(twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "begin", [], "any", false, false, false, 62), "Y")]), "html", null, true);
        echo "</span>
                        </div>
                    </div>
                </div>
            ";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  267 => 62,  263 => 61,  255 => 56,  251 => 55,  243 => 50,  239 => 49,  231 => 44,  227 => 43,  222 => 40,  218 => 39,  210 => 35,  206 => 33,  202 => 32,  193 => 29,  186 => 28,  183 => 27,  180 => 26,  177 => 25,  174 => 24,  171 => 23,  168 => 22,  165 => 21,  162 => 20,  159 => 19,  156 => 18,  153 => 17,  150 => 16,  147 => 15,  144 => 14,  141 => 13,  139 => 12,  136 => 11,  132 => 10,  127 => 8,  123 => 7,  119 => 6,  114 => 5,  110 => 4,  99 => 3,  43 => 68,  41 => 3,  37 => 1,);
    }

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