<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;

/* pages/admin/events_list.html.twig */
class __TwigTemplate_7dbc86951e991056a7d16259b259d6d5 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 32
        yield "
<div class=\"container-fluid\">
   <div class=\"search_page\">
      <div class=\"search-container\">
         <div class=\"card card-sm search-card\">
            ";
        // line 37
        if ((($context["count"] ?? null) == 0)) {
            // line 38
            yield "               <div class=\"alert alert-info mb-0 rounded-0 border-top-0 border-bottom-0 border-right-0\" role=\"alert\">
                  ";
            // line 39
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("No item found"), "html", null, true);
            yield "
               </div>
            ";
        } else {
            // line 42
            yield "               <div class=\"card-header search-header pe-0\">
                  ";
            // line 43
            if ((($context["count"] ?? null) > 0)) {
                // line 44
                yield "                     ";
                $context["limitdropdown"] = Twig\Extension\CoreExtension::include($this->env, $context, "components/dropdown/limit.html.twig", ["href" =>                 // line 45
($context["target"] ?? null), "additional_params" => ((("sort=" .                 // line 46
($context["sort"] ?? null)) . "&order=") . ($context["order"] ?? null))]);
                // line 48
                yield "                     <div class=\"ms-auto d-inline-flex align-items-center d-none d-md-block search-limit\">
                        ";
                // line 49
                yield Twig\Extension\CoreExtension::sprintf(__("Show %s entries"), ($context["limitdropdown"] ?? null));
                yield "
                     </div>
               ";
            }
            // line 52
            yield "               </div>
               <div class=\"table-responsive-md\">
                  <table class=\"search-results table table-hover table-card\">
                     <thead>
                        ";
            // line 56
            $context["headings"] = ["type" => __("Source"), "items_id" => __("ID"), "date" => _n("Date", "Dates", 1), "service" => __("Service"), "level" => __("Level"), "message" => __("Message")];
            // line 64
            yield "
                        ";
            // line 65
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["headings"] ?? null));
            foreach ($context['_seq'] as $context["field"] => $context["label"]) {
                // line 66
                yield "                           <th>
                              <a href=\"";
                // line 67
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["target"] ?? null), "html", null, true);
                yield "?sort=";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["field"], "html", null, true);
                yield "&amp;order=";
                yield (((($context["order"] ?? null) == "ASC")) ? ("DESC") : ("ASC"));
                yield "\">
                                 ";
                // line 68
                if ((($context["sort"] ?? null) == $context["field"])) {
                    // line 69
                    yield "                                    ";
                    $context["sort_icon"] = (((($context["order"] ?? null) == "ASC")) ? ("fa-sort-up") : ("fa-sort-down"));
                    // line 70
                    yield "                                    <i class=\"fas fa-lg ";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["sort_icon"] ?? null), "html", null, true);
                    yield "\"></i>
                                 ";
                }
                // line 72
                yield "                                 ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["label"], "html", null, true);
                yield "
                              </a>
                           </th>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['field'], $context['label'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 76
            yield "                     </thead>
                     <tbody>
                        ";
            // line 78
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["events"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
                // line 79
                yield "                           <tr>
                              <td>
                                 <i class=\"fa-fw text-muted ";
                // line 81
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_0 = $context["event"]) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["itemtype_icon"] ?? null) : null), "html", null, true);
                yield "\"></i>
                                 <span>";
                // line 82
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_1 = $context["event"]) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["itemtype_name"] ?? null) : null), "html", null, true);
                yield "</span>
                              </td>
                              <td>";
                // line 84
                $this->extensions['Glpi\Application\View\Extension\PhpExtension']->call("Glpi\\Event::displayItemLogID", [(($__internal_compile_2 = $context["event"]) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["type"] ?? null) : null), (($__internal_compile_3 = $context["event"]) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["items_id"] ?? null) : null)]);
                yield "</td>
                              <td>";
                // line 85
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\DataHelpersExtension']->getFormattedDatetime((($__internal_compile_4 = $context["event"]) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["date"] ?? null) : null)), "html", null, true);
                yield "</td>
                              <td>";
                // line 86
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((CoreExtension::getAttribute($this->env, $this->source, ($context["services"] ?? null), (($__internal_compile_5 = $context["event"]) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5["service"] ?? null) : null), [], "array", true, true, false, 86) &&  !(null === (($__internal_compile_6 = ($context["services"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6[(($__internal_compile_7 = $context["event"]) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["service"] ?? null) : null)] ?? null) : null)))) ? ((($__internal_compile_8 = ($context["services"] ?? null)) && is_array($__internal_compile_8) || $__internal_compile_8 instanceof ArrayAccess ? ($__internal_compile_8[(($__internal_compile_9 = $context["event"]) && is_array($__internal_compile_9) || $__internal_compile_9 instanceof ArrayAccess ? ($__internal_compile_9["service"] ?? null) : null)] ?? null) : null)) : ((($__internal_compile_10 = $context["event"]) && is_array($__internal_compile_10) || $__internal_compile_10 instanceof ArrayAccess ? ($__internal_compile_10["service"] ?? null) : null))), "html", null, true);
                yield "</td>
                              <td>";
                // line 87
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_11 = $context["event"]) && is_array($__internal_compile_11) || $__internal_compile_11 instanceof ArrayAccess ? ($__internal_compile_11["level"] ?? null) : null), "html", null, true);
                yield "</td>
                              <td>";
                // line 88
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($__internal_compile_12 = $context["event"]) && is_array($__internal_compile_12) || $__internal_compile_12 instanceof ArrayAccess ? ($__internal_compile_12["message"] ?? null) : null), "html", null, true);
                yield "</td>
                           </tr>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['event'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 91
            yield "                     </tbody>
                  </table>
               </div>

               <div class=\"search-footer card-footer\">
                  ";
            // line 96
            yield Twig\Extension\CoreExtension::include($this->env, $context, "components/pager.html.twig", ["href" => (            // line 97
($context["target"] ?? null) . "?"), "additional_params" => ((("sort=" .             // line 98
($context["sort"] ?? null)) . "&order=") . ($context["order"] ?? null)), "count" =>             // line 99
($context["count"] ?? null)]);
            // line 100
            yield "
               </div>
            ";
        }
        // line 103
        yield "         </div>
      </div>
   </div>
</div>
";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "pages/admin/events_list.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  186 => 103,  181 => 100,  179 => 99,  178 => 98,  177 => 97,  176 => 96,  169 => 91,  160 => 88,  156 => 87,  152 => 86,  148 => 85,  144 => 84,  139 => 82,  135 => 81,  131 => 79,  127 => 78,  123 => 76,  112 => 72,  106 => 70,  103 => 69,  101 => 68,  93 => 67,  90 => 66,  86 => 65,  83 => 64,  81 => 56,  75 => 52,  69 => 49,  66 => 48,  64 => 46,  63 => 45,  61 => 44,  59 => 43,  56 => 42,  50 => 39,  47 => 38,  45 => 37,  38 => 32,);
    }

    public function getSourceContext()
    {
        return new Source("", "pages/admin/events_list.html.twig", "/home/tisoluci/public_html/crpamplona/templates/pages/admin/events_list.html.twig");
    }
}
