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

/* project/index.html.twig */
class __TwigTemplate_ea04ad931bf817a5cf0b5b34227baf06ed8fab98fe53fcaecf97e12d39ff058f 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", "project/index.html.twig", 2)->unwrap();
        // line 3
        $macros["tables"] = $this->macros["tables"] = $this->loadTemplate("macros/datatables.html.twig", "project/index.html.twig", 3)->unwrap();
        // line 4
        $macros["toolbar"] = $this->macros["toolbar"] = $this->loadTemplate("macros/toolbar.html.twig", "project/index.html.twig", 4)->unwrap();
        // line 5
        $macros["actions"] = $this->macros["actions"] = $this->loadTemplate("project/actions.html.twig", "project/index.html.twig", 5)->unwrap();
        // line 7
        $context["columns"] = ["name" => ["class" => "alwaysVisible"], "customer" => ["class" => "hidden-xs"], "comment" => ["class" => "hidden-xs hidden-sm", "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.description")], "orderNumber" => ["class" => "hidden-xs hidden-sm hidden"], "orderDate" => ["class" => "hidden-xs hidden-sm hidden"], "start" => ["class" => "hidden-xs hidden-sm hidden", "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.project_start")], "end" => ["class" => "hidden-xs hidden-sm hidden", "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.project_end")]];
        // line 16
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["metaColumns"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
            // line 17
            $context["columns"] = twig_array_merge(($context["columns"] ?? null), [("mf_" . twig_get_attribute($this->env, $this->source,             // line 18
$context["field"], "name", [], "any", false, false, false, 18)) => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["field"], "label", [], "any", false, false, false, 18)), "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 21
        $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 27
        $context["tableName"] = "project_admin";
        // line 1
        $this->parent = $this->loadTemplate("base.html.twig", "project/index.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 29
    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_project.title"), "html", null, true);
    }

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

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

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

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

        ";
            // line 44
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["entries"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
                // line 45
                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("project_details", ["id" => twig_get_attribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 45)]), "html", null, true);
                    echo "\"";
                }
                echo ">
                <td class=\"";
                // line 46
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "name"], 46, $context, $this->getSourceContext());
                echo "\">";
                echo twig_call_macro($macros["widgets"], "macro_label_color_dot", ["project", true, twig_get_attribute($this->env, $this->source, $context["entry"], "name", [], "any", false, false, false, 46), null, twig_get_attribute($this->env, $this->source, $context["entry"], "color", [], "any", false, false, false, 46)], 46, $context, $this->getSourceContext());
                echo "</td>
                <td class=\"";
                // line 47
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "customer"], 47, $context, $this->getSourceContext());
                echo "\">";
                echo twig_call_macro($macros["widgets"], "macro_label_customer", [twig_get_attribute($this->env, $this->source, $context["entry"], "customer", [], "any", false, false, false, 47)], 47, $context, $this->getSourceContext());
                echo "</td>
                <td class=\"";
                // line 48
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "comment"], 48, $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, 48));
                echo "</td>
                <td class=\"";
                // line 49
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "orderNumber"], 49, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "orderNumber", [], "any", false, false, false, 49), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 50
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "orderDate"], 50, $context, $this->getSourceContext());
                echo "\">";
                if ( !(null === twig_get_attribute($this->env, $this->source, $context["entry"], "orderDate", [], "any", false, false, false, 50))) {
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateTimeFull(twig_get_attribute($this->env, $this->source, $context["entry"], "orderDate", [], "any", false, false, false, 50)), "html", null, true);
                }
                echo "</td>
                <td class=\"";
                // line 51
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "start"], 51, $context, $this->getSourceContext());
                echo "\">";
                if ( !(null === twig_get_attribute($this->env, $this->source, $context["entry"], "start", [], "any", false, false, false, 51))) {
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateTimeFull(twig_get_attribute($this->env, $this->source, $context["entry"], "start", [], "any", false, false, false, 51)), "html", null, true);
                }
                echo "</td>
                <td class=\"";
                // line 52
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "end"], 52, $context, $this->getSourceContext());
                echo "\">";
                if ( !(null === twig_get_attribute($this->env, $this->source, $context["entry"], "end", [], "any", false, false, false, 52))) {
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateTimeFull(twig_get_attribute($this->env, $this->source, $context["entry"], "end", [], "any", false, false, false, 52)), "html", null, true);
                }
                echo "</td>
                ";
                // line 53
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(($context["metaColumns"] ?? null));
                foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
                    // line 54
                    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, 54))], 54, $context, $this->getSourceContext());
                    echo "\">
                        ";
                    // line 55
                    echo twig_call_macro($macros["tables"], "macro_datatable_meta_column", [$context["entry"], $context["field"]], 55, $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 58
                echo "                <td class=\"";
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "team"], 58, $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, 58)], 58, $context, $this->getSourceContext());
                echo "</td>
                <td class=\"";
                // line 59
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "visible"], 59, $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, 59)], 59, $context, $this->getSourceContext());
                echo "</td>
                <td class=\"";
                // line 60
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "actions"], 60, $context, $this->getSourceContext());
                echo "\">";
                echo twig_call_macro($macros["actions"], "macro_project", [$context["entry"], "index"], 60, $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 63
            echo "
        ";
            // line 64
            echo twig_call_macro($macros["tables"], "macro_data_table_footer", [($context["entries"] ?? null), "admin_project_paginated"], 64, $context, $this->getSourceContext());
            echo "
    ";
        }
        // line 66
        echo "
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  240 => 66,  235 => 64,  232 => 63,  221 => 60,  215 => 59,  208 => 58,  199 => 55,  194 => 54,  190 => 53,  182 => 52,  174 => 51,  166 => 50,  160 => 49,  154 => 48,  148 => 47,  142 => 46,  133 => 45,  129 => 44,  123 => 42,  117 => 40,  115 => 39,  112 => 38,  108 => 37,  101 => 34,  97 => 33,  90 => 31,  83 => 30,  76 => 29,  71 => 1,  69 => 27,  67 => 21,  61 => 18,  60 => 17,  56 => 16,  54 => 7,  52 => 5,  50 => 4,  48 => 3,  46 => 2,  39 => 1,);
    }

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