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

/* macros/datatables.html.twig */
class __TwigTemplate_5e924b926d1bd3123e809c0b0f3df086ad9f5c8a2e0c0a604dea959eeaafb8ca 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 1
        echo "
";
        // line 40
        echo "
";
        // line 106
        echo "
";
        // line 152
        echo "
";
        // line 180
        echo "
";
        // line 186
        echo "
";
        // line 213
        echo "
";
        // line 222
        echo "
";
        // line 226
        echo "
";
    }

    // line 2
    public function macro_data_table_column_modal($__name__ = null, $__columns__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "name" => $__name__,
            "columns" => $__columns__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 3
            echo "<div class=\"modal fade\" id=\"modal_";
            echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
            echo "\" data-column-visibility=\"";
            echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
            echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"data_table_modal_label\">
    <div class=\"modal-dialog\" role=\"document\">
        <div class=\"modal-content\">
            <div class=\"modal-header\">
                <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"";
            // line 7
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.close"), "html", null, true);
            echo "\"><span aria-hidden=\"true\">&times;</span></button>
                <h4 class=\"modal-title\" id=\"data_table_modal_label\">";
            // line 8
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modal.columns.title"), "html", null, true);
            echo "</h4>
            </div>
            <div class=\"modal-body\">
                <form name=\"";
            // line 11
            echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
            echo "_visibility\">";
            // line 12
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["columns"] ?? null));
            foreach ($context['_seq'] as $context["title"] => $context["headerOptions"]) {
                // line 13
                if ( !twig_test_iterable($context["headerOptions"])) {
                    // line 14
                    echo "                            ";
                    $context["headerOptions"] = ["class" => $context["headerOptions"]];
                    // line 15
                    echo "                        ";
                }
                // line 16
                echo "                        ";
                if (twig_get_attribute($this->env, $this->source, $context["headerOptions"], "title", [], "any", true, true, false, 16)) {
                    // line 17
                    echo "                            ";
                    $context["headerTitle"] = twig_get_attribute($this->env, $this->source, $context["headerOptions"], "title", [], "any", false, false, false, 17);
                    // line 18
                    echo "                        ";
                } else {
                    // line 19
                    echo "                            ";
                    $context["headerTitle"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("label." . $context["title"]));
                    // line 20
                    echo "                        ";
                }
                // line 21
                echo "                        ";
                if (!twig_in_filter("alwaysVisible", twig_get_attribute($this->env, $this->source, $context["headerOptions"], "class", [], "any", false, false, false, 21))) {
                    // line 22
                    echo "                            <div class=\"form-group\">
                                <input type=\"checkbox\" id=\"column_";
                    // line 23
                    echo twig_escape_filter($this->env, $context["title"], "html", null, true);
                    echo "\" name=\"";
                    echo twig_escape_filter($this->env, $context["title"], "html", null, true);
                    echo "\"";
                    if ($this->extensions['App\Twig\DatatableExtensions']->isColumnVisible(($context["name"] ?? null), $context["title"], ($context["columns"] ?? null))) {
                        echo " checked=\"checked\"";
                    }
                    echo ">
                                <label class=\"control-label\" for=\"column_";
                    // line 24
                    echo twig_escape_filter($this->env, $context["title"], "html", null, true);
                    echo "\">";
                    echo twig_escape_filter($this->env, ($context["headerTitle"] ?? null), "html", null, true);
                    echo "</label>
                            </div>
                        ";
                }
                // line 27
                echo "                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['title'], $context['headerOptions'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 28
            echo "                </form>
                <p>";
            // line 29
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modal.columns.description"), "html", null, true);
            echo "</p>
            </div>
            <div class=\"modal-footer\">
                <button type=\"button\" class=\"btn btn-primary pull-left\" data-type=\"save\">";
            // line 32
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.save"), "html", null, true);
            echo "</button>
                <button type=\"button\" class=\"btn btn-warning pull-left\" data-type=\"reset\">";
            // line 33
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.delete"), "html", null, true);
            echo "</button>
                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">";
            // line 34
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("action.close"), "html", null, true);
            echo "</button>
            </div>
        </div>
    </div>
</div>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 41
    public function macro_datatable_header($__tableName__ = null, $__columns__ = null, $__query__ = null, $__options__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "tableName" => $__tableName__,
            "columns" => $__columns__,
            "query" => $__query__,
            "options" => $__options__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 42
            echo "    ";
            if ( !(null === ($context["query"] ?? null))) {
                // line 43
                echo "        ";
                $context["orderBy"] = ((twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "orderBy", [], "any", true, true, false, 43)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "orderBy", [], "any", false, false, false, 43), twig_get_attribute($this->env, $this->source, ($context["query"] ?? null), "orderBy", [], "any", false, false, false, 43))) : (twig_get_attribute($this->env, $this->source, ($context["query"] ?? null), "orderBy", [], "any", false, false, false, 43)));
                // line 44
                echo "        ";
                $context["order"] = twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["query"] ?? null), "order", [], "any", false, false, false, 44));
                // line 45
                echo "    ";
            } else {
                // line 46
                echo "        ";
                $context["orderBy"] = false;
                // line 47
                echo "        ";
                $context["order"] = false;
                // line 48
                echo "    ";
            }
            // line 49
            echo "    ";
            $context["striped"] = ((twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "striped", [], "any", true, true, false, 49)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "striped", [], "any", false, false, false, 49), true)) : (true));
            // line 50
            echo "    ";
            $context["reloadEvent"] = ((twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "reload", [], "any", true, true, false, 50)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "reload", [], "any", false, false, false, 50), "")) : (""));
            // line 51
            echo "    ";
            $context["translationDomain"] = ((twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "translationDomain", [], "any", true, true, false, 51)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "translationDomain", [], "any", false, false, false, 51), "messages")) : ("messages"));
            // line 52
            echo "    ";
            // line 53
            echo "    ";
            $context["translationPrefix"] = "label.";
            // line 54
            echo "    ";
            if (twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "translationPrefix", [], "any", true, true, false, 54)) {
                // line 55
                echo "        ";
                $context["translationPrefix"] = twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "translationPrefix", [], "any", false, false, false, 55);
                // line 56
                echo "    ";
            }
            // line 57
            echo "
    ";
            // line 58
            $macros["macro"] = $this;
            // line 59
            echo "    <div class=\"box box-";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 59), "type", [], "any", false, false, false, 59), "html", null, true);
            echo " data_table\" id=\"datatable_";
            echo twig_escape_filter($this->env, ($context["tableName"] ?? null), "html", null, true);
            echo "\">
        <div class=\"box-body no-padding\">
            <div class=\"dataTables_wrapper form-inline dt-bootstrap\">
                <div class=\"row\">
                    <div class=\"col-sm-12\">
                        <table class=\"table ";
            // line 64
            if (($context["striped"] ?? null)) {
                echo "table-striped ";
            }
            echo "table-hover dataTable\" role=\"grid\" data-reload-event=\"";
            echo twig_escape_filter($this->env, ($context["reloadEvent"] ?? null), "html", null, true);
            echo "\" id=\"dt_";
            echo twig_escape_filter($this->env, ($context["tableName"] ?? null), "html", null, true);
            echo "\">
                            <thead>
                                <tr>";
            // line 67
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["columns"] ?? null));
            foreach ($context['_seq'] as $context["title"] => $context["headerOptions"]) {
                // line 68
                if ( !twig_test_iterable($context["headerOptions"])) {
                    // line 69
                    echo "                                        ";
                    $context["headerOptions"] = ["class" => $context["headerOptions"]];
                    // line 70
                    echo "                                    ";
                }
                // line 71
                echo "                                    ";
                if ( !twig_get_attribute($this->env, $this->source, $context["headerOptions"], "orderBy", [], "any", true, true, false, 71)) {
                    // line 72
                    echo "                                        ";
                    if ((($context["orderBy"] ?? null) === false)) {
                        // line 73
                        echo "                                            ";
                        $context["headerOptions"] = twig_array_merge($context["headerOptions"], ["orderBy" => false]);
                        // line 74
                        echo "                                        ";
                    } else {
                        // line 75
                        echo "                                            ";
                        $context["headerOptions"] = twig_array_merge($context["headerOptions"], ["orderBy" => $context["title"]]);
                        // line 76
                        echo "                                        ";
                    }
                    // line 77
                    echo "                                    ";
                }
                // line 78
                echo "                                    ";
                $context["headerClass"] = twig_call_macro($macros["macro"], "macro_data_table_column_class", [($context["tableName"] ?? null), ($context["columns"] ?? null), $context["title"]], 78, $context, $this->getSourceContext());
                // line 79
                echo "                                    ";
                if ((0 !== twig_compare($context["title"], "actions") &&  !(twig_get_attribute($this->env, $this->source, $context["headerOptions"], "orderBy", [], "any", false, false, false, 79) === false))) {
                    // line 80
                    echo "                                        ";
                    if (0 === twig_compare(($context["orderBy"] ?? null), twig_get_attribute($this->env, $this->source, $context["headerOptions"], "orderBy", [], "any", false, false, false, 80))) {
                        // line 81
                        echo "                                            ";
                        $context["headerClass"] = ((($context["headerClass"] ?? null) . " sortable sorting_") . ($context["order"] ?? null));
                        // line 82
                        echo "                                        ";
                    } else {
                        // line 83
                        echo "                                            ";
                        $context["headerClass"] = (($context["headerClass"] ?? null) . " sortable sorting");
                        // line 84
                        echo "                                        ";
                    }
                    // line 85
                    echo "                                    ";
                }
                // line 86
                echo "                                    ";
                $context["headerTitle"] = "";
                // line 87
                echo "                                    ";
                if (twig_get_attribute($this->env, $this->source, $context["headerOptions"], "title", [], "any", true, true, false, 87)) {
                    // line 88
                    echo "                                        ";
                    $context["headerTitle"] = twig_get_attribute($this->env, $this->source, $context["headerOptions"], "title", [], "any", false, false, false, 88);
                    // line 89
                    echo "                                    ";
                } elseif (( !twig_test_empty($context["title"]) && 0 !== twig_compare($context["title"], "actions"))) {
                    // line 90
                    echo "                                        ";
                    $context["headerTitle"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((($context["translationPrefix"] ?? null) . $context["title"]), [], ($context["translationDomain"] ?? null));
                    // line 91
                    echo "                                    ";
                }
                // line 92
                echo "                                    <th data-field=\"";
                echo twig_escape_filter($this->env, $context["title"], "html", null, true);
                echo "\" ";
                if ( !(twig_get_attribute($this->env, $this->source, $context["headerOptions"], "orderBy", [], "any", false, false, false, 92) === false)) {
                    echo "data-order=\"";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["headerOptions"], "orderBy", [], "any", false, false, false, 92), "html", null, true);
                    echo "\" ";
                }
                echo "class=\"";
                echo twig_escape_filter($this->env, ($context["headerClass"] ?? null), "html", null, true);
                echo "\">
                                        ";
                // line 93
                if (twig_get_attribute($this->env, $this->source, $context["headerOptions"], "html_before", [], "any", true, true, false, 93)) {
                    // line 94
                    echo "                                            ";
                    echo twig_get_attribute($this->env, $this->source, $context["headerOptions"], "html_before", [], "any", false, false, false, 94);
                    echo "
                                        ";
                }
                // line 96
                echo "                                        ";
                echo twig_escape_filter($this->env, ($context["headerTitle"] ?? null), "html", null, true);
                echo "
                                        ";
                // line 97
                if (twig_get_attribute($this->env, $this->source, $context["headerOptions"], "html_after", [], "any", true, true, false, 97)) {
                    // line 98
                    echo "                                            ";
                    echo twig_get_attribute($this->env, $this->source, $context["headerOptions"], "html_after", [], "any", false, false, false, 98);
                    echo "
                                        ";
                }
                // line 100
                echo "                                    </th>";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['title'], $context['headerOptions'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 102
            echo "</tr>
                            </thead>
                            <tbody>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 107
    public function macro_data_table_column_class($__name__ = null, $__columns__ = null, $__column__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "name" => $__name__,
            "columns" => $__columns__,
            "column" => $__column__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 108
            ob_start(function () { return ''; });
            // line 109
            echo "    ";
            $context["class"] = "";
            // line 110
            echo "    ";
            $context["always"] = false;
            // line 111
            echo "
    ";
            // line 112
            if (twig_get_attribute($this->env, $this->source, ($context["columns"] ?? null), ($context["column"] ?? null), [], "array", true, true, false, 112)) {
                // line 113
                echo "        ";
                $context["classes"] = (($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["columns"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4[($context["column"] ?? null)] ?? null) : null);
                // line 114
                echo "        ";
                // line 115
                echo "        ";
                if (twig_test_iterable(($context["classes"] ?? null))) {
                    // line 116
                    echo "            ";
                    $context["classes"] = twig_get_attribute($this->env, $this->source, ($context["classes"] ?? null), "class", [], "any", false, false, false, 116);
                    // line 117
                    echo "        ";
                }
                // line 118
                echo "        ";
                if (twig_in_filter("alwaysVisible", ($context["classes"] ?? null))) {
                    // line 119
                    echo "            ";
                    // line 120
                    echo "            ";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable(twig_split_filter($this->env, ($context["classes"] ?? null), " "));
                    foreach ($context['_seq'] as $context["_key"] => $context["tmp"]) {
                        // line 121
                        echo "                ";
                        if (!twig_in_filter("hidden", $context["tmp"])) {
                            // line 122
                            echo "                    ";
                            $context["class"] = ((($context["class"] ?? null) . " ") . $context["tmp"]);
                            // line 123
                            echo "                ";
                        }
                        // line 124
                        echo "            ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tmp'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 125
                    echo "        ";
                } else {
                    // line 126
                    echo "            ";
                    if ( !$this->extensions['App\Twig\DatatableExtensions']->isColumnVisible(($context["name"] ?? null), ($context["column"] ?? null), ($context["columns"] ?? null))) {
                        // line 127
                        echo "                ";
                        $context["classes"] = (($context["classes"] ?? null) . " hidden");
                        // line 128
                        echo "            ";
                    } elseif ( !$this->extensions['App\Twig\DatatableExtensions']->isDatatableConfigured(($context["name"] ?? null))) {
                        // line 129
                        echo "                ";
                        // line 130
                        echo "                ";
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable(twig_split_filter($this->env, ($context["classes"] ?? null), " "));
                        foreach ($context['_seq'] as $context["_key"] => $context["tmp"]) {
                            // line 131
                            echo "                    ";
                            if (0 === twig_compare("hidden", $context["tmp"])) {
                                // line 132
                                echo "                        ";
                                $context["classes"] = twig_replace_filter(($context["classes"] ?? null), [$context["tmp"] => ""]);
                                // line 133
                                echo "                    ";
                            }
                            // line 134
                            echo "                ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tmp'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 135
                        echo "            ";
                    } else {
                        // line 136
                        echo "                ";
                        // line 137
                        echo "                ";
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable(twig_split_filter($this->env, ($context["classes"] ?? null), " "));
                        foreach ($context['_seq'] as $context["_key"] => $context["tmp"]) {
                            // line 138
                            echo "                    ";
                            if (twig_in_filter("hidden", $context["tmp"])) {
                                // line 139
                                echo "                        ";
                                $context["classes"] = twig_replace_filter(($context["classes"] ?? null), [$context["tmp"] => ""]);
                                // line 140
                                echo "                    ";
                            }
                            // line 141
                            echo "                ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tmp'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 142
                        echo "            ";
                    }
                    // line 143
                    echo "            ";
                    $context["class"] = ($context["classes"] ?? null);
                    // line 144
                    echo "        ";
                }
                // line 145
                echo "    ";
            }
            // line 146
            echo "
    ";
            // line 147
            if ( !twig_test_empty(($context["class"] ?? null))) {
                // line 148
                echo "        ";
                echo twig_escape_filter($this->env, ($context["class"] ?? null), "html", null, true);
                echo "
    ";
            }
            $___internal_0e8514622bb2e59e86c1eadc3ee9813a7452a49baf067c0be81f3d3e2cd96eb6_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
            // line 108
            echo twig_spaceless($___internal_0e8514622bb2e59e86c1eadc3ee9813a7452a49baf067c0be81f3d3e2cd96eb6_);

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 153
    public function macro_data_table_header_options($__name__ = null, $__columns__ = null, $__options__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "name" => $__name__,
            "columns" => $__columns__,
            "options" => $__options__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 154
            echo "    ";
            @trigger_error("The macro \"data_table_header_options()\" is deprecated since 1.3 and will be removed with 2.0, use \"datatable_header()\" instead"." (\"macros/datatables.html.twig\" at line 154).", E_USER_DEPRECATED);
            // line 155
            echo "    ";
            $context["skipStripped"] = ((twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "skipStripped", [], "any", true, true, false, 155)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "skipStripped", [], "any", false, false, false, 155), false)) : (false));
            // line 156
            echo "    ";
            $context["reloadEvent"] = ((twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "reloadEvent", [], "any", true, true, false, 156)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "reloadEvent", [], "any", false, false, false, 156), "")) : (""));
            // line 157
            echo "    ";
            $context["translationDomain"] = ((twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "translationDomain", [], "any", true, true, false, 157)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "translationDomain", [], "any", false, false, false, 157), "messages")) : ("messages"));
            // line 158
            echo "    ";
            // line 159
            echo "    ";
            $context["translationPrefix"] = "label.";
            // line 160
            echo "    ";
            if (twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "translationPrefix", [], "any", true, true, false, 160)) {
                // line 161
                echo "        ";
                $context["translationPrefix"] = twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "translationPrefix", [], "any", false, false, false, 161);
                // line 162
                echo "    ";
            }
            // line 163
            echo "
    ";
            // line 164
            $macros["macro"] = $this;
            // line 165
            echo "    <div class=\"box box-";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["admin_lte_context"] ?? null), "widget", [], "any", false, false, false, 165), "type", [], "any", false, false, false, 165), "html", null, true);
            echo " data_table\" id=\"datatable_";
            echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
            echo "\">
        <div class=\"box-body no-padding\">
            <div class=\"dataTables_wrapper form-inline dt-bootstrap\">
                <div class=\"row\">
                    <div class=\"col-sm-12\">
                        <table class=\"table ";
            // line 170
            if ( !($context["skipStripped"] ?? null)) {
                echo "table-striped ";
            }
            echo "table-hover dataTable\" role=\"grid\" data-reload-event=\"";
            echo twig_escape_filter($this->env, ($context["reloadEvent"] ?? null), "html", null, true);
            echo "\">
                            <thead>
                            <tr>";
            // line 173
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["columns"] ?? null));
            foreach ($context['_seq'] as $context["title"] => $context["class"]) {
                // line 174
                echo "<th data-field=\"";
                echo twig_escape_filter($this->env, $context["title"], "html", null, true);
                echo "\" class=\"";
                echo twig_call_macro($macros["macro"], "macro_data_table_column_class", [($context["name"] ?? null), ($context["columns"] ?? null), $context["title"]], 174, $context, $this->getSourceContext());
                echo "\">";
                if (( !twig_test_empty($context["title"]) && 0 !== twig_compare($context["title"], "actions"))) {
                    echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((($context["translationPrefix"] ?? null) . $context["title"]), [], ($context["translationDomain"] ?? null)), "html", null, true);
                }
                echo "</th>";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['title'], $context['class'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 176
            echo "</tr>
                            </thead>
                            <tbody>
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 181
    public function macro_data_table_header($__name__ = null, $__columns__ = null, $__skipStripped__ = null, $__reloadEvent__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "name" => $__name__,
            "columns" => $__columns__,
            "skipStripped" => $__skipStripped__,
            "reloadEvent" => $__reloadEvent__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 182
            echo "    ";
            @trigger_error("The macro \"data_table_header()\" is deprecated since 1.3 and will be removed with 2.0, use \"datatable_header()\" instead"." (\"macros/datatables.html.twig\" at line 182).", E_USER_DEPRECATED);
            // line 183
            echo "    ";
            $macros["macro"] = $this;
            // line 184
            echo "    ";
            echo twig_call_macro($macros["macro"], "macro_data_table_header_options", [($context["name"] ?? null), ($context["columns"] ?? null), ["skipStripped" => ($context["skipStripped"] ?? null), "reloadEvent" => ($context["reloadEvent"] ?? null)]], 184, $context, $this->getSourceContext());
            echo "
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 187
    public function macro_data_table_footer($__entries__ = null, $__route__ = null, $__multi_update_form__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "entries" => $__entries__,
            "route" => $__route__,
            "multi_update_form" => $__multi_update_form__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 188
            echo "                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
";
            // line 195
            if ( !(null === ($context["multi_update_form"] ?? null))) {
                // line 196
                echo "<div id=\"multi_update_form\" style=\"display: none\">
    ";
                // line 197
                echo                 $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["multi_update_form"] ?? null), 'form_start', ["attr" => ["data-question" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("update_multiple")]]);
                echo "
    <label class=\"col-sm-1 col-xs-2 control-label\" for=\"multi_update_table_action\">
        <span class=\"pull-left\"><i class=\"fas fa-level-up-alt fa-2x fa-rotate-90\"></i></span>
    </label>
    <div class=\"col-sm-11 col-xs-10\">
        ";
                // line 202
                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["multi_update_form"] ?? null), "action", [], "any", false, false, false, 202), 'widget');
                echo "
    </div>
    ";
                // line 204
                echo                 $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["multi_update_form"] ?? null), 'form_end');
                echo "
</div>
";
            }
            // line 207
            if (( !twig_test_empty(($context["route"] ?? null)) &&  !(null === ($context["entries"] ?? null)))) {
                // line 208
                echo "<div class=\"navigation text-center no-print\">
    ";
                // line 209
                echo $this->extensions['App\Twig\PaginationExtension']->renderPagination(($context["entries"] ?? null), ["routeName" => ($context["route"] ?? null)]);
                echo "
</div>
";
            }

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 214
    public function macro_datatable_meta_column($__entry__ = null, $__field__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "entry" => $__entry__,
            "field" => $__field__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 215
            echo "    ";
            $macros["widgets"] = $this->loadTemplate("macros/widgets.html.twig", "macros/datatables.html.twig", 215)->unwrap();
            // line 216
            echo "    ";
            $context["metaField"] = twig_get_attribute($this->env, $this->source, ($context["entry"] ?? null), "metaField", [0 => twig_get_attribute($this->env, $this->source, ($context["field"] ?? null), "name", [], "any", false, false, false, 216)], "method", false, false, false, 216);
            // line 217
            echo "    ";
            if ((( !(null === ($context["metaField"] ?? null)) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["metaField"] ?? null), "value", [], "any", false, false, false, 217))) &&  !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["metaField"] ?? null), "value", [], "any", false, false, false, 217)))) {
                // line 218
                echo "        ";
                $context["metaField"] = twig_get_attribute($this->env, $this->source, ($context["metaField"] ?? null), "merge", [0 => ($context["field"] ?? null)], "method", false, false, false, 218);
                // line 219
                echo "        ";
                echo twig_call_macro($macros["widgets"], "macro_form_type_value", [twig_get_attribute($this->env, $this->source, ($context["metaField"] ?? null), "type", [], "any", false, false, false, 219), twig_get_attribute($this->env, $this->source, ($context["metaField"] ?? null), "value", [], "any", false, false, false, 219), ($context["entry"] ?? null)], 219, $context, $this->getSourceContext());
                echo "
    ";
            }

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 223
    public function macro_datatable_multiupdate_all(...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 224
            echo "    <input type=\"checkbox\" id=\"multi_update_all\" class=\"multiupdater\">
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    // line 227
    public function macro_datatable_multiupdate_row($__id__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "id" => $__id__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 228
            echo "    <input type=\"checkbox\" name=\"id\" value=\"";
            echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
            echo "\" class=\"multi_update_single multiupdater\">
";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    public function getTemplateName()
    {
        return "macros/datatables.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  835 => 228,  822 => 227,  812 => 224,  800 => 223,  787 => 219,  784 => 218,  781 => 217,  778 => 216,  775 => 215,  761 => 214,  748 => 209,  745 => 208,  743 => 207,  737 => 204,  732 => 202,  724 => 197,  721 => 196,  719 => 195,  710 => 188,  695 => 187,  683 => 184,  680 => 183,  677 => 182,  661 => 181,  649 => 176,  635 => 174,  631 => 173,  622 => 170,  611 => 165,  609 => 164,  606 => 163,  603 => 162,  600 => 161,  597 => 160,  594 => 159,  592 => 158,  589 => 157,  586 => 156,  583 => 155,  580 => 154,  565 => 153,  556 => 108,  549 => 148,  547 => 147,  544 => 146,  541 => 145,  538 => 144,  535 => 143,  532 => 142,  526 => 141,  523 => 140,  520 => 139,  517 => 138,  512 => 137,  510 => 136,  507 => 135,  501 => 134,  498 => 133,  495 => 132,  492 => 131,  487 => 130,  485 => 129,  482 => 128,  479 => 127,  476 => 126,  473 => 125,  467 => 124,  464 => 123,  461 => 122,  458 => 121,  453 => 120,  451 => 119,  448 => 118,  445 => 117,  442 => 116,  439 => 115,  437 => 114,  434 => 113,  432 => 112,  429 => 111,  426 => 110,  423 => 109,  421 => 108,  406 => 107,  394 => 102,  388 => 100,  382 => 98,  380 => 97,  375 => 96,  369 => 94,  367 => 93,  354 => 92,  351 => 91,  348 => 90,  345 => 89,  342 => 88,  339 => 87,  336 => 86,  333 => 85,  330 => 84,  327 => 83,  324 => 82,  321 => 81,  318 => 80,  315 => 79,  312 => 78,  309 => 77,  306 => 76,  303 => 75,  300 => 74,  297 => 73,  294 => 72,  291 => 71,  288 => 70,  285 => 69,  283 => 68,  279 => 67,  268 => 64,  257 => 59,  255 => 58,  252 => 57,  249 => 56,  246 => 55,  243 => 54,  240 => 53,  238 => 52,  235 => 51,  232 => 50,  229 => 49,  226 => 48,  223 => 47,  220 => 46,  217 => 45,  214 => 44,  211 => 43,  208 => 42,  192 => 41,  177 => 34,  173 => 33,  169 => 32,  163 => 29,  160 => 28,  154 => 27,  146 => 24,  136 => 23,  133 => 22,  130 => 21,  127 => 20,  124 => 19,  121 => 18,  118 => 17,  115 => 16,  112 => 15,  109 => 14,  107 => 13,  103 => 12,  100 => 11,  94 => 8,  90 => 7,  80 => 3,  66 => 2,  61 => 226,  58 => 222,  55 => 213,  52 => 186,  49 => 180,  46 => 152,  43 => 106,  40 => 40,  37 => 1,);
    }

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