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

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

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

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

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 2
        $context["options"] = ["teams" =>         // line 3
($context["teams"] ?? null), "team" => ((        // line 4
(isset($context["team"]) || array_key_exists("team", $context))) ? (_twig_default_filter(($context["team"] ?? null), null)) : (null)), "route_create" => ((        // line 5
(isset($context["route_create"]) || array_key_exists("route_create", $context))) ? (_twig_default_filter(($context["route_create"] ?? null), null)) : (null)), "route_edit" => ((        // line 6
(isset($context["route_edit"]) || array_key_exists("route_edit", $context))) ? (_twig_default_filter(($context["route_edit"] ?? null), null)) : (null)), "empty_message" => ((        // line 7
(isset($context["empty_message"]) || array_key_exists("empty_message", $context))) ? (_twig_default_filter(($context["empty_message"] ?? null), "team.visibility_global")) : ("team.visibility_global"))];
        // line 10
        $this->loadTemplate("embeds/teams.html.twig", "embeds/teams.html.twig", 10, "1600527176")->display(twig_array_merge($context, ($context["options"] ?? null)));
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  44 => 10,  42 => 7,  41 => 6,  40 => 5,  39 => 4,  38 => 3,  37 => 2,);
    }

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


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

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

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

        $this->blocks = [
            'box_tools' => [$this, 'block_box_tools'],
            'box_attributes' => [$this, 'block_box_attributes'],
            'box_title' => [$this, 'block_box_title'],
            'box_body_class' => [$this, 'block_box_body_class'],
            'box_body' => [$this, 'block_box_body'],
        ];
    }

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

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

    // line 12
    public function block_box_tools($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 13
        echo "        ";
        if ((( !(null === ($context["route_create"] ?? null)) && (0 === twig_compare(twig_length_filter($this->env, ($context["teams"] ?? null)), 0) || (null === ($context["team"] ?? null)))) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("create_team"))) {
            // line 14
            echo "            <a class=\"btn btn-default btn-sm\" href=\"";
            echo twig_escape_filter($this->env, ($context["route_create"] ?? null), "html", null, true);
            echo "\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("team.create_default", [], "teams"), "html", null, true);
            echo "\"><i class=\"";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("create"), "html", null, true);
            echo "\"></i></a>
        ";
        }
        // line 16
        echo "        ";
        if ( !(null === ($context["route_edit"] ?? null))) {
            // line 17
            echo "            <a class=\"modal-ajax-form open-edit btn btn-default btn-sm\" href=\"";
            echo twig_escape_filter($this->env, ($context["route_edit"] ?? null), "html", null, true);
            echo "\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.edit"), "html", null, true);
            echo "\"><i class=\"";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("edit"), "html", null, true);
            echo "\"></i></a>
        ";
        }
        // line 19
        echo "    ";
    }

    // line 20
    public function block_box_attributes($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo "id=\"team_listing_box\"";
    }

    // line 21
    public function block_box_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 22
        echo "        ";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("permissions", [], "actions"), "html", null, true);
        echo "
        ";
        // line 23
        if (1 === twig_compare(twig_length_filter($this->env, ($context["teams"] ?? null)), 0)) {
            echo "<small class=\"hidden-xs\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("team.visibility_restricted", [], "teams"), "html", null, true);
            echo "</small>";
        }
        // line 24
        echo "    ";
    }

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

    // line 26
    public function block_box_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 27
        echo "        ";
        if (1 === twig_compare(twig_length_filter($this->env, ($context["teams"] ?? null)), 0)) {
            // line 28
            echo "            ";
            echo twig_call_macro($macros["widgets"], "macro_team_list", [($context["teams"] ?? null)], 28, $context, $this->getSourceContext());
            echo "
        ";
        } else {
            // line 30
            echo "            <div class=\"comment\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((((isset($context["empty_message"]) || array_key_exists("empty_message", $context))) ? (_twig_default_filter(($context["empty_message"] ?? null), "team.visibility_global")) : ("team.visibility_global")), [], "teams"), "html", null, true);
            echo "</div>
        ";
        }
        // line 32
        echo "    ";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  192 => 32,  186 => 30,  180 => 28,  177 => 27,  173 => 26,  166 => 25,  162 => 24,  156 => 23,  151 => 22,  147 => 21,  140 => 20,  136 => 19,  126 => 17,  123 => 16,  113 => 14,  110 => 13,  106 => 12,  101 => 10,  99 => 11,  44 => 10,  42 => 7,  41 => 6,  40 => 5,  39 => 4,  38 => 3,  37 => 2,);
    }

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