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

/* macros/widgets.html.twig */
class __TwigTemplate_9e0f43199447272e937adbddab36acac4289e681b149bb6a013d101d2d83b060 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
        ];
        $macros["_self"] = $this->macros["_self"] = $this;
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 36
        echo "
";
        // line 45
        echo "
";
        // line 50
        echo "
";
        // line 65
        echo "
";
        // line 69
        echo "
";
        // line 74
        echo "
";
        // line 79
        echo "
";
        // line 88
        echo "
";
        // line 104
        echo "
";
        // line 113
        echo "
";
        // line 119
        echo "
";
        // line 132
        echo "
";
        // line 138
        echo "
";
        // line 147
        echo "
";
        // line 155
        echo "
";
        // line 160
        echo "
";
        // line 164
        echo "
";
        // line 178
        echo "
";
        // line 185
        echo "
";
        // line 204
        echo "
";
        // line 219
        echo "
";
        // line 269
        echo "
";
        // line 335
        echo "
";
        // line 361
        echo "
";
        // line 367
        echo "
";
        // line 374
        echo "
";
        // line 415
        echo "
";
        // line 461
        echo "
";
    }

    // line 1
    public function macro_icon($__icon__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "icon" => $__icon__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 2
            echo "<i class=\"";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon(($context["icon"] ?? null), ($context["icon"] ?? null)), "html", null, true);
            echo "\"></i>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 5
    public function macro_page_actions($__tools__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "tools" => $__tools__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 6
            $macros["macro"] = $this;
            // line 7
            echo "    <div class=\"breadcrumb\">
        <div class=\"box-tools\">
            ";
            // line 9
            echo twig_call_macro($macros["macro"], "macro_button_group", [($context["tools"] ?? null)], 9, $context, $this->getSourceContext());
            echo "
        </div>
    </div>";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 14
    public function macro_entity_actions($__tools__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "tools" => $__tools__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 15
            $macros["macro"] = $this;
            // line 16
            echo "    <div class=\"breadcrumb\">
        <div class=\"box-tools\">
            <div class=\"btn-group\">
            ";
            // line 19
            $context["actions"] = [];
            // line 20
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["tools"] ?? null));
            foreach ($context['_seq'] as $context["icon"] => $context["values"]) {
                // line 21
                echo "                ";
                if (0 === twig_compare($context["icon"], "back")) {
                    // line 22
                    echo "                    ";
                    echo twig_call_macro($macros["macro"], "macro_action_button", [$context["icon"], $context["values"]], 22, $context, $this->getSourceContext());
                    echo "
                ";
                } else {
                    // line 24
                    echo "                    ";
                    $context["actions"] = twig_array_merge(($context["actions"] ?? null), [$context["icon"] => $context["values"]]);
                    // line 25
                    echo "                ";
                }
                // line 26
                echo "            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['icon'], $context['values'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 27
            echo "            ";
            echo twig_call_macro($macros["macro"], "macro_table_actions", [($context["actions"] ?? null), ""], 27, $context, $this->getSourceContext());
            echo "
            </div>
        </div>
    </div>";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 33
    public function macro_page_header($__title__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "title" => $__title__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 34
            echo "    <h2 class=\"page-header\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["title"] ?? null)), "html", null, true);
            echo "</h2>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 37
    public function macro_label_boolean($__visible__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "visible" => $__visible__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 38
            echo "    ";
            $macros["macro"] = $this;
            // line 39
            echo "    ";
            if (($context["visible"] ?? null)) {
                // line 40
                echo "        ";
                echo twig_call_macro($macros["macro"], "macro_label", [$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("yes"), "success"], 40, $context, $this->getSourceContext());
                echo "
    ";
            } else {
                // line 42
                echo "        ";
                echo twig_call_macro($macros["macro"], "macro_label", [$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no"), "default"], 42, $context, $this->getSourceContext());
                echo "
    ";
            }

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 46
    public function macro_label_visible($__visible__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "visible" => $__visible__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 47
            echo "    ";
            $macros["macro"] = $this;
            // line 48
            echo "    ";
            echo twig_call_macro($macros["macro"], "macro_label_boolean", [($context["visible"] ?? null)], 48, $context, $this->getSourceContext());
            echo "
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 51
    public function macro_label_role($__role__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "role" => $__role__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 52
            echo "    ";
            $macros["macro"] = $this;
            // line 53
            echo "    ";
            $context["color"] = "primary";
            // line 54
            echo "    ";
            if (0 === twig_compare(($context["role"] ?? null), "ROLE_SUPER_ADMIN")) {
                // line 55
                echo "        ";
                $context["color"] = "danger";
                // line 56
                echo "    ";
            } elseif (0 === twig_compare(($context["role"] ?? null), "ROLE_ADMIN")) {
                // line 57
                echo "        ";
                $context["color"] = "warning";
                // line 58
                echo "    ";
            } elseif (0 === twig_compare(($context["role"] ?? null), "ROLE_TEAMLEAD")) {
                // line 59
                echo "        ";
                $context["color"] = "success";
                // line 60
                echo "    ";
            } elseif (0 === twig_compare(($context["role"] ?? null), "ROLE_USER")) {
                // line 61
                echo "        ";
                $context["color"] = "gray";
                // line 62
                echo "    ";
            }
            // line 63
            echo "    ";
            echo twig_call_macro($macros["macro"], "macro_label", [$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["role"] ?? null)), ($context["color"] ?? null)], 63, $context, $this->getSourceContext());
            echo "
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 66
    public function macro_username($__user__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "user" => $__user__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 67
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "displayName", [], "any", false, false, false, 67), "html", null, true);

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 70
    public function macro_label_user($__user__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "user" => $__user__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 71
            echo "    ";
            $macros["macro"] = $this;
            // line 72
            echo "    ";
            echo twig_call_macro($macros["macro"], "macro_label", [twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "displayName", [], "any", false, false, false, 72), "primary"], 72, $context, $this->getSourceContext());
            echo "
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 75
    public function macro_label_team($__team__ = null, $__class__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "team" => $__team__,
            "class" => $__class__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 76
            echo "    ";
            $macros["macro"] = $this;
            // line 77
            echo "    ";
            echo twig_call_macro($macros["macro"], "macro_label", [twig_get_attribute($this->env, $this->source, ($context["team"] ?? null), "name", [], "any", false, false, false, 77), (((isset($context["class"]) || array_key_exists("class", $context))) ? (_twig_default_filter(($context["class"] ?? null), "primary")) : ("primary"))], 77, $context, $this->getSourceContext());
            echo "
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 80
    public function macro_user_avatar($__user__ = null, $__tooltip__ = null, $__class__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "user" => $__user__,
            "tooltip" => $__tooltip__,
            "class" => $__class__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 81
            echo "    ";
            $context["avatar"] = $this->extensions['App\Twig\AvatarExtension']->getAvatarUrl(($context["user"] ?? null), twig_get_attribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "default_avatar", [], "any", false, false, false, 81));
            // line 82
            echo "    ";
            if ((($context["tooltip"] ?? null) === false)) {
                // line 83
                echo "    <img src=\"";
                echo twig_escape_filter($this->env, ($context["avatar"] ?? null), "html", null, true);
                echo "\" class=\"img-circle";
                if ( !twig_test_empty(($context["class"] ?? null))) {
                    echo " ";
                    echo twig_escape_filter($this->env, ($context["class"] ?? null), "html", null, true);
                }
                echo "\" alt=\"";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "displayName", [], "any", false, false, false, 83), "html", null, true);
                echo "\" />
    ";
            } else {
                // line 85
                echo "    <img src=\"";
                echo twig_escape_filter($this->env, ($context["avatar"] ?? null), "html", null, true);
                echo "\" class=\"img-circle";
                if ( !twig_test_empty(($context["class"] ?? null))) {
                    echo " ";
                    echo twig_escape_filter($this->env, ($context["class"] ?? null), "html", null, true);
                }
                echo "\" data-toggle=\"tooltip\" data-placement=\"top\" alt=\"";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "displayName", [], "any", false, false, false, 85), "html", null, true);
                echo "\" title=\"";
                echo twig_escape_filter($this->env, (((isset($context["tooltip"]) || array_key_exists("tooltip", $context))) ? (_twig_default_filter(($context["tooltip"] ?? null), twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "displayName", [], "any", false, false, false, 85))) : (twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "displayName", [], "any", false, false, false, 85))), "html", null, true);
                echo "\" />
    ";
            }

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 89
    public function macro_label_activity($__activity__ = null, $__url__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "activity" => $__activity__,
            "url" => $__url__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 90
            echo "    ";
            $macros["macro"] = $this;
            // line 91
            echo "    ";
            $context["isVisible"] = twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "visible", [], "any", false, false, false, 91);
            // line 92
            echo "    ";
            $context["color"] = twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "color", [], "any", false, false, false, 92);
            // line 93
            echo "    ";
            if ((twig_test_empty(($context["color"] ?? null)) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, false, false, 93)))) {
                // line 94
                echo "        ";
                $context["color"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, true, false, 94), "color", [], "any", true, true, false, 94) &&  !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, true, false, 94), "color", [], "any", false, false, false, 94)))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, true, false, 94), "color", [], "any", false, false, false, 94)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, false, false, 94), "customer", [], "any", false, false, false, 94), "color", [], "any", false, false, false, 94)));
                // line 95
                echo "    ";
            }
            // line 96
            echo "    ";
            if ((($context["isVisible"] ?? null) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, false, false, 96)))) {
                // line 97
                echo "        ";
                $context["isVisible"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, false, false, 97), "visible", [], "any", false, false, false, 97);
                // line 98
                echo "        ";
                if ((($context["isVisible"] ?? null) &&  !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, false, false, 98), "customer", [], "any", false, false, false, 98)))) {
                    // line 99
                    echo "            ";
                    $context["isVisible"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, false, false, 99), "customer", [], "any", false, false, false, 99), "visible", [], "any", false, false, false, 99);
                    // line 100
                    echo "        ";
                }
                // line 101
                echo "    ";
            }
            // line 102
            echo "    ";
            echo twig_call_macro($macros["macro"], "macro_label_color_dot", ["activity", ($context["isVisible"] ?? null), twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "name", [], "any", false, false, false, 102), ($context["url"] ?? null), ($context["color"] ?? null)], 102, $context, $this->getSourceContext());
            echo "
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 105
    public function macro_label_project($__project__ = null, $__url__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "project" => $__project__,
            "url" => $__url__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 106
            echo "    ";
            $macros["macro"] = $this;
            // line 107
            echo "    ";
            $context["isVisible"] = false;
            // line 108
            echo "    ";
            if ((twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "visible", [], "any", false, false, false, 108) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "customer", [], "any", false, false, false, 108), "visible", [], "any", false, false, false, 108))) {
                // line 109
                echo "        ";
                $context["isVisible"] = true;
                // line 110
                echo "    ";
            }
            // line 111
            echo "    ";
            echo twig_call_macro($macros["macro"], "macro_label_color_dot", ["project", ($context["isVisible"] ?? null), twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "name", [], "any", false, false, false, 111), ($context["url"] ?? null), (((twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "color", [], "any", true, true, false, 111) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "color", [], "any", false, false, false, 111)))) ? (twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "color", [], "any", false, false, false, 111)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "customer", [], "any", false, false, false, 111), "color", [], "any", false, false, false, 111)))], 111, $context, $this->getSourceContext());
            echo "
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 114
    public function macro_label_customer($__customer__ = null, $__url__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "customer" => $__customer__,
            "url" => $__url__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 115
            echo "    ";
            $macros["macro"] = $this;
            // line 116
            echo "    ";
            $context["isVisible"] = twig_get_attribute($this->env, $this->source, ($context["customer"] ?? null), "visible", [], "any", false, false, false, 116);
            // line 117
            echo "    ";
            echo twig_call_macro($macros["macro"], "macro_label_color_dot", ["customer", ($context["isVisible"] ?? null), twig_get_attribute($this->env, $this->source, ($context["customer"] ?? null), "name", [], "any", false, false, false, 117), ($context["url"] ?? null), twig_get_attribute($this->env, $this->source, ($context["customer"] ?? null), "color", [], "any", false, false, false, 117)], 117, $context, $this->getSourceContext());
            echo "
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 120
    public function macro_label_color_dot($__type__ = null, $__isVisible__ = null, $__name__ = null, $__url__ = null, $__color__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "type" => $__type__,
            "isVisible" => $__isVisible__,
            "name" => $__name__,
            "url" => $__url__,
            "color" => $__color__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 121
            echo "    <span class=\"label-";
            echo twig_escape_filter($this->env, ($context["type"] ?? null), "html", null, true);
            echo ((($context["isVisible"] ?? null)) ? ("") : (" label-invisible"));
            echo "\">
        <span class=\"name\">
            <i class=\"dot ";
            // line 123
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("dot"), "html", null, true);
            echo " fa-fw\"";
            if ( !twig_test_empty(($context["color"] ?? null))) {
                echo " style=\"color:";
                echo twig_escape_filter($this->env, ($context["color"] ?? null), "html", null, true);
                echo "\"";
            }
            echo "></i>";
            // line 124
            if ( !twig_test_empty(($context["url"] ?? null))) {
                // line 125
                echo "<a href=\"";
                echo twig_escape_filter($this->env, ($context["url"] ?? null), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
                echo "</a>";
            } else {
                // line 127
                echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
            }
            // line 129
            echo "</span>
    </span>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 133
    public function macro_color_dot($__color__ = null, $__tooltip__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "color" => $__color__,
            "tooltip" => $__tooltip__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 134
            echo "    <span class=\"label-color\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
            echo twig_escape_filter($this->env, ($context["tooltip"] ?? null), "html", null, true);
            echo "\">
        <i class=\"dot ";
            // line 135
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("dot"), "html", null, true);
            echo " fa-fw\"";
            if ( !twig_test_empty(($context["color"] ?? null))) {
                echo " style=\"color:";
                echo twig_escape_filter($this->env, ($context["color"] ?? null), "html", null, true);
                echo "\"";
            }
            echo "></i>
    </span>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 139
    public function macro_badge_team_access($__teams__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "teams" => $__teams__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 140
            echo "    ";
            $macros["macro"] = $this;
            // line 141
            echo "    ";
            if (1 === twig_compare(twig_length_filter($this->env, ($context["teams"] ?? null)), 0)) {
                // line 142
                echo "        ";
                echo twig_call_macro($macros["macro"], "macro_badge_counter", [twig_length_filter($this->env, ($context["teams"] ?? null))], 142, $context, $this->getSourceContext());
                echo "
    ";
            } else {
                // line 144
                echo "        ";
                echo twig_call_macro($macros["macro"], "macro_icon", ["unlocked"], 144, $context, $this->getSourceContext());
                echo "
    ";
            }

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 148
    public function macro_badge_counter($__count__ = null, $__url__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "count" => $__count__,
            "url" => $__url__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 149
            echo "    ";
            if (($context["url"] ?? null)) {
                // line 150
                echo "        <a href=\"";
                echo twig_escape_filter($this->env, ($context["url"] ?? null), "html", null, true);
                echo "\"><span class=\"badge bg-blue\">";
                echo twig_escape_filter($this->env, ($context["count"] ?? null), "html", null, true);
                echo "</span></a>
    ";
            } else {
                // line 152
                echo "        <span class=\"badge bg-blue\">";
                echo twig_escape_filter($this->env, ($context["count"] ?? null), "html", null, true);
                echo "</span>
    ";
            }

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 156
    public function macro_label($__title__ = null, $__type__ = null, $__tooltip__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "title" => $__title__,
            "type" => $__type__,
            "tooltip" => $__tooltip__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 157
            echo "    ";
            // line 158
            echo "    <span ";
            if (($context["tooltip"] ?? null)) {
                echo "data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
                echo twig_escape_filter($this->env, ($context["tooltip"] ?? null), "html", null, true);
                echo "\" ";
            }
            echo "class=\"label label-";
            echo twig_escape_filter($this->env, (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "success")) : ("success")), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
            echo "</span>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 161
    public function macro_badge($__title__ = null, $__color__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "title" => $__title__,
            "color" => $__color__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 162
            echo "    <span class=\"badge\" style=\"background-color:";
            echo twig_escape_filter($this->env, ($context["color"] ?? null), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
            echo "</span>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 165
    public function macro_alert($__type__ = null, $__description__ = null, $__title__ = null, $__icon__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "type" => $__type__,
            "description" => $__description__,
            "title" => $__title__,
            "icon" => $__icon__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 166
            echo "    <div class=\"alert alert-";
            echo twig_escape_filter($this->env, (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "danger")) : ("danger")), "html", null, true);
            echo " alert-dismissible\">
        <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
        ";
            // line 168
            if ((($context["title"] ?? null) && ($context["icon"] ?? null))) {
                // line 169
                echo "            <h4><i class=\"icon ";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon(($context["icon"] ?? null), ($context["icon"] ?? null)), "html", null, true);
                echo "\"></i> ";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["title"] ?? null)), "html", null, true);
                echo "</h4>
            ";
                // line 170
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["description"] ?? null)), "html", null, true);
                echo "
        ";
            } elseif (            // line 171
($context["icon"] ?? null)) {
                // line 172
                echo "            <h4><i class=\"icon ";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon(($context["icon"] ?? null), ($context["icon"] ?? null)), "html", null, true);
                echo "\"></i> ";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["description"] ?? null)), "html", null, true);
                echo "</h4>
        ";
            } else {
                // line 174
                echo "            ";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["description"] ?? null)), "html", null, true);
                echo "
        ";
            }
            // line 176
            echo "    </div>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 179
    public function macro_callout($__type__ = null, $__description__ = null, $__title__ = null, $__icon__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "type" => $__type__,
            "description" => $__description__,
            "title" => $__title__,
            "icon" => $__icon__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 180
            echo "    <div class=\"callout callout-";
            echo twig_escape_filter($this->env, (((isset($context["type"]) || array_key_exists("type", $context))) ? (_twig_default_filter(($context["type"] ?? null), "danger")) : ("danger")), "html", null, true);
            echo " lead\">
        ";
            // line 181
            if (($context["title"] ?? null)) {
                echo "<h4>";
                if (($context["icon"] ?? null)) {
                    echo "<i class=\"";
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon(($context["icon"] ?? null), ($context["icon"] ?? null)), "html", null, true);
                    echo "\">";
                }
                echo "</i> ";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["title"] ?? null)), "html", null, true);
                echo "</h4>";
            }
            // line 182
            echo "        <p>";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["description"] ?? null)), "html", null, true);
            echo "</p>
    </div>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 186
    public function macro_info_box_progress($__title__ = null, $__description__ = null, $__amount__ = null, $__percentage__ = null, $__icon__ = null, $__color__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "title" => $__title__,
            "description" => $__description__,
            "amount" => $__amount__,
            "percentage" => $__percentage__,
            "icon" => $__icon__,
            "color" => $__color__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 187
            echo "    <div class=\"info-box bg-";
            echo twig_escape_filter($this->env, ($context["color"] ?? null), "html", null, true);
            echo "\">
        <span class=\"info-box-icon\"><i class=\"";
            // line 188
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon(($context["icon"] ?? null), ($context["icon"] ?? null)), "html", null, true);
            echo "\"></i></span>

        <div class=\"info-box-content\">
            <span class=\"info-box-text\">";
            // line 191
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["title"] ?? null)), "html", null, true);
            echo "</span>
            <span class=\"info-box-number\">";
            // line 192
            echo twig_escape_filter($this->env, ($context["amount"] ?? null), "html", null, true);
            echo "</span>

            <div class=\"progress\">
                <div class=\"progress-bar\" style=\"width: ";
            // line 195
            echo twig_escape_filter($this->env, ($context["percentage"] ?? null), "html", null, true);
            echo "%\"></div>
            </div>
            <span class=\"progress-description\">
                    ";
            // line 198
            echo twig_escape_filter($this->env, ($context["description"] ?? null), "html", null, true);
            echo "
            </span>
        </div>
        <!-- /.info-box-content -->
    </div>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 205
    public function macro_button_group_dropdown($__title__ = null, $__actions__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "title" => $__title__,
            "actions" => $__actions__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 206
            echo "    <div class=\"btn-group\">
        <button type=\"button\" class=\"btn btn-default\">";
            // line 207
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["title"] ?? null)), "html", null, true);
            echo "</button>
        <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" aria-expanded=\"false\">
            <span class=\"caret\"></span>
            <span class=\"sr-only\">";
            // line 210
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.toggle_dropdown"), "html", null, true);
            echo "</span>
        </button>
        <ul class=\"dropdown-menu\" role=\"menu\">
            ";
            // line 213
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["actions"] ?? null));
            foreach ($context['_seq'] as $context["url"] => $context["entry"]) {
                // line 214
                echo "                <li><a href=\"";
                echo twig_escape_filter($this->env, $context["url"], "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["entry"]), "html", null, true);
                echo "</a></li>
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['url'], $context['entry'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 216
            echo "        </ul>
    </div>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 220
    public function macro_table_actions($__actions__ = null, $__class__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "actions" => $__actions__,
            "class" => $__class__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 221
            $macros["macro"] = $this;
            // line 222
            if (0 <= twig_compare(twig_length_filter($this->env, ($context["actions"] ?? null)), 1)) {
                // line 223
                echo "        ";
                if ((null === ($context["class"] ?? null))) {
                    // line 224
                    echo "            ";
                    $context["class"] = "btn-sm";
                    // line 225
                    echo "        ";
                }
                // line 226
                echo "        ";
                $context["trash"] = null;
                // line 227
                echo "        ";
                $context["divider"] = false;
                // line 228
                echo "        <div class=\"btn-group dropdown\">
            <button type=\"button\" class=\"btn btn-default ";
                // line 229
                echo twig_escape_filter($this->env, ($context["class"] ?? null), "html", null, true);
                echo " dropdown-toggle\" data-toggle=\"dropdown\" aria-expanded=\"false\">
                <span class=\"fa fa-chevron-down\"></span>
            </button>
            <ul class=\"dropdown-menu dropdown-menu-right\">";
                // line 233
                ob_start(function () { return ''; });
                // line 234
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(($context["actions"] ?? 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["icon"] => $context["values"]) {
                    // line 235
                    echo "                        ";
                    if ((0 === twig_compare($context["icon"], "divider") && (null === $context["values"]))) {
                        // line 236
                        echo "                            ";
                        if (( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 236) && (($context["divider"] ?? null) === false))) {
                            // line 237
                            echo "                                <li class=\"divider\"></li>
                            ";
                        }
                        // line 239
                        echo "                            ";
                        $context["divider"] = true;
                        // line 240
                        echo "                        ";
                    } else {
                        // line 241
                        echo "                            ";
                        if (twig_test_iterable($context["values"])) {
                            // line 242
                            echo "                                ";
                            $context["values"] = twig_array_merge($context["values"], ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["icon"], [], "actions")]);
                            // line 243
                            echo "                            ";
                        } else {
                            // line 244
                            echo "                                ";
                            $context["values"] = ["url" => $context["values"], "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["icon"], [], "actions")];
                            // line 245
                            echo "                            ";
                        }
                        // line 246
                        echo "                            ";
                        if (0 === twig_compare($context["icon"], "trash")) {
                            // line 247
                            echo "                                ";
                            $context["trash"] = $context["values"];
                            // line 248
                            echo "                            ";
                        } else {
                            // line 249
                            echo "                                ";
                            $context["divider"] = false;
                            // line 250
                            echo "                                <li>
                                    ";
                            // line 251
                            echo twig_call_macro($macros["macro"], "macro_action_button", [$context["icon"], $context["values"], false], 251, $context, $this->getSourceContext());
                            echo "
                                </li>
                            ";
                        }
                        // line 254
                        echo "                        ";
                    }
                    // line 255
                    echo "                    ";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if (isset($context['loop']['length'])) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['icon'], $context['values'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 256
                if ( !(null === ($context["trash"] ?? null))) {
                    // line 257
                    echo "                        ";
                    if ((1 === twig_compare(twig_length_filter($this->env, ($context["actions"] ?? null)), 1) && (($context["divider"] ?? null) === false))) {
                        // line 258
                        echo "                            <li class=\"divider\"></li>
                        ";
                    }
                    // line 260
                    echo "                        <li class=\"delete\">
                            ";
                    // line 261
                    echo twig_call_macro($macros["macro"], "macro_action_button", ["trash", ($context["trash"] ?? null), false], 261, $context, $this->getSourceContext());
                    echo "
                        </li>
                    ";
                }
                $___internal_3ec114318eea397b36d1eaaf1e32dab080760a452d4ca9e71a488adddc06eff3_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
                // line 233
                echo twig_spaceless($___internal_3ec114318eea397b36d1eaaf1e32dab080760a452d4ca9e71a488adddc06eff3_);
                // line 265
                echo "            </ul>
        </div>
    ";
            }

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 270
    public function macro_action_button($__icon__ = null, $__values__ = null, $__type__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "icon" => $__icon__,
            "values" => $__values__,
            "type" => $__type__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 271
            $macros["macro"] = $this;
            // line 272
            ob_start(function () { return ''; });
            // line 273
            $context["id"] = null;
            // line 274
            echo "        ";
            $context["onclick"] = null;
            // line 275
            echo "        ";
            $context["modal"] = null;
            // line 276
            echo "        ";
            $context["toggle"] = null;
            // line 277
            echo "        ";
            $context["url"] = null;
            // line 278
            echo "        ";
            $context["target"] = null;
            // line 279
            echo "        ";
            $context["title"] = null;
            // line 280
            echo "        ";
            $context["disabled"] = false;
            // line 281
            echo "        ";
            $context["attr"] = [];
            // line 282
            echo "        ";
            if ((($context["type"] ?? null) === false)) {
                // line 283
                echo "            ";
                $context["class"] = "";
                // line 284
                echo "        ";
            } elseif ((null === ($context["type"] ?? null))) {
                // line 285
                echo "            ";
                $context["class"] = (("btn btn-default btn-" . ($context["icon"] ?? null)) . " ");
                // line 286
                echo "        ";
            } else {
                // line 287
                echo "            ";
                $context["class"] = (((("btn btn-" . ($context["type"] ?? null)) . " btn-") . ($context["icon"] ?? null)) . " ");
                // line 288
                echo "        ";
            }
            // line 289
            echo "
        ";
            // line 290
            if ( !twig_test_iterable(($context["values"] ?? null))) {
                // line 291
                echo "            ";
                $context["url"] = ($context["values"] ?? null);
                // line 292
                echo "            ";
                if (twig_in_filter("onclick:", ($context["url"] ?? null))) {
                    // line 293
                    echo "                ";
                    $context["onclick"] = twig_replace_filter(($context["url"] ?? null), ["onclick:" => ""]);
                    // line 294
                    echo "                ";
                    $context["url"] = "#";
                    // line 295
                    echo "            ";
                }
                // line 296
                echo "            ";
                if (twig_in_filter("#collapse", ($context["url"] ?? null))) {
                    // line 297
                    echo "                ";
                    $context["toggle"] = "collapse";
                    // line 298
                    echo "            ";
                }
                // line 299
                echo "            ";
                if (twig_in_filter("#modal", ($context["url"] ?? null))) {
                    // line 300
                    echo "                ";
                    $context["modal"] = ($context["url"] ?? null);
                    // line 301
                    echo "                ";
                    $context["url"] = "#";
                    // line 302
                    echo "            ";
                }
                // line 303
                echo "        ";
            } else {
                // line 304
                echo "            ";
                $context["disabled"] = (((twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "disabled", [], "any", true, true, false, 304) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "disabled", [], "any", false, false, false, 304)))) ? (twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "disabled", [], "any", false, false, false, 304)) : (false));
                // line 305
                echo "            ";
                $context["url"] = (((twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "url", [], "any", true, true, false, 305) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "url", [], "any", false, false, false, 305)))) ? (twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "url", [], "any", false, false, false, 305)) : ("#"));
                // line 306
                echo "            ";
                $context["onclick"] = (((twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "onclick", [], "any", true, true, false, 306) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "onclick", [], "any", false, false, false, 306)))) ? (twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "onclick", [], "any", false, false, false, 306)) : (null));
                // line 307
                echo "            ";
                $context["modal"] = (((twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "modal", [], "any", true, true, false, 307) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "modal", [], "any", false, false, false, 307)))) ? (twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "modal", [], "any", false, false, false, 307)) : (null));
                // line 308
                echo "            ";
                $context["toggle"] = (((twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "toggle", [], "any", true, true, false, 308) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "toggle", [], "any", false, false, false, 308)))) ? (twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "toggle", [], "any", false, false, false, 308)) : (null));
                // line 309
                echo "            ";
                $context["target"] = (((twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "target", [], "any", true, true, false, 309) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "target", [], "any", false, false, false, 309)))) ? (twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "target", [], "any", false, false, false, 309)) : (null));
                // line 310
                echo "            ";
                $context["id"] = (((twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "id", [], "any", true, true, false, 310) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "id", [], "any", false, false, false, 310)))) ? (twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "id", [], "any", false, false, false, 310)) : (null));
                // line 311
                echo "            ";
                $context["title"] = (((twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "title", [], "any", true, true, false, 311) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "title", [], "any", false, false, false, 311)))) ? (twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "title", [], "any", false, false, false, 311)) : (null));
                // line 312
                echo "            ";
                $context["class"] = (($context["class"] ?? null) . ((twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "class", [], "any", true, true, false, 312)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "class", [], "any", false, false, false, 312), "")) : ("")));
                // line 313
                echo "            ";
                $context["attr"] = (((twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "attr", [], "any", true, true, false, 313) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "attr", [], "any", false, false, false, 313)))) ? (twig_get_attribute($this->env, $this->source, ($context["values"] ?? null), "attr", [], "any", false, false, false, 313)) : ([]));
                // line 314
                echo "        ";
            }
            // line 315
            echo "
        ";
            // line 316
            if ((($context["disabled"] ?? null) === true)) {
                // line 317
                echo "            ";
                $context["class"] = (($context["class"] ?? null) . " disabled");
                // line 318
                echo "        ";
            }
            // line 319
            echo "
        <a class=\"";
            // line 320
            echo twig_escape_filter($this->env, twig_trim_filter(($context["class"] ?? null)), "html", null, true);
            echo "\" href=\"";
            echo twig_escape_filter($this->env, ($context["url"] ?? null), "html", null, true);
            echo "\"";
            // line 321
            if ((($context["disabled"] ?? null) === true)) {
                echo " disabled=\"disabled\"";
            }
            // line 322
            if ( !twig_test_empty(($context["id"] ?? null))) {
                echo " id=\"";
                echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
                echo "\"";
            }
            // line 323
            if ( !twig_test_empty(($context["toggle"] ?? null))) {
                echo " data-toggle=\"";
                echo twig_escape_filter($this->env, ($context["toggle"] ?? null), "html", null, true);
                echo "\"";
            }
            // line 324
            if ( !twig_test_empty(($context["modal"] ?? null))) {
                echo " data-toggle=\"modal\" data-target=\"";
                echo twig_escape_filter($this->env, ($context["modal"] ?? null), "html", null, true);
                echo "\"";
            }
            // line 325
            if ( !twig_test_empty(($context["onclick"] ?? null))) {
                echo " onclick=\"";
                echo twig_escape_filter($this->env, ($context["onclick"] ?? null), "html", null, true);
                echo "\"";
            }
            // line 326
            if ( !twig_test_empty(($context["target"] ?? null))) {
                echo " target=\"";
                echo twig_escape_filter($this->env, ($context["target"] ?? null), "html", null, true);
                echo "\"";
            }
            // line 327
            if ( !twig_test_empty(($context["attr"] ?? null))) {
                // line 328
                echo "                    ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(($context["attr"] ?? null));
                foreach ($context['_seq'] as $context["name"] => $context["value"]) {
                    // line 329
                    echo "                    ";
                    echo twig_escape_filter($this->env, (" " . $context["name"]), "html", null, true);
                    echo "=";
                    if (twig_in_filter("\"", $context["value"])) {
                        echo "'";
                        echo $context["value"];
                        echo "'";
                    } else {
                        echo "\"";
                        echo $context["value"];
                        echo "\"";
                    }
                    // line 330
                    echo "                    ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['name'], $context['value'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 331
                echo "                ";
            }
            // line 332
            echo "        >";
            if ( !(null === ($context["title"] ?? null))) {
                echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
            } else {
                echo twig_call_macro($macros["macro"], "macro_icon", [($context["icon"] ?? null)], 332, $context, $this->getSourceContext());
            }
            echo "</a>
    ";
            $___internal_64c727ea6be0092a9a8376a7d01196a346623aa618390b02d6b7ee231b6e5e73_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
            // line 272
            echo twig_spaceless($___internal_64c727ea6be0092a9a8376a7d01196a346623aa618390b02d6b7ee231b6e5e73_);

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 336
    public function macro_button_group($__actions__ = null, $__type__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "actions" => $__actions__,
            "type" => $__type__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 337
            $macros["macro"] = $this;
            // line 338
            echo "<div class=\"btn-group\">";
            // line 339
            ob_start(function () { return ''; });
            // line 340
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["actions"] ?? null));
            foreach ($context['_seq'] as $context["icon"] => $context["values"]) {
                // line 341
                echo "            ";
                if (twig_get_attribute($this->env, $this->source, $context["values"], "children", [], "any", true, true, false, 341)) {
                    // line 342
                    echo "                <div class=\"btn-group\">
                    <button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" aria-expanded=\"false\">
                        ";
                    // line 344
                    echo twig_call_macro($macros["macro"], "macro_icon", [$context["icon"]], 344, $context, $this->getSourceContext());
                    echo "&nbsp;
                        <span class=\"caret\"></span>
                        <span class=\"sr-only\">";
                    // line 346
                    echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.toggle_dropdown"), "html", null, true);
                    echo "</span>
                    </button>
                    <ul class=\"dropdown-menu dropdown-menu-right\" role=\"menu\">
                        ";
                    // line 349
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["values"], "children", [], "any", false, false, false, 349));
                    foreach ($context['_seq'] as $context["childIcon"] => $context["childValues"]) {
                        // line 350
                        echo "                            <li>";
                        echo twig_call_macro($macros["macro"], "macro_action_button", [$context["childIcon"], $context["childValues"], false], 350, $context, $this->getSourceContext());
                        echo "</li>
                        ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['childIcon'], $context['childValues'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 352
                    echo "                    </ul>
                </div>
            ";
                } else {
                    // line 355
                    echo "                ";
                    echo twig_call_macro($macros["macro"], "macro_action_button", [$context["icon"], $context["values"], ($context["type"] ?? null)], 355, $context, $this->getSourceContext());
                    echo "
            ";
                }
                // line 357
                echo "        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['icon'], $context['values'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            $___internal_0a051fad26fd0473a70753979a2b4b32b8a15dcebe433a4716b49532a525d819_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
            // line 339
            echo twig_spaceless($___internal_0a051fad26fd0473a70753979a2b4b32b8a15dcebe433a4716b49532a525d819_);
            // line 359
            echo "    </div>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 362
    public function macro_button_action($__icon__ = null, $__url__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "icon" => $__icon__,
            "url" => $__url__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 363
            echo "    <a href=\"";
            echo twig_escape_filter($this->env, ($context["url"] ?? null), "html", null, true);
            echo "\" class=\"btn btn-default btn-";
            echo twig_escape_filter($this->env, ($context["icon"] ?? null), "html", null, true);
            echo "\">
        ";
            // line 364
            echo twig_get_attribute($this->env, $this->source, ($context["macro"] ?? null), "icon", [0 => ($context["icon"] ?? null)], "method", false, false, false, 364);
            echo "
    </a>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 368
    public function macro_tag_list($__taglist__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "taglist" => $__taglist__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 369
            echo "    ";
            $macros["macro"] = $this;
            // line 370
            echo "    ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["taglist"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
                // line 371
                echo "        ";
                echo twig_call_macro($macros["macro"], "macro_badge", [twig_get_attribute($this->env, $this->source, $context["tag"], "name", [], "any", false, false, false, 371), ((twig_get_attribute($this->env, $this->source, $context["tag"], "color", [], "any", true, true, false, 371)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["tag"], "color", [], "any", false, false, false, 371), "#00a65a")) : ("#00a65a"))], 371, $context, $this->getSourceContext());
                echo "
    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 375
    public function macro_form_type_value($__type__ = null, $__value__ = null, $__entity__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "type" => $__type__,
            "value" => $__value__,
            "entity" => $__entity__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 376
            echo "    ";
            $macros["widgets"] = $this;
            // line 377
            echo "    ";
            if (twig_in_filter("\\ColorPickerType", ($context["type"] ?? null))) {
                // line 378
                echo "        ";
                echo twig_call_macro($macros["widgets"], "macro_color_dot", [($context["value"] ?? null), ($context["value"] ?? null)], 378, $context, $this->getSourceContext());
                echo "
    ";
            } elseif (twig_in_filter("\\DurationType",             // line 379
($context["type"] ?? null))) {
                // line 380
                echo "        ";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(($context["value"] ?? null)), "html", null, true);
                echo "
    ";
            } elseif ((twig_in_filter("\\YesNoType",             // line 381
($context["type"] ?? null)) || twig_in_filter("\\CheckBoxType", ($context["type"] ?? null)))) {
                // line 382
                echo "        ";
                echo twig_call_macro($macros["widgets"], "macro_label_boolean", [($context["value"] ?? null)], 382, $context, $this->getSourceContext());
                echo "
    ";
            } elseif (twig_in_filter("\\DatePickerType",             // line 383
($context["type"] ?? null))) {
                // line 384
                echo "        ";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateShort(($context["value"] ?? null)), "html", null, true);
                echo "
    ";
            } elseif (twig_in_filter("\\DateTimePickerType",             // line 385
($context["type"] ?? null))) {
                // line 386
                echo "        ";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateTimeFull(($context["value"] ?? null)), "html", null, true);
                echo "
    ";
            } elseif (twig_in_filter("\\CountryType",             // line 387
($context["type"] ?? null))) {
                // line 388
                echo "        ";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->country(($context["value"] ?? null)), "html", null, true);
                echo "
    ";
            } elseif (twig_in_filter("\\CurrencyType",             // line 389
($context["type"] ?? null))) {
                // line 390
                echo "        ";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->currency(($context["value"] ?? null)), "html", null, true);
                echo "
    ";
            } elseif (twig_in_filter("\\LanguageType",             // line 391
($context["type"] ?? null))) {
                // line 392
                echo "        ";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->language(($context["value"] ?? null)), "html", null, true);
                echo "
    ";
            } elseif (twig_in_filter("\\MoneyType",             // line 393
($context["type"] ?? null))) {
                // line 394
                echo "        ";
                if ((null === ($context["entity"] ?? null))) {
                    // line 395
                    echo "            ";
                    echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
                    echo "
        ";
                } elseif (0 === twig_compare($this->extensions['App\Twig\Extensions']->getClassName(                // line 396
($context["entity"] ?? null)), "App\\Entity\\Timesheet")) {
                    // line 397
                    echo "            ";
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(($context["value"] ?? null), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["entity"] ?? null), "project", [], "any", false, false, false, 397), "customer", [], "any", false, false, false, 397), "currency", [], "any", false, false, false, 397)), "html", null, true);
                    echo "
        ";
                } elseif (0 === twig_compare($this->extensions['App\Twig\Extensions']->getClassName(                // line 398
($context["entity"] ?? null)), "App\\Entity\\Customer")) {
                    // line 399
                    echo "            ";
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(($context["value"] ?? null), twig_get_attribute($this->env, $this->source, ($context["entity"] ?? null), "currency", [], "any", false, false, false, 399)), "html", null, true);
                    echo "
        ";
                } elseif (0 === twig_compare($this->extensions['App\Twig\Extensions']->getClassName(                // line 400
($context["entity"] ?? null)), "App\\Entity\\Project")) {
                    // line 401
                    echo "            ";
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(($context["value"] ?? null), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["entity"] ?? null), "customer", [], "any", false, false, false, 401), "currency", [], "any", false, false, false, 401)), "html", null, true);
                    echo "
        ";
                } elseif ((0 === twig_compare($this->extensions['App\Twig\Extensions']->getClassName(                // line 402
($context["entity"] ?? null)), "App\\Entity\\Activity") &&  !(null === twig_get_attribute($this->env, $this->source, ($context["entity"] ?? null), "project", [], "any", false, false, false, 402)))) {
                    // line 403
                    echo "            ";
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(($context["value"] ?? null), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["entity"] ?? null), "project", [], "any", false, false, false, 403), "customer", [], "any", false, false, false, 403), "currency", [], "any", false, false, false, 403)), "html", null, true);
                    echo "
        ";
                } else {
                    // line 405
                    echo "            ";
                    echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
                    echo "
        ";
                }
                // line 407
                echo "    ";
            } elseif (twig_in_filter("\\TextareaType", ($context["type"] ?? null))) {
                // line 408
                echo "        ";
                echo nl2br(twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true));
                echo "
    ";
            } elseif (twig_in_filter("\\EmailType",             // line 409
($context["type"] ?? null))) {
                // line 410
                echo "        <a href=\"mailto:";
                echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
                echo "</a>
    ";
            } else {
                // line 412
                echo "        ";
                echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
                echo "
    ";
            }

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 416
    public function macro_team_list($__teams__ = null, $__showTitle__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "teams" => $__teams__,
            "showTitle" => $__showTitle__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 417
            echo "    ";
            if ((null === ($context["showTitle"] ?? null))) {
                // line 418
                echo "        ";
                $context["showTitle"] = true;
                // line 419
                echo "    ";
            }
            // line 420
            echo "    ";
            $macros["macro"] = $this;
            // line 421
            echo "    <table class=\"table table-hover dataTable\" role=\"grid\">
        ";
            // line 422
            if (($context["showTitle"] ?? null)) {
                // line 423
                echo "        <thead>
            <tr>
                <th>";
                // line 425
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.team"), "html", null, true);
                echo "</th>
                <th>";
                // line 426
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.user"), "html", null, true);
                echo "</th>
            </tr>
        </thead>
        ";
            }
            // line 430
            echo "        <tbody>
        ";
            // line 431
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["teams"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["team"]) {
                // line 432
                echo "            <tr";
                if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("edit", $context["team"])) {
                    echo " class=\"modal-ajax-form open-edit\" data-href=\"";
                    echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_team_member", ["id" => twig_get_attribute($this->env, $this->source, $context["team"], "id", [], "any", false, false, false, 432)]), "html", null, true);
                    echo "\"";
                }
                echo ">
                <td>
                    ";
                // line 434
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["team"], "name", [], "any", false, false, false, 434), "html", null, true);
                echo "
                </td>
                <td class=\"avatars\">
                    ";
                // line 437
                $context["userTeamCount"] = twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["team"], "users", [], "any", false, false, false, 437));
                // line 438
                echo "                    ";
                echo twig_call_macro($macros["macro"], "macro_user_avatar", [twig_get_attribute($this->env, $this->source, $context["team"], "teamlead", [], "any", false, false, false, 438), (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.teamlead") . ": ") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["team"], "teamlead", [], "any", false, false, false, 438), "displayName", [], "any", false, false, false, 438)), "teamlead"], 438, $context, $this->getSourceContext());
                echo "
                    ";
                // line 439
                $context["teamHiddenId"] = ((("team_" . twig_get_attribute($this->env, $this->source, $context["team"], "id", [], "any", false, false, false, 439)) . "_hiddenUser") . twig_random($this->env));
                // line 440
                echo "                    ";
                $context["counter"] = 0;
                // line 441
                echo "                    ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["team"], "users", [], "any", false, false, false, 441));
                $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["user"]) {
                    // line 442
                    echo "                        ";
                    if (0 !== twig_compare($context["user"], twig_get_attribute($this->env, $this->source, $context["team"], "teamlead", [], "any", false, false, false, 442))) {
                        // line 443
                        echo "                            ";
                        echo twig_call_macro($macros["macro"], "macro_user_avatar", [$context["user"]], 443, $context, $this->getSourceContext());
                        echo "
                            ";
                        // line 444
                        $context["counter"] = (($context["counter"] ?? null) + 1);
                        // line 445
                        echo "                        ";
                    }
                    // line 446
                    echo "                        ";
                    if (((1 === twig_compare(($context["userTeamCount"] ?? null), 5) && 0 === twig_compare(($context["counter"] ?? null), 4)) &&  !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 446))) {
                        // line 447
                        echo "                            <a href=\"#\" onclick=\"\$('#";
                        echo twig_escape_filter($this->env, ($context["teamHiddenId"] ?? null), "html", null, true);
                        echo "').toggleClass('hidden');\$(this).hide();return false;\" class=\"badge\">";
                        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.plus_more", ["%count%" => (($context["userTeamCount"] ?? null) - 5)]), "html", null, true);
                        echo "</a>
                            <span class=\"hidden\" id=\"";
                        // line 448
                        echo twig_escape_filter($this->env, ($context["teamHiddenId"] ?? null), "html", null, true);
                        echo "\">
                            ";
                        // line 449
                        $context["counter"] = (($context["counter"] ?? null) + 1);
                        // line 450
                        echo "                        ";
                    }
                    // line 451
                    echo "                        ";
                    if (((1 === twig_compare(($context["userTeamCount"] ?? null), 5) && 0 !== twig_compare(($context["counter"] ?? null), 4)) && twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 451))) {
                        // line 452
                        echo "                            </span>
                        ";
                    }
                    // line 454
                    echo "                    ";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if (isset($context['loop']['length'])) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['user'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 455
                echo "                </td>
            </tr>
        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['team'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 458
            echo "        </tbody>
    </table>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 462
    public function macro_nothing_found($__events__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "events" => $__events__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 463
            echo "    ";
            echo twig_call_macro($macros["_self"], "macro_callout", ["warning", "error.no_entries_found"], 463, $context, $this->getSourceContext());
            echo "
    ";
            // line 464
            if ( !twig_test_empty(($context["events"] ?? null))) {
                // line 465
                echo "    <script type=\"text/javascript\">
        document.addEventListener('kimai.initialized', function() {
            KimaiReloadPageWidget.create('";
                // line 467
                echo twig_escape_filter($this->env, ($context["events"] ?? null), "html", null, true);
                echo "');
        });
    </script>
    ";
            }

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    public function getTemplateName()
    {
        return "macros/widgets.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  2024 => 467,  2020 => 465,  2018 => 464,  2013 => 463,  2000 => 462,  1989 => 458,  1981 => 455,  1967 => 454,  1963 => 452,  1960 => 451,  1957 => 450,  1955 => 449,  1951 => 448,  1944 => 447,  1941 => 446,  1938 => 445,  1936 => 444,  1931 => 443,  1928 => 442,  1910 => 441,  1907 => 440,  1905 => 439,  1900 => 438,  1898 => 437,  1892 => 434,  1882 => 432,  1878 => 431,  1875 => 430,  1868 => 426,  1864 => 425,  1860 => 423,  1858 => 422,  1855 => 421,  1852 => 420,  1849 => 419,  1846 => 418,  1843 => 417,  1829 => 416,  1816 => 412,  1808 => 410,  1806 => 409,  1801 => 408,  1798 => 407,  1792 => 405,  1786 => 403,  1784 => 402,  1779 => 401,  1777 => 400,  1772 => 399,  1770 => 398,  1765 => 397,  1763 => 396,  1758 => 395,  1755 => 394,  1753 => 393,  1748 => 392,  1746 => 391,  1741 => 390,  1739 => 389,  1734 => 388,  1732 => 387,  1727 => 386,  1725 => 385,  1720 => 384,  1718 => 383,  1713 => 382,  1711 => 381,  1706 => 380,  1704 => 379,  1699 => 378,  1696 => 377,  1693 => 376,  1678 => 375,  1662 => 371,  1657 => 370,  1654 => 369,  1641 => 368,  1629 => 364,  1622 => 363,  1608 => 362,  1598 => 359,  1596 => 339,  1589 => 357,  1583 => 355,  1578 => 352,  1569 => 350,  1565 => 349,  1559 => 346,  1554 => 344,  1550 => 342,  1547 => 341,  1543 => 340,  1541 => 339,  1539 => 338,  1537 => 337,  1523 => 336,  1514 => 272,  1504 => 332,  1501 => 331,  1495 => 330,  1482 => 329,  1477 => 328,  1475 => 327,  1469 => 326,  1463 => 325,  1457 => 324,  1451 => 323,  1445 => 322,  1441 => 321,  1436 => 320,  1433 => 319,  1430 => 318,  1427 => 317,  1425 => 316,  1422 => 315,  1419 => 314,  1416 => 313,  1413 => 312,  1410 => 311,  1407 => 310,  1404 => 309,  1401 => 308,  1398 => 307,  1395 => 306,  1392 => 305,  1389 => 304,  1386 => 303,  1383 => 302,  1380 => 301,  1377 => 300,  1374 => 299,  1371 => 298,  1368 => 297,  1365 => 296,  1362 => 295,  1359 => 294,  1356 => 293,  1353 => 292,  1350 => 291,  1348 => 290,  1345 => 289,  1342 => 288,  1339 => 287,  1336 => 286,  1333 => 285,  1330 => 284,  1327 => 283,  1324 => 282,  1321 => 281,  1318 => 280,  1315 => 279,  1312 => 278,  1309 => 277,  1306 => 276,  1303 => 275,  1300 => 274,  1298 => 273,  1296 => 272,  1294 => 271,  1279 => 270,  1267 => 265,  1265 => 233,  1258 => 261,  1255 => 260,  1251 => 258,  1248 => 257,  1246 => 256,  1232 => 255,  1229 => 254,  1223 => 251,  1220 => 250,  1217 => 249,  1214 => 248,  1211 => 247,  1208 => 246,  1205 => 245,  1202 => 244,  1199 => 243,  1196 => 242,  1193 => 241,  1190 => 240,  1187 => 239,  1183 => 237,  1180 => 236,  1177 => 235,  1160 => 234,  1158 => 233,  1152 => 229,  1149 => 228,  1146 => 227,  1143 => 226,  1140 => 225,  1137 => 224,  1134 => 223,  1132 => 222,  1130 => 221,  1116 => 220,  1105 => 216,  1094 => 214,  1090 => 213,  1084 => 210,  1078 => 207,  1075 => 206,  1061 => 205,  1046 => 198,  1040 => 195,  1034 => 192,  1030 => 191,  1024 => 188,  1019 => 187,  1001 => 186,  988 => 182,  976 => 181,  971 => 180,  955 => 179,  945 => 176,  939 => 174,  931 => 172,  929 => 171,  925 => 170,  918 => 169,  916 => 168,  910 => 166,  894 => 165,  880 => 162,  866 => 161,  846 => 158,  844 => 157,  829 => 156,  816 => 152,  808 => 150,  805 => 149,  791 => 148,  778 => 144,  772 => 142,  769 => 141,  766 => 140,  753 => 139,  735 => 135,  730 => 134,  716 => 133,  705 => 129,  702 => 127,  695 => 125,  693 => 124,  684 => 123,  677 => 121,  660 => 120,  648 => 117,  645 => 116,  642 => 115,  628 => 114,  616 => 111,  613 => 110,  610 => 109,  607 => 108,  604 => 107,  601 => 106,  587 => 105,  575 => 102,  572 => 101,  569 => 100,  566 => 99,  563 => 98,  560 => 97,  557 => 96,  554 => 95,  551 => 94,  548 => 93,  545 => 92,  542 => 91,  539 => 90,  525 => 89,  503 => 85,  490 => 83,  487 => 82,  484 => 81,  469 => 80,  457 => 77,  454 => 76,  440 => 75,  428 => 72,  425 => 71,  412 => 70,  403 => 67,  390 => 66,  378 => 63,  375 => 62,  372 => 61,  369 => 60,  366 => 59,  363 => 58,  360 => 57,  357 => 56,  354 => 55,  351 => 54,  348 => 53,  345 => 52,  332 => 51,  320 => 48,  317 => 47,  304 => 46,  291 => 42,  285 => 40,  282 => 39,  279 => 38,  266 => 37,  254 => 34,  241 => 33,  227 => 27,  221 => 26,  218 => 25,  215 => 24,  209 => 22,  206 => 21,  202 => 20,  200 => 19,  195 => 16,  193 => 15,  180 => 14,  168 => 9,  164 => 7,  162 => 6,  149 => 5,  137 => 2,  124 => 1,  119 => 461,  116 => 415,  113 => 374,  110 => 367,  107 => 361,  104 => 335,  101 => 269,  98 => 219,  95 => 204,  92 => 185,  89 => 178,  86 => 164,  83 => 160,  80 => 155,  77 => 147,  74 => 138,  71 => 132,  68 => 119,  65 => 113,  62 => 104,  59 => 88,  56 => 79,  53 => 74,  50 => 69,  47 => 65,  44 => 50,  41 => 45,  38 => 36,);
    }

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