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

/* activity/index.html.twig */
class __TwigTemplate_147e1238089b1193f9967298eace8c11424d842bd8191757289491e45842bd52 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'page_title' => [$this, 'block_page_title'],
            'page_search' => [$this, 'block_page_search'],
            'page_actions' => [$this, 'block_page_actions'],
            'main_before' => [$this, 'block_main_before'],
            'main' => [$this, 'block_main'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "base.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", "activity/index.html.twig", 2)->unwrap();
        // line 3
        $macros["tables"] = $this->macros["tables"] = $this->loadTemplate("macros/datatables.html.twig", "activity/index.html.twig", 3)->unwrap();
        // line 4
        $macros["toolbar"] = $this->macros["toolbar"] = $this->loadTemplate("macros/toolbar.html.twig", "activity/index.html.twig", 4)->unwrap();
        // line 5
        $macros["actions"] = $this->macros["actions"] = $this->loadTemplate("activity/actions.html.twig", "activity/index.html.twig", 5)->unwrap();
        // line 7
        $context["columns"] = ["name" => ["class" => "alwaysVisible"], "project" => ["class" => "hidden-xs"], "comment" => ["class" => "hidden-xs hidden-sm", "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.description")]];
        // line 12
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["metaColumns"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
            // line 13
            $context["columns"] = twig_array_merge(($context["columns"] ?? null), [("mf_" . twig_get_attribute($this->env, $this->source,             // line 14
$context["field"], "name", [], "any", false, false, false, 14)) => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["field"], "label", [], "any", false, false, false, 14)), "class" => "hidden-xs hidden-sm", "orderBy" => false]]);
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 17
        $context["columns"] = twig_array_merge(($context["columns"] ?? null), ["team" => ["class" => "text-center w-min", "orderBy" => false], "visible" => ["class" => "text-center hidden w-min"], "actions" => ["class" => "actions alwaysVisible"]]);
        // line 23
        $context["tableName"] = "activity_admin";
        // line 1
        $this->parent = $this->loadTemplate("base.html.twig", "activity/index.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

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

    // line 26
    public function block_page_search($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo twig_call_macro($macros["toolbar"], "macro_dropDownSearch", [($context["toolbarForm"] ?? null)], 26, $context, $this->getSourceContext());
    }

    // line 27
    public function block_page_actions($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo twig_call_macro($macros["actions"], "macro_activities", ["index"], 27, $context, $this->getSourceContext());
    }

    // line 29
    public function block_main_before($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 30
        echo "    ";
        echo twig_call_macro($macros["tables"], "macro_data_table_column_modal", [($context["tableName"] ?? null), ($context["columns"] ?? null)], 30, $context, $this->getSourceContext());
        echo "
";
    }

    // line 33
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 34
        echo "
    ";
        // line 35
        if (0 === twig_compare(twig_get_attribute($this->env, $this->source, ($context["entries"] ?? null), "count", [], "any", false, false, false, 35), 0)) {
            // line 36
            echo "        ";
            echo twig_call_macro($macros["widgets"], "macro_nothing_found", ["kimai.activityUpdate"], 36, $context, $this->getSourceContext());
            echo "
    ";
        } else {
            // line 38
            echo "        ";
            echo twig_call_macro($macros["tables"], "macro_datatable_header", [($context["tableName"] ?? null), ($context["columns"] ?? null), ($context["query"] ?? null), ["reload" => "kimai.activityUpdate kimai.activityTeamUpdate"]], 38, $context, $this->getSourceContext());
            echo "

        ";
            // line 40
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["entries"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
                // line 41
                echo "            <tr";
                if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("view", $context["entry"])) {
                    echo " class=\"alternative-link open-edit\" data-href=\"";
                    echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("activity_details", ["id" => twig_get_attribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 41)]), "html", null, true);
                    echo "\"";
                }
                echo ">
                <td class=\"";
                // line 42
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "name"], 42, $context, $this->getSourceContext());
                echo "\">";
                echo twig_call_macro($macros["widgets"], "macro_label_color_dot", ["activity", true, twig_get_attribute($this->env, $this->source, $context["entry"], "name", [], "any", false, false, false, 42), null, twig_get_attribute($this->env, $this->source, $context["entry"], "color", [], "any", false, false, false, 42)], 42, $context, $this->getSourceContext());
                echo "</td>
                <td class=\"";
                // line 43
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "project"], 43, $context, $this->getSourceContext());
                echo "\">
                    ";
                // line 45
                echo "                    ";
                if (twig_get_attribute($this->env, $this->source, $context["entry"], "project", [], "any", false, false, false, 45)) {
                    // line 46
                    echo "                        ";
                    echo twig_call_macro($macros["widgets"], "macro_label_project", [twig_get_attribute($this->env, $this->source, $context["entry"], "project", [], "any", false, false, false, 46)], 46, $context, $this->getSourceContext());
                    echo "
                        ";
                    // line 47
                    if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "project", [], "any", false, false, false, 47), "customer", [], "any", false, false, false, 47)) {
                        // line 48
                        echo "                            <br>
                            <small>
                                ";
                        // line 50
                        echo twig_call_macro($macros["widgets"], "macro_label_customer", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "project", [], "any", false, false, false, 50), "customer", [], "any", false, false, false, 50)], 50, $context, $this->getSourceContext());
                        echo "
                            </small>
                        ";
                    }
                    // line 53
                    echo "                    ";
                }
                // line 54
                echo "                </td>
                <td class=\"";
                // line 55
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "comment"], 55, $context, $this->getSourceContext());
                echo "\">";
                echo $this->extensions['App\Twig\MarkdownExtension']->commentContent(twig_get_attribute($this->env, $this->source, $context["entry"], "comment", [], "any", false, false, false, 55));
                echo "</td>
                ";
                // line 56
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(($context["metaColumns"] ?? null));
                foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
                    // line 57
                    echo "                    <td class=\"";
                    echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), ("mf_" . twig_get_attribute($this->env, $this->source, $context["field"], "name", [], "any", false, false, false, 57))], 57, $context, $this->getSourceContext());
                    echo "\">
                        ";
                    // line 58
                    echo twig_call_macro($macros["tables"], "macro_datatable_meta_column", [$context["entry"], $context["field"]], 58, $context, $this->getSourceContext());
                    echo "
                    </td>
                ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 61
                echo "                <td class=\"";
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "team"], 61, $context, $this->getSourceContext());
                echo "\">";
                echo twig_call_macro($macros["widgets"], "macro_badge_team_access", [twig_get_attribute($this->env, $this->source, $context["entry"], "teams", [], "any", false, false, false, 61)], 61, $context, $this->getSourceContext());
                echo "</td>
                <td class=\"";
                // line 62
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "visible"], 62, $context, $this->getSourceContext());
                echo "\">";
                echo twig_call_macro($macros["widgets"], "macro_label_visible", [twig_get_attribute($this->env, $this->source, $context["entry"], "visible", [], "any", false, false, false, 62)], 62, $context, $this->getSourceContext());
                echo "</td>
                <td class=\"";
                // line 63
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "actions"], 63, $context, $this->getSourceContext());
                echo "\">";
                echo twig_call_macro($macros["actions"], "macro_activity", [$context["entry"], "index"], 63, $context, $this->getSourceContext());
                echo "</td>
            </tr>
        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 66
            echo "
        ";
            // line 67
            echo twig_call_macro($macros["tables"], "macro_data_table_footer", [($context["entries"] ?? null), "admin_activity_paginated"], 67, $context, $this->getSourceContext());
            echo "
    ";
        }
        // line 69
        echo "
";
    }

    public function getTemplateName()
    {
        return "activity/index.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  234 => 69,  229 => 67,  226 => 66,  215 => 63,  209 => 62,  202 => 61,  193 => 58,  188 => 57,  184 => 56,  178 => 55,  175 => 54,  172 => 53,  166 => 50,  162 => 48,  160 => 47,  155 => 46,  152 => 45,  148 => 43,  142 => 42,  133 => 41,  129 => 40,  123 => 38,  117 => 36,  115 => 35,  112 => 34,  108 => 33,  101 => 30,  97 => 29,  90 => 27,  83 => 26,  76 => 25,  71 => 1,  69 => 23,  67 => 17,  61 => 14,  60 => 13,  56 => 12,  54 => 7,  52 => 5,  50 => 4,  48 => 3,  46 => 2,  39 => 1,);
    }

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