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

/* customer/index.html.twig */
class __TwigTemplate_7ec5455b48626585588eebf7f8979da02d0134ffe6d2060cb21db0aa41556658 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", "customer/index.html.twig", 2)->unwrap();
        // line 3
        $macros["tables"] = $this->macros["tables"] = $this->loadTemplate("macros/datatables.html.twig", "customer/index.html.twig", 3)->unwrap();
        // line 4
        $macros["toolbar"] = $this->macros["toolbar"] = $this->loadTemplate("macros/toolbar.html.twig", "customer/index.html.twig", 4)->unwrap();
        // line 5
        $macros["actions"] = $this->macros["actions"] = $this->loadTemplate("customer/actions.html.twig", "customer/index.html.twig", 5)->unwrap();
        // line 7
        $context["columns"] = ["name" => ["class" => "alwaysVisible"], "comment" => ["class" => "hidden-xs hidden-sm", "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.description")], "number" => ["class" => "hidden-xs hidden-sm hidden"], "company" => ["class" => "hidden-xs hidden-sm hidden"], "vat_id" => ["class" => "hidden-xs hidden-sm hidden", "orderBy" => "vatId"], "contact" => ["class" => "hidden-xs hidden-sm hidden"], "address" => ["class" => "hidden-xs hidden-sm hidden"], "country" => ["class" => "hidden-xs hidden-sm hidden"], "currency" => ["class" => "hidden-xs hidden-sm hidden"], "phone" => ["class" => "hidden-xs hidden-sm hidden"], "fax" => ["class" => "hidden-xs hidden-sm hidden"], "mobile" => ["class" => "hidden-xs hidden-sm hidden"], "email" => ["class" => "hidden-xs hidden-sm hidden"], "homepage" => ["class" => "hidden-xs hidden-sm hidden"]];
        // line 23
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["metaColumns"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
            // line 24
            $context["columns"] = twig_array_merge(($context["columns"] ?? null), [("mf_" . twig_get_attribute($this->env, $this->source,             // line 25
$context["field"], "name", [], "any", false, false, false, 25)) => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["field"], "label", [], "any", false, false, false, 25)), "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 28
        $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 34
        $context["tableName"] = "customer_admin";
        // line 1
        $this->parent = $this->loadTemplate("base.html.twig", "customer/index.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

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

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

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

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

    // line 44
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 45
        echo "
    ";
        // line 46
        if (0 === twig_compare(twig_get_attribute($this->env, $this->source, ($context["entries"] ?? null), "count", [], "any", false, false, false, 46), 0)) {
            // line 47
            echo "        ";
            echo twig_call_macro($macros["widgets"], "macro_nothing_found", ["kimai.customerUpdate kimai.customerTeamUpdate"], 47, $context, $this->getSourceContext());
            echo "
    ";
        } else {
            // line 49
            echo "        ";
            echo twig_call_macro($macros["tables"], "macro_datatable_header", [($context["tableName"] ?? null), ($context["columns"] ?? null), ($context["query"] ?? null), ["reload" => "kimai.customerUpdate kimai.customerTeamUpdate"]], 49, $context, $this->getSourceContext());
            echo "

        ";
            // line 51
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["entries"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
                // line 52
                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("customer_details", ["id" => twig_get_attribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 52)]), "html", null, true);
                    echo "\"";
                }
                echo ">
                <td class=\"";
                // line 53
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "name"], 53, $context, $this->getSourceContext());
                echo "\">";
                echo twig_call_macro($macros["widgets"], "macro_label_color_dot", ["customer", true, twig_get_attribute($this->env, $this->source, $context["entry"], "name", [], "any", false, false, false, 53), null, twig_get_attribute($this->env, $this->source, $context["entry"], "color", [], "any", false, false, false, 53)], 53, $context, $this->getSourceContext());
                echo "</td>
                <td class=\"";
                // line 54
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "comment"], 54, $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, 54));
                echo "</td>
                <td class=\"";
                // line 55
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "number"], 55, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "number", [], "any", false, false, false, 55), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 56
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "company"], 56, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "company", [], "any", false, false, false, 56), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 57
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "vat_id"], 57, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "vatId", [], "any", false, false, false, 57), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 58
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "contact"], 58, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "contact", [], "any", false, false, false, 58), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 59
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "address"], 59, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "address", [], "any", false, false, false, 59), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 60
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "country"], 60, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->country(twig_get_attribute($this->env, $this->source, $context["entry"], "country", [], "any", false, false, false, 60)), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 61
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "currency"], 61, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->currency(twig_get_attribute($this->env, $this->source, $context["entry"], "currency", [], "any", false, false, false, 61)), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 62
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "phone"], 62, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "phone", [], "any", false, false, false, 62), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 63
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "fax"], 63, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "fax", [], "any", false, false, false, 63), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 64
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "mobile"], 64, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "mobile", [], "any", false, false, false, 64), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 65
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "email"], 65, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "email", [], "any", false, false, false, 65), "html", null, true);
                echo "</td>
                <td class=\"";
                // line 66
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "homepage"], 66, $context, $this->getSourceContext());
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "homepage", [], "any", false, false, false, 66), "html", null, true);
                echo "</td>
                ";
                // line 67
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(($context["metaColumns"] ?? null));
                foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
                    // line 68
                    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, 68))], 68, $context, $this->getSourceContext());
                    echo "\">
                        ";
                    // line 69
                    echo twig_call_macro($macros["tables"], "macro_datatable_meta_column", [$context["entry"], $context["field"]], 69, $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 72
                echo "                <td class=\"";
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "team"], 72, $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, 72)], 72, $context, $this->getSourceContext());
                echo "</td>
                <td class=\"";
                // line 73
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "visible"], 73, $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, 73)], 73, $context, $this->getSourceContext());
                echo "</td>
                <td class=\"";
                // line 74
                echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "actions"], 74, $context, $this->getSourceContext());
                echo "\">";
                echo twig_call_macro($macros["actions"], "macro_customer", [$context["entry"], "index"], 74, $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 77
            echo "
        ";
            // line 78
            echo twig_call_macro($macros["tables"], "macro_data_table_footer", [($context["entries"] ?? null), "admin_customer_paginated"], 78, $context, $this->getSourceContext());
            echo "
    ";
        }
        // line 80
        echo "
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  276 => 80,  271 => 78,  268 => 77,  257 => 74,  251 => 73,  244 => 72,  235 => 69,  230 => 68,  226 => 67,  220 => 66,  214 => 65,  208 => 64,  202 => 63,  196 => 62,  190 => 61,  184 => 60,  178 => 59,  172 => 58,  166 => 57,  160 => 56,  154 => 55,  148 => 54,  142 => 53,  133 => 52,  129 => 51,  123 => 49,  117 => 47,  115 => 46,  112 => 45,  108 => 44,  101 => 41,  97 => 40,  90 => 38,  83 => 37,  76 => 36,  71 => 1,  69 => 34,  67 => 28,  61 => 25,  60 => 24,  56 => 23,  54 => 7,  52 => 5,  50 => 4,  48 => 3,  46 => 2,  39 => 1,);
    }

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