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

/* invoice/templates.html.twig */
class __TwigTemplate_7d200094a2ccafd2463111a8025347d89df6a915db96ad049c5d302867e571a3 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_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", "invoice/templates.html.twig", 2)->unwrap();
        // line 3
        $macros["tables"] = $this->macros["tables"] = $this->loadTemplate("macros/datatables.html.twig", "invoice/templates.html.twig", 3)->unwrap();
        // line 4
        $macros["actions"] = $this->macros["actions"] = $this->loadTemplate("invoice/actions.html.twig", "invoice/templates.html.twig", 4)->unwrap();
        // line 6
        $context["columns"] = ["name" => ["class" => "alwaysVisible text-nowrap", "orderBy" => false], "title" => ["class" => "hidden-xs text-nowrap", "orderBy" => false], "company" => ["class" => "hidden-xs hidden-sm hidden", "orderBy" => false], "vat_id" => ["class" => "hidden-xs hidden-sm text-nowrap", "orderBy" => false], "vat" => ["class" => "hidden-xs hidden-sm hidden-md text-nowrap", "orderBy" => false], "due_days" => ["class" => "hidden-xs hidden-sm hidden-md text-nowrap", "orderBy" => false], "address" => ["class" => "hidden", "orderBy" => false], "contact" => ["class" => "hidden", "orderBy" => false], "calculator" => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.invoice_calculator", [], "invoice-calculator"), "class" => "hidden", "orderBy" => false], "renderer" => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.invoice_renderer", [], "invoice-renderer"), "class" => "hidden", "orderBy" => false], "language" => ["class" => "text-nowrap", "orderBy" => false], "actions" => ["class" => "actions alwaysVisible", "orderBy" => false]];
        // line 21
        $context["tableName"] = "invoice_template";
        // line 1
        $this->parent = $this->loadTemplate("base.html.twig", "invoice/templates.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

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

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

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

    // line 30
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 31
        echo "    ";
        if (0 === twig_compare(twig_get_attribute($this->env, $this->source, ($context["entries"] ?? null), "count", [], "any", false, false, false, 31), 0)) {
            // line 32
            echo "        ";
            echo twig_call_macro($macros["widgets"], "macro_nothing_found", ["kimai.invoiceTemplateUpdate"], 32, $context, $this->getSourceContext());
            echo "
    ";
        }
        // line 34
        echo "
    ";
        // line 35
        echo twig_call_macro($macros["tables"], "macro_datatable_header", [($context["tableName"] ?? null), ($context["columns"] ?? null), null, ["reload" => "kimai.invoiceTemplateUpdate"]], 35, $context, $this->getSourceContext());
        echo "
    ";
        // line 36
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["entries"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
            // line 37
            echo "        <tr class=\"modal-ajax-form open-edit\" data-href=\"";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_invoice_template_edit", ["id" => twig_get_attribute($this->env, $this->source, $context["entry"], "id", [], "any", false, false, false, 37)]), "html", null, true);
            echo "\">
            <td class=\"";
            // line 38
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "name"], 38, $context, $this->getSourceContext());
            echo "\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "name", [], "any", false, false, false, 38), "html", null, true);
            echo "</td>
            <td class=\"";
            // line 39
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "title"], 39, $context, $this->getSourceContext());
            echo "\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "title", [], "any", false, false, false, 39), "html", null, true);
            echo "</td>
            <td class=\"";
            // line 40
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "company"], 40, $context, $this->getSourceContext());
            echo "\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "company", [], "any", false, false, false, 40), "html", null, true);
            echo "</td>
            <td class=\"";
            // line 41
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "vat_id"], 41, $context, $this->getSourceContext());
            echo "\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "vatId", [], "any", false, false, false, 41), "html", null, true);
            echo "</td>
            <td class=\"";
            // line 42
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "vat"], 42, $context, $this->getSourceContext());
            echo "\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "vat", [], "any", false, false, false, 42), "html", null, true);
            echo "</td>
            <td class=\"";
            // line 43
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "due_days"], 43, $context, $this->getSourceContext());
            echo "\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "dueDays", [], "any", false, false, false, 43), "html", null, true);
            echo "</td>
            <td class=\"";
            // line 44
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "address"], 44, $context, $this->getSourceContext());
            echo "\">";
            echo nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "address", [], "any", false, false, false, 44), "html", null, true));
            echo "</td>
            <td class=\"";
            // line 45
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "contact"], 45, $context, $this->getSourceContext());
            echo "\">";
            echo nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "contact", [], "any", false, false, false, 45), "html", null, true));
            echo "</td>
            <td class=\"";
            // line 46
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "calculator"], 46, $context, $this->getSourceContext());
            echo "\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["entry"], "calculator", [], "any", false, false, false, 46), [], "invoice-calculator"), "html", null, true);
            echo "</td>
            <td class=\"";
            // line 47
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "renderer"], 47, $context, $this->getSourceContext());
            echo "\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["entry"], "renderer", [], "any", false, false, false, 47), [], "invoice-renderer"), "html", null, true);
            echo "</td>
            <td class=\"";
            // line 48
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "language"], 48, $context, $this->getSourceContext());
            echo "\">";
            if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["entry"], "language", [], "any", false, false, false, 48))) {
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->language(twig_get_attribute($this->env, $this->source, $context["entry"], "language", [], "any", false, false, false, 48)), "html", null, true);
            }
            echo "</td>
            <td class=\"";
            // line 49
            echo twig_call_macro($macros["tables"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), "actions"], 49, $context, $this->getSourceContext());
            echo "\">";
            // line 50
            echo twig_call_macro($macros["actions"], "macro_invoice_template", [$context["entry"], "index"], 50, $context, $this->getSourceContext());
            // line 51
            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 54
        echo "
    ";
        // line 55
        echo twig_call_macro($macros["tables"], "macro_data_table_footer", [($context["entries"] ?? null), "admin_invoice_template"], 55, $context, $this->getSourceContext());
        echo "
";
    }

    public function getTemplateName()
    {
        return "invoice/templates.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  198 => 55,  195 => 54,  187 => 51,  185 => 50,  182 => 49,  174 => 48,  168 => 47,  162 => 46,  156 => 45,  150 => 44,  144 => 43,  138 => 42,  132 => 41,  126 => 40,  120 => 39,  114 => 38,  109 => 37,  105 => 36,  101 => 35,  98 => 34,  92 => 32,  89 => 31,  85 => 30,  78 => 27,  74 => 26,  67 => 24,  60 => 23,  55 => 1,  53 => 21,  51 => 6,  49 => 4,  47 => 3,  45 => 2,  38 => 1,);
    }

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