<?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;
use Twig\TemplateWrapper;

/* layout/parts/context_links.html.twig */
class __TwigTemplate_d9b76ddcb804a75105d4fbad564997cc extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $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 = []): iterable
    {
        $macros = $this->macros;
        // line 32
        yield "
";
        // line 33
        $context["links"] = (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["menu"] ?? null), ($context["sector"] ?? null), [], "array", false, true, false, 33), "content", [], "array", false, true, false, 33), ($context["item"] ?? null), [], "array", false, true, false, 33), "options", [], "array", false, true, false, 33), ($context["option"] ?? null), [], "array", false, true, false, 33), "links", [], "array", true, true, false, 33) &&  !(null === (($_v0 = (($_v1 = (($_v2 = (($_v3 = (($_v4 = (($_v5 = ($context["menu"] ?? null)) && is_array($_v5) || $_v5 instanceof ArrayAccess ? ($_v5[($context["sector"] ?? null)] ?? null) : null)) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4["content"] ?? null) : null)) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3[($context["item"] ?? null)] ?? null) : null)) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2["options"] ?? null) : null)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1[($context["option"] ?? null)] ?? null) : null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0["links"] ?? null) : null)))) ? ((($_v6 = (($_v7 = (($_v8 = (($_v9 = (($_v10 = (($_v11 = ($context["menu"] ?? null)) && is_array($_v11) || $_v11 instanceof ArrayAccess ? ($_v11[($context["sector"] ?? null)] ?? null) : null)) && is_array($_v10) || $_v10 instanceof ArrayAccess ? ($_v10["content"] ?? null) : null)) && is_array($_v9) || $_v9 instanceof ArrayAccess ? ($_v9[($context["item"] ?? null)] ?? null) : null)) && is_array($_v8) || $_v8 instanceof ArrayAccess ? ($_v8["options"] ?? null) : null)) && is_array($_v7) || $_v7 instanceof ArrayAccess ? ($_v7[($context["option"] ?? null)] ?? null) : null)) && is_array($_v6) || $_v6 instanceof ArrayAccess ? ($_v6["links"] ?? null) : null)) : ((($_v12 = (($_v13 = (($_v14 = (($_v15 = ($context["menu"] ?? null)) && is_array($_v15) || $_v15 instanceof ArrayAccess ? ($_v15[($context["sector"] ?? null)] ?? null) : null)) && is_array($_v14) || $_v14 instanceof ArrayAccess ? ($_v14["content"] ?? null) : null)) && is_array($_v13) || $_v13 instanceof ArrayAccess ? ($_v13[($context["item"] ?? null)] ?? null) : null)) && is_array($_v12) || $_v12 instanceof ArrayAccess ? ($_v12["links"] ?? null) : null)));
        // line 34
        $context["lists_itemtype"] = (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["menu"] ?? null), ($context["sector"] ?? null), [], "array", false, true, false, 34), "content", [], "array", false, true, false, 34), ($context["item"] ?? null), [], "array", false, true, false, 34), "options", [], "array", false, true, false, 34), ($context["option"] ?? null), [], "array", false, true, false, 34), "lists_itemtype", [], "array", true, true, false, 34) &&  !(null === (($_v16 = (($_v17 = (($_v18 = (($_v19 = (($_v20 = (($_v21 = ($context["menu"] ?? null)) && is_array($_v21) || $_v21 instanceof ArrayAccess ? ($_v21[($context["sector"] ?? null)] ?? null) : null)) && is_array($_v20) || $_v20 instanceof ArrayAccess ? ($_v20["content"] ?? null) : null)) && is_array($_v19) || $_v19 instanceof ArrayAccess ? ($_v19[($context["item"] ?? null)] ?? null) : null)) && is_array($_v18) || $_v18 instanceof ArrayAccess ? ($_v18["options"] ?? null) : null)) && is_array($_v17) || $_v17 instanceof ArrayAccess ? ($_v17[($context["option"] ?? null)] ?? null) : null)) && is_array($_v16) || $_v16 instanceof ArrayAccess ? ($_v16["lists_itemtype"] ?? null) : null)))) ? ((($_v22 = (($_v23 = (($_v24 = (($_v25 = (($_v26 = (($_v27 = ($context["menu"] ?? null)) && is_array($_v27) || $_v27 instanceof ArrayAccess ? ($_v27[($context["sector"] ?? null)] ?? null) : null)) && is_array($_v26) || $_v26 instanceof ArrayAccess ? ($_v26["content"] ?? null) : null)) && is_array($_v25) || $_v25 instanceof ArrayAccess ? ($_v25[($context["item"] ?? null)] ?? null) : null)) && is_array($_v24) || $_v24 instanceof ArrayAccess ? ($_v24["options"] ?? null) : null)) && is_array($_v23) || $_v23 instanceof ArrayAccess ? ($_v23[($context["option"] ?? null)] ?? null) : null)) && is_array($_v22) || $_v22 instanceof ArrayAccess ? ($_v22["lists_itemtype"] ?? null) : null)) : ((($_v28 = (($_v29 = (($_v30 = (($_v31 = ($context["menu"] ?? null)) && is_array($_v31) || $_v31 instanceof ArrayAccess ? ($_v31[($context["sector"] ?? null)] ?? null) : null)) && is_array($_v30) || $_v30 instanceof ArrayAccess ? ($_v30["content"] ?? null) : null)) && is_array($_v29) || $_v29 instanceof ArrayAccess ? ($_v29[($context["item"] ?? null)] ?? null) : null)) && is_array($_v28) || $_v28 instanceof ArrayAccess ? ($_v28["lists_itemtype"] ?? null) : null)));
        // line 35
        if (Twig\Extension\CoreExtension::testEmpty(($context["lists_itemtype"] ?? null))) {
            // line 36
            yield "    ";
            $context["lists_itemtype"] = ($context["item"] ?? null);
        }
        // line 38
        yield "
";
        // line 40
        yield "<ul class=\"nav navbar-nav border-start border-left ps-1 ps-sm-2 flex-row\">

";
        // line 42
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["links"] ?? null), "add", [], "array", true, true, false, 42)) {
            // line 43
            yield "<li class=\"nav-item\">
   <a href=\"";
            // line 44
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path((($_v32 = ($context["links"] ?? null)) && is_array($_v32) || $_v32 instanceof ArrayAccess ? ($_v32["add"] ?? null) : null)), "html", null, true);
            yield "\" class=\"btn btn-icon btn-sm btn-secondary me-1 pe-2\" title=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Add"), "html", null, true);
            yield "\">
      <i class=\"ti ti-plus\"></i>
      <span class=\"d-none d-xxl-block\">";
            // line 46
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Add"), "html", null, true);
            yield "</span>
   </a>
</li>
";
        }
        // line 50
        yield "
";
        // line 51
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["links"] ?? null), "search", [], "array", true, true, false, 51)) {
            // line 52
            yield "<li class=\"nav-item\">
   <a href=\"";
            // line 53
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path((($_v33 = ($context["links"] ?? null)) && is_array($_v33) || $_v33 instanceof ArrayAccess ? ($_v33["search"] ?? null) : null)), "html", null, true);
            yield "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Search"), "html", null, true);
            yield "\">
      <i class=\"ti ti-search\"></i>
      <span class=\"d-none d-xxl-block\">";
            // line 55
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Search"), "html", null, true);
            yield "</span>
   </a>
</li>
";
        }
        // line 59
        yield "
";
        // line 60
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["links"] ?? null), "lists", [], "array", true, true, false, 60)) {
            // line 61
            yield "<li class=\"nav-item\">
   <a href=\"#\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2 show-saved-searches\"
      data-itemtype=\"";
            // line 63
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["lists_itemtype"] ?? null), "html", null, true);
            yield "\" title=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Lists"), "html", null, true);
            yield "\">
      <i class=\"ti ti-star\"></i>
      <span class=\"d-none d-xxl-block\">";
            // line 65
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Lists"), "html", null, true);
            yield "</span>
   </a>
</li>
";
        }
        // line 69
        yield "
";
        // line 70
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["links"] ?? null));
        foreach ($context['_seq'] as $context["type"] => $context["link"]) {
            // line 71
            yield "   ";
            if (((($context["type"] == "add") || ($context["type"] == "search")) || ($context["type"] == "lists"))) {
                // line 72
                yield "   ";
            } elseif (($context["type"] == "template")) {
                // line 73
                yield "      <li class=\"nav-item\">
         <a href=\"";
                // line 74
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
                yield "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Manage templates..."), "html", null, true);
                yield "\">
            <i class=\"ti ti-template\"></i>
            <span class=\"d-none d-xxl-block\">";
                // line 76
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Templates"), "html", null, true);
                yield "</span>
         </a>
      </li>
   ";
            } elseif ((            // line 79
$context["type"] == "showall")) {
                // line 80
                yield "      <li class=\"nav-item\">
         <a href=\"";
                // line 81
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
                yield "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Show all"), "html", null, true);
                yield "\">
            <i class=\"ti ti-eye-check\"></i>
            <span class=\"d-none d-xxl-block\">";
                // line 83
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Show all"), "html", null, true);
                yield "</span>
         </a>
      </li>
   ";
            } elseif ((            // line 86
$context["type"] == "summary")) {
                // line 87
                yield "      <li class=\"nav-item\">
         <a href=\"";
                // line 88
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
                yield "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Summary"), "html", null, true);
                yield "\">
            <i class=\"ti ti-notes\"></i>
            <span class=\"d-none d-xxl-block\">";
                // line 90
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Summary"), "html", null, true);
                yield "</span>
         </a>
      </li>
   ";
            } elseif ((            // line 93
$context["type"] == "summary_kanban")) {
                // line 94
                yield "      <li class=\"nav-item\">
         <a href=\"";
                // line 95
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
                yield "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Global Kanban"), "html", null, true);
                yield "\">
            <i class=\"ti ti-layout-columns\"></i>
            <span class=\"d-none d-xxl-block\">";
                // line 97
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Global Kanban"), "html", null, true);
                yield "</span>
         </a>
      </li>
   ";
            } elseif ((            // line 100
$context["type"] == "transfer_list")) {
                // line 101
                yield "      <li class=\"nav-item\">
         <a href=\"";
                // line 102
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
                yield "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Transfer list"), "html", null, true);
                yield "\">
            <i class=\"ti ti-list-check\"></i>
            <span class=\"d-none d-xxl-block\">";
                // line 104
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Transfer list"), "html", null, true);
                yield "</span>
         </a>
      </li>
   ";
            } elseif ((            // line 107
$context["type"] == "config")) {
                // line 108
                yield "      <li class=\"nav-item\">
         <a href=\"";
                // line 109
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
                yield "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Setup"), "html", null, true);
                yield "\">
            <i class=\"ti ti-tool\"></i>
            <span class=\"d-none d-xxl-block\">";
                // line 111
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Setup"), "html", null, true);
                yield "</span>
         </a>
      </li>
   ";
            } else {
                // line 115
                yield "      <li class=\"nav-item\">
         <a href=\"";
                // line 116
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
                yield "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\">
            ";
                // line 117
                yield $context["type"];
                yield "
         </a>
      </li>
   ";
            }
            // line 121
            yield "
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['type'], $context['link'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 123
        yield "</ul>
";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "layout/parts/context_links.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  267 => 123,  260 => 121,  253 => 117,  249 => 116,  246 => 115,  239 => 111,  232 => 109,  229 => 108,  227 => 107,  221 => 104,  214 => 102,  211 => 101,  209 => 100,  203 => 97,  196 => 95,  193 => 94,  191 => 93,  185 => 90,  178 => 88,  175 => 87,  173 => 86,  167 => 83,  160 => 81,  157 => 80,  155 => 79,  149 => 76,  142 => 74,  139 => 73,  136 => 72,  133 => 71,  129 => 70,  126 => 69,  119 => 65,  112 => 63,  108 => 61,  106 => 60,  103 => 59,  96 => 55,  89 => 53,  86 => 52,  84 => 51,  81 => 50,  74 => 46,  67 => 44,  64 => 43,  62 => 42,  58 => 40,  55 => 38,  51 => 36,  49 => 35,  47 => 34,  45 => 33,  42 => 32,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "layout/parts/context_links.html.twig", "C:\\xampp\\htdocs\\itsm\\templates\\layout\\parts\\context_links.html.twig");
    }
}
