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

/* @AdminLTE/Partials/_menu.html.twig */
class __TwigTemplate_97de6b51631f7e1025f6f6c90e3f118e 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->blocks = [
            'label' => [$this, 'block_label'],
            'list' => [$this, 'block_list'],
            'spanElement' => [$this, 'block_spanElement'],
            'linkElement' => [$this, 'block_linkElement'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "knp_menu.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("knp_menu.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_label(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 4
        yield "    ";
        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "labelAttribute", ["icon"], "method", false, false, false, 4)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            yield "<i class=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "labelAttribute", ["icon"], "method", false, false, false, 4), "html", null, true);
            yield "\"></i>";
        }
        // line 5
        yield "    ";
        if ((($tmp =  !CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "labelAttribute", ["iconOnly"], "method", false, false, false, 5)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 6
            yield "        <span>";
            if ((CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "allow_safe_labels", [], "any", false, false, false, 6) && CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "getExtra", ["safe_label", false], "method", false, false, false, 6))) {
                yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "label", [], "any", false, false, false, 6));
            } else {
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "label", [], "any", false, false, false, 6)), "html", null, true);
            }
            yield "</span>
    ";
        }
        // line 8
        yield "    ";
        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "labelAttribute", ["data-image"], "method", false, false, false, 8)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            yield "<img src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "labelAttribute", ["data-image"], "method", false, false, false, 8), "html", null, true);
            yield "\" alt=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "name", [], "any", false, false, false, 8), "html", null, true);
            yield "\" class=\"menu-thumbnail\"/>";
        }
        // line 9
        yield "    ";
        if (((CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "hasChildren", [], "any", false, false, false, 9) &&  !(CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "depth", [], "any", false, false, false, 9) === 0)) && CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "displayChildren", [], "any", false, false, false, 9))) {
            // line 10
            yield "        <span class=\"pull-right-container\">
            <i class=\"fas fa-angle-left pull-right\"></i>
        </span>
    ";
        }
        yield from [];
    }

    // line 16
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_list(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 17
        yield "    ";
        if (((CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "hasChildren", [], "any", false, false, false, 17) &&  !(CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "depth", [], "any", false, false, false, 17) === 0)) && CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "displayChildren", [], "any", false, false, false, 17))) {
            // line 18
            yield "        ";
            $macros["͜macros"] = $this->load("knp_menu.html.twig", 18)->unwrap();
            // line 19
            yield "
        ";
            // line 20
            if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["matcher"] ?? null), "isAncestor", [($context["item"] ?? null)], "method", false, false, false, 20)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 21
                $context["listAttributes"] = Twig\Extension\CoreExtension::merge(($context["listAttributes"] ?? null), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["listAttributes"] ?? null), "class", [], "any", true, true, false, 21)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["listAttributes"] ?? null), "class", [], "any", false, false, false, 21), "")) : ("")) . " in"))]);
            }
            // line 23
            yield "        ";
            if ((($tmp =  !CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "isRoot", [], "any", false, false, false, 23)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 24
                $context["listAttributes"] = Twig\Extension\CoreExtension::merge(($context["listAttributes"] ?? null), ["class" => Twig\Extension\CoreExtension::trim((((CoreExtension::getAttribute($this->env, $this->source, ($context["listAttributes"] ?? null), "class", [], "any", true, true, false, 24)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["listAttributes"] ?? null), "class", [], "any", false, false, false, 24), "")) : ("")) . " treeview-menu"))]);
            }
            // line 25
            yield " 
        <ul";
            // line 26
            yield $macros["͜macros"]->getTemplateForMacro("macro_attributes", $context, 26, $this->getSourceContext())->macro_attributes(...[($context["listAttributes"] ?? null)]);
            yield ">
            ";
            // line 27
            yield from             $this->unwrap()->yieldBlock("children", $context, $blocks);
            yield "
        </ul>
    ";
        }
        yield from [];
    }

    // line 40
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_spanElement(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 41
        yield "    ";
        $macros["͜macros"] = $this->load("knp_menu.html.twig", 41)->unwrap();
        // line 42
        yield "    ";
        if (CoreExtension::matches("/(^|s+)header(s+|\$)/", CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "attribute", ["class"], "method", false, false, false, 42))) {
            // line 43
            yield "        ";
            yield from             $this->unwrap()->yieldBlock("label", $context, $blocks);
            yield "
    ";
        } else {
            // line 45
            yield "        <a";
            yield $macros["͜macros"]->getTemplateForMacro("macro_attributes", $context, 45, $this->getSourceContext())->macro_attributes(...[CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "labelAttributes", [], "any", false, false, false, 45)]);
            yield ">
            ";
            // line 46
            yield from             $this->unwrap()->yieldBlock("label", $context, $blocks);
            yield "
        </a>
    ";
        }
        yield from [];
    }

    // line 50
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_linkElement(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 51
        yield "    ";
        $macros["knp_menu"] = $this;
        // line 52
        yield "    <a href=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "uri", [], "any", false, false, false, 52), "html", null, true);
        yield "\" class=\"nav-link";
        if ((CoreExtension::getAttribute($this->env, $this->source, ($context["matcher"] ?? null), "isCurrent", [($context["item"] ?? null)], "method", false, false, false, 52) != CoreExtension::getAttribute($this->env, $this->source, ($context["matcher"] ?? null), "isAncestor", [($context["item"] ?? null), 1], "method", false, false, false, 52))) {
            yield " active";
        }
        yield "\">
        ";
        // line 53
        if ((($tmp =  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "attribute", ["icon"], "method", false, false, false, 53))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 54
            yield "            <i class=\"nav-icon fas ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "attribute", ["icon"], "method", false, false, false, 54), "html", null, true);
            yield "\"></i>
        ";
        } else {
            // line 56
            yield "            <i class=\"nav-icon far fa-circle\"></i>
        ";
        }
        // line 58
        yield "        <p>
            ";
        // line 59
        yield from         $this->unwrap()->yieldBlock("label", $context, $blocks);
        yield "
            
            ";
        // line 61
        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "hasChildren", [], "any", false, false, false, 61)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 62
            yield "                <i class=\"right fas fa-angle-left\"></i>
            ";
        }
        // line 64
        yield "        </p>
    </a>
";
        yield from [];
    }

    // line 32
    public function macro_attributes($attributes = null, ...$varargs): string|Markup
    {
        $macros = $this->macros;
        $context = [
            "attributes" => $attributes,
            "varargs" => $varargs,
        ] + $this->env->getGlobals();

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 33
            yield "    ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["attributes"] ?? null));
            foreach ($context['_seq'] as $context["name"] => $context["value"]) {
                // line 34
                if (( !(null === $context["value"]) &&  !($context["value"] === false))) {
                    // line 35
                    yield Twig\Extension\CoreExtension::sprintf(" %s=\"%s\"", $context["name"], ((($context["value"] === true)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["name"])) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["value"]))));
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['name'], $context['value'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@AdminLTE/Partials/_menu.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  249 => 35,  247 => 34,  242 => 33,  230 => 32,  223 => 64,  219 => 62,  217 => 61,  212 => 59,  209 => 58,  205 => 56,  199 => 54,  197 => 53,  188 => 52,  185 => 51,  178 => 50,  169 => 46,  164 => 45,  158 => 43,  155 => 42,  152 => 41,  145 => 40,  136 => 27,  132 => 26,  129 => 25,  126 => 24,  123 => 23,  120 => 21,  118 => 20,  115 => 19,  112 => 18,  109 => 17,  102 => 16,  93 => 10,  90 => 9,  81 => 8,  71 => 6,  68 => 5,  61 => 4,  54 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@AdminLTE/Partials/_menu.html.twig", "/var/www/html/templates/bundles/AdminLTEBundle/Partials/_menu.html.twig");
    }
}
