<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

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

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

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

        $this->blocks = [
            'main' => [$this, 'block_main'],
        ];
    }

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

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

    // line 4
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 5
        echo "
    <div class=\"row\">
        <div class=\"col-md-12\">

            <div class=\"box box-";
        // line 9
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 9), "type", [], "any", false, false, false, 9), "html", null, true);
        echo " data_table\">
                <div class=\"box-body no-padding\">
                    <div class=\"dataTables_wrapper form-inline dt-bootstrap\">
                        <div class=\"row\">
                            <div class=\"col-sm-12\">
                                <table class=\"table table-hover dataTable\" role=\"grid\">
                                    <thead>
                                    <tr>
                                        <th>";
        // line 17
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.team"), "html", null, true);
        echo "</th>
                                        <th>";
        // line 18
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.teamlead"), "html", null, true);
        echo "</th>
                                        <th>";
        // line 19
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.user"), "html", null, true);
        echo "</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    ";
        // line 23
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["user"] ?? null), "teams", [], "any", false, false, false, 23));
        foreach ($context['_seq'] as $context["_key"] => $context["team"]) {
            // line 24
            echo "                                        <tr>
                                            <td>
                                                ";
            // line 26
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["team"], "name", [], "any", false, false, false, 26), "html", null, true);
            echo "
                                            </td>
                                            <td>
                                                ";
            // line 29
            echo twig_call_macro($macros["widgets"], "macro_user_avatar", [twig_get_attribute($this->env, $this->source, $context["team"], "teamlead", [], "any", false, false, false, 29)], 29, $context, $this->getSourceContext());
            echo "
                                                ";
            // line 33
            echo "                                            </td>
                                            <td class=\"avatars\">
                                                ";
            // line 35
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["team"], "users", [], "any", false, false, false, 35));
            foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
                // line 36
                echo "                                                    ";
                echo twig_call_macro($macros["widgets"], "macro_user_avatar", [$context["user"]], 36, $context, $this->getSourceContext());
                echo "
                                                    ";
                // line 40
                echo "                                                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['user'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 41
            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 44
        echo "                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  130 => 44,  122 => 41,  116 => 40,  111 => 36,  107 => 35,  103 => 33,  99 => 29,  93 => 26,  89 => 24,  85 => 23,  78 => 19,  74 => 18,  70 => 17,  59 => 9,  53 => 5,  49 => 4,  44 => 1,  42 => 2,  35 => 1,);
    }

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