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

/* user/layout.html.twig */
class __TwigTemplate_6fb7eeeb9206d0c0f2422e618a97629bb2f7555ff4d3778817e149343dba8ef0 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'page_title' => [$this, 'block_page_title'],
            'page_subtitle' => [$this, 'block_page_subtitle'],
            'page_actions' => [$this, 'block_page_actions'],
            'main' => [$this, 'block_main'],
            'profile_content' => [$this, 'block_profile_content'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "base.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 2
        $macros["actions"] = $this->macros["actions"] = $this->loadTemplate("user/actions.html.twig", "user/layout.html.twig", 2)->unwrap();
        // line 1
        $this->parent = $this->loadTemplate("base.html.twig", "user/layout.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 4
    public function block_page_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "alias", [], "any", false, false, false, 4))) {
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "alias", [], "any", false, false, false, 4), "html", null, true);
        } else {
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "username", [], "any", false, false, false, 4), "html", null, true);
        }
    }

    // line 5
    public function block_page_subtitle($context, array $blocks = [])
    {
        $macros = $this->macros;
        if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "alias", [], "any", false, false, false, 5))) {
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "username", [], "any", false, false, false, 5), "html", null, true);
        }
    }

    // line 6
    public function block_page_actions($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo twig_call_macro($macros["actions"], "macro_user", [($context["user"] ?? null), ($context["tab"] ?? null)], 6, $context, $this->getSourceContext());
    }

    // line 8
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 9
        echo "    <div class=\"row\">
        <div class=\"col-md-8\">
            ";
        // line 11
        $this->displayBlock('profile_content', $context, $blocks);
        // line 12
        echo "        </div>

        <div class=\"col-md-4\">

            ";
        // line 16
        $this->loadTemplate("user/layout.html.twig", "user/layout.html.twig", 16, "2066213266")->display($context);
        // line 53
        echo "
            ";
        // line 54
        $this->loadTemplate("user/layout.html.twig", "user/layout.html.twig", 54, "1525731111")->display($context);
        // line 84
        echo "
            ";
        // line 85
        if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "teams", [], "any", false, false, false, 85)) && ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("teams", ($context["user"] ?? null)) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, false, false, 85), ($context["user"] ?? null)) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("view_team_member"))))) {
            // line 86
            echo "                ";
            $this->loadTemplate("user/layout.html.twig", "user/layout.html.twig", 86, "1045456816")->display($context);
            // line 98
            echo "            ";
        }
        // line 99
        echo "
        </div>
    </div>
";
    }

    // line 11
    public function block_profile_content($context, array $blocks = [])
    {
        $macros = $this->macros;
    }

    // line 104
    public function block_javascripts($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 105
        echo "    ";
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
    <script type=\"text/javascript\">
        document.addEventListener('kimai.initialized', function() {
            KimaiReloadPageWidget.create('kimai.teamUpdate', true);
        });
    </script>
";
    }

    public function getTemplateName()
    {
        return "user/layout.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  132 => 105,  128 => 104,  122 => 11,  115 => 99,  112 => 98,  109 => 86,  107 => 85,  104 => 84,  102 => 54,  99 => 53,  97 => 16,  91 => 12,  89 => 11,  85 => 9,  81 => 8,  74 => 6,  65 => 5,  54 => 4,  49 => 1,  47 => 2,  40 => 1,);
    }

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


/* user/layout.html.twig */
class __TwigTemplate_6fb7eeeb9206d0c0f2422e618a97629bb2f7555ff4d3778817e149343dba8ef0___2066213266 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'box_body_class' => [$this, 'block_box_body_class'],
            'box_body' => [$this, 'block_box_body'],
        ];
    }

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

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 17
        $macros["widgets"] = $this->macros["widgets"] = $this->loadTemplate("macros/widgets.html.twig", "user/layout.html.twig", 17)->unwrap();
        // line 16
        $this->parent = $this->loadTemplate("@AdminLTE/Widgets/box-widget.html.twig", "user/layout.html.twig", 16);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 18
    public function block_box_body_class($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo "box-profile";
    }

    // line 19
    public function block_box_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 20
        echo "                    <div class=\"text-center\">
                        ";
        // line 21
        echo twig_call_macro($macros["widgets"], "macro_user_avatar", [($context["user"] ?? null)], 21, $context, $this->getSourceContext());
        echo "
                        <h3 class=\"profile-username\">";
        // line 22
        echo twig_call_macro($macros["widgets"], "macro_username", [($context["user"] ?? null)], 22, $context, $this->getSourceContext());
        echo "</h3>
                        <p class=\"text-muted\">";
        // line 23
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "title", [], "any", false, false, false, 23), "html", null, true);
        echo "</p>
                    </div>
                    ";
        // line 25
        $context["seeOwnRate"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("view_rate_own_timesheet");
        // line 26
        echo "
                    <table class=\"table\">
                        <tr>
                            <th>";
        // line 29
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.durationMonth"), "html", null, true);
        echo "</th>
                            <td class=\"text-nowrap pull-right\">";
        // line 30
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "durationThisMonth", [], "any", false, false, false, 30)), "html", null, true);
        echo "</td>
                        </tr>
                        ";
        // line 32
        if (($context["seeOwnRate"] ?? null)) {
            // line 33
            echo "                        <tr>
                            <th>";
            // line 34
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.amountMonth"), "html", null, true);
            echo "</th>
                            ";
            // line 36
            echo "                            <td class=\"text-nowrap pull-right\">";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "amountThisMonth", [], "any", false, false, false, 36)), "html", null, true);
            echo "</td>
                        </tr>
                        ";
        }
        // line 39
        echo "                        <tr>
                            <th>";
        // line 40
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.durationTotal"), "html", null, true);
        echo "</th>
                            <td class=\"text-nowrap pull-right\">";
        // line 41
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "durationTotal", [], "any", false, false, false, 41)), "html", null, true);
        echo "</td>
                        </tr>
                        ";
        // line 43
        if (($context["seeOwnRate"] ?? null)) {
            // line 44
            echo "                        <tr>
                            <th>";
            // line 45
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("stats.amountTotal"), "html", null, true);
            echo "</th>
                            ";
            // line 47
            echo "                            <td class=\"text-nowrap pull-right\">";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "amountTotal", [], "any", false, false, false, 47)), "html", null, true);
            echo "</td>
                        </tr>
                        ";
        }
        // line 50
        echo "                    </table>
                ";
    }

    public function getTemplateName()
    {
        return "user/layout.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  287 => 50,  280 => 47,  276 => 45,  273 => 44,  271 => 43,  266 => 41,  262 => 40,  259 => 39,  252 => 36,  248 => 34,  245 => 33,  243 => 32,  238 => 30,  234 => 29,  229 => 26,  227 => 25,  222 => 23,  218 => 22,  214 => 21,  211 => 20,  207 => 19,  200 => 18,  195 => 16,  193 => 17,  186 => 16,  132 => 105,  128 => 104,  122 => 11,  115 => 99,  112 => 98,  109 => 86,  107 => 85,  104 => 84,  102 => 54,  99 => 53,  97 => 16,  91 => 12,  89 => 11,  85 => 9,  81 => 8,  74 => 6,  65 => 5,  54 => 4,  49 => 1,  47 => 2,  40 => 1,);
    }

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


/* user/layout.html.twig */
class __TwigTemplate_6fb7eeeb9206d0c0f2422e618a97629bb2f7555ff4d3778817e149343dba8ef0___1525731111 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'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 54
        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", "user/layout.html.twig", 54);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 55
    public function block_box_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.about_me"), "html", null, true);
    }

    // line 56
    public function block_box_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 57
        echo "                    ";
        // line 58
        echo "                    <table class=\"table no-border\">
                        <tr>
                            <th>";
        // line 60
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.id"), "html", null, true);
        echo "</th>
                            <td class=\"text-nowrap pull-right\">";
        // line 61
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "id", [], "any", false, false, false, 61), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th>";
        // line 64
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.username"), "html", null, true);
        echo "</th>
                            <td class=\"text-nowrap pull-right\">";
        // line 65
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "username", [], "any", false, false, false, 65), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th>";
        // line 68
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.first_entry"), "html", null, true);
        echo "</th>
                            <td class=\"text-nowrap pull-right\">";
        // line 69
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateShort(twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "firstEntry", [], "any", false, false, false, 69)), "html", null, true);
        echo "</td>
                        </tr>
                        <tr>
                            <th>";
        // line 72
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("profile.registration_date"), "html", null, true);
        echo "</th>
                            <td class=\"text-nowrap pull-right\">";
        // line 73
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateShort(twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "registeredAt", [], "any", false, false, false, 73)), "html", null, true);
        echo "</td>
                        </tr>
                        ";
        // line 75
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("hourly-rate", ($context["user"] ?? null))) {
            // line 76
            echo "                        <tr>
                            <th>";
            // line 77
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.hourlyRate"), "html", null, true);
            echo "</th>
                            <td class=\"text-nowrap pull-right\">";
            // line 78
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "preferenceValue", [0 => "hourly_rate"], "method", false, false, false, 78), "html", null, true);
            echo "</td>
                        </tr>
                        ";
        }
        // line 81
        echo "                    </table>
                ";
    }

    public function getTemplateName()
    {
        return "user/layout.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  416 => 81,  410 => 78,  406 => 77,  403 => 76,  401 => 75,  396 => 73,  392 => 72,  386 => 69,  382 => 68,  376 => 65,  372 => 64,  366 => 61,  362 => 60,  358 => 58,  356 => 57,  352 => 56,  345 => 55,  334 => 54,  287 => 50,  280 => 47,  276 => 45,  273 => 44,  271 => 43,  266 => 41,  262 => 40,  259 => 39,  252 => 36,  248 => 34,  245 => 33,  243 => 32,  238 => 30,  234 => 29,  229 => 26,  227 => 25,  222 => 23,  218 => 22,  214 => 21,  211 => 20,  207 => 19,  200 => 18,  195 => 16,  193 => 17,  186 => 16,  132 => 105,  128 => 104,  122 => 11,  115 => 99,  112 => 98,  109 => 86,  107 => 85,  104 => 84,  102 => 54,  99 => 53,  97 => 16,  91 => 12,  89 => 11,  85 => 9,  81 => 8,  74 => 6,  65 => 5,  54 => 4,  49 => 1,  47 => 2,  40 => 1,);
    }

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


/* user/layout.html.twig */
class __TwigTemplate_6fb7eeeb9206d0c0f2422e618a97629bb2f7555ff4d3778817e149343dba8ef0___1045456816 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_tools' => [$this, 'block_box_tools'],
            'box_body' => [$this, 'block_box_body'],
        ];
    }

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

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 87
        $macros["widgets"] = $this->macros["widgets"] = $this->loadTemplate("macros/widgets.html.twig", "user/layout.html.twig", 87)->unwrap();
        // line 86
        $this->parent = $this->loadTemplate("@AdminLTE/Widgets/box-widget.html.twig", "user/layout.html.twig", 86);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 88
    public function block_box_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.my_teams"), "html", null, true);
    }

    // line 89
    public function block_box_tools($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 90
        echo "                        ";
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("roles", ($context["user"] ?? null))) {
            // line 91
            echo "                            <a class=\"btn-box-tool\" href=\"";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_profile_teams", ["username" => twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "username", [], "any", false, false, false, 91)]), "html", null, true);
            echo "\"><i class=\"";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("edit"), "html", null, true);
            echo "\"></i></a>
                        ";
        }
        // line 92
        echo "    
                    ";
    }

    // line 94
    public function block_box_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 95
        echo "                        ";
        echo twig_call_macro($macros["widgets"], "macro_team_list", [twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "teams", [], "any", false, false, false, 95)], 95, $context, $this->getSourceContext());
        echo "
                    ";
    }

    public function getTemplateName()
    {
        return "user/layout.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  509 => 95,  505 => 94,  500 => 92,  492 => 91,  489 => 90,  485 => 89,  478 => 88,  473 => 86,  471 => 87,  464 => 86,  416 => 81,  410 => 78,  406 => 77,  403 => 76,  401 => 75,  396 => 73,  392 => 72,  386 => 69,  382 => 68,  376 => 65,  372 => 64,  366 => 61,  362 => 60,  358 => 58,  356 => 57,  352 => 56,  345 => 55,  334 => 54,  287 => 50,  280 => 47,  276 => 45,  273 => 44,  271 => 43,  266 => 41,  262 => 40,  259 => 39,  252 => 36,  248 => 34,  245 => 33,  243 => 32,  238 => 30,  234 => 29,  229 => 26,  227 => 25,  222 => 23,  218 => 22,  214 => 21,  211 => 20,  207 => 19,  200 => 18,  195 => 16,  193 => 17,  186 => 16,  132 => 105,  128 => 104,  122 => 11,  115 => 99,  112 => 98,  109 => 86,  107 => 85,  104 => 84,  102 => 54,  99 => 53,  97 => 16,  91 => 12,  89 => 11,  85 => 9,  81 => 8,  74 => 6,  65 => 5,  54 => 4,  49 => 1,  47 => 2,  40 => 1,);
    }

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