<?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/Macros/menu.html.twig */
class __TwigTemplate_d7225f1176782d6d357c64fba10b3a1b 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 38
        yield "
";
        yield from [];
    }

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

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 2
            yield "    ";
            $macros["menu"] = $this;
            // line 3
            yield "    ";
            if ((CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "route", [], "any", false, false, false, 3) || CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "hasChildren", [], "any", false, false, false, 3))) {
                // line 4
                yield "        <li id=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "identifier", [], "any", false, false, false, 4), "html", null, true);
                yield "\" class=\" ";
                yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "isActive", [], "any", false, false, false, 4)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("active") : (""));
                yield " ";
                yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "hasChildren", [], "any", false, false, false, 4)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("treeview") : (""));
                yield "\">
            <a href=\"";
                // line 5
                yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "hasChildren", [], "any", false, false, false, 5)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("#") : (((CoreExtension::inFilter("/", CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "route", [], "any", false, false, false, 5))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "route", [], "any", false, false, false, 5), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($this->env->getRuntime('KevinPapst\AdminLTEBundle\Twig\RuntimeExtension')->getRouteByAlias(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "route", [], "any", false, false, false, 5)), CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "routeArgs", [], "any", false, false, false, 5)), "html", null, true)))));
                yield "\">
                ";
                // line 6
                if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "icon", [], "any", false, false, false, 6)) && $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), "icon", [], "any", false, false, false, 6), "html", null, true);
                    yield "\"></i> ";
                }
                // line 7
                yield "                ";
                if ((($tmp =  !(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "badge", [], "any", false, false, false, 7) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                    // line 8
                    yield "                <span class=\"pull-right-container\">
                    <small class=\"label pull-right bg-";
                    // line 9
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "badgeColor", [], "any", false, false, false, 9), "html", null, true);
                    yield "\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "badge", [], "any", false, false, false, 9), "html", null, true);
                    yield "</small>
                </span>
                ";
                }
                // line 12
                yield "                ";
                if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "hasChildren", [], "any", false, false, false, 12)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                    yield "<i class=\"fas fa-angle-left pull-right\"></i>";
                }
                // line 13
                yield "                <span>";
                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, 13)), "html", null, true);
                yield "</span>
            </a>

            ";
                // line 16
                if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "hasChildren", [], "any", false, false, false, 16)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                    // line 17
                    yield "                <ul class=\"treeview-menu\">
                    ";
                    // line 18
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "children", [], "any", false, false, false, 18));
                    foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                        // line 19
                        yield "                        ";
                        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["child"], "hasChildren", [], "any", false, false, false, 19)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                            // line 20
                            yield "                           ";
                            yield $macros["menu"]->getTemplateForMacro("macro_menu_item", $context, 20, $this->getSourceContext())->macro_menu_item(...[$context["child"]]);
                            yield "
                        ";
                        } else {
                            // line 22
                            yield "                            <li class=\"";
                            yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["child"], "isActive", [], "any", false, false, false, 22)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("active") : (""));
                            yield "\" id=\"";
                            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "identifier", [], "any", false, false, false, 22), "html", null, true);
                            yield "\">
                                <a href=\"";
                            // line 23
                            yield ((CoreExtension::inFilter("/", CoreExtension::getAttribute($this->env, $this->source, $context["child"], "route", [], "any", false, false, false, 23))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "route", [], "any", false, false, false, 23), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($this->env->getRuntime('KevinPapst\AdminLTEBundle\Twig\RuntimeExtension')->getRouteByAlias(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "route", [], "any", false, false, false, 23)), CoreExtension::getAttribute($this->env, $this->source, $context["child"], "routeArgs", [], "any", false, false, false, 23)), "html", null, true)));
                            yield "\">
                                    ";
                            // line 24
                            yield $macros["menu"]->getTemplateForMacro("macro_menu_item_content", $context, 24, $this->getSourceContext())->macro_menu_item_content(...[$context["child"], ""]);
                            yield "
                                </a>
                            </li>
                        ";
                        }
                        // line 28
                        yield "                    ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 29
                    yield "                </ul>
            ";
                }
                // line 31
                yield "        </li>
    ";
            } else {
                // line 33
                yield "        <li id=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "identifier", [], "any", false, false, false, 33), "html", null, true);
                yield "\" class=\"header\">
            ";
                // line 34
                yield $macros["menu"]->getTemplateForMacro("macro_menu_item_content", $context, 34, $this->getSourceContext())->macro_menu_item_content(...[($context["item"] ?? null), ""]);
                yield "
        </li>
    ";
            }
            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

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

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 40
            yield "    <i class=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "icon", [], "any", true, true, false, 40)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "icon", [], "any", false, false, false, 40), ($context["defaultIcon"] ?? null))) : (($context["defaultIcon"] ?? null))), "html", null, true);
            yield "\"></i>
    <span>";
            // line 41
            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, 41)), "html", null, true);
            yield "</span>
    ";
            // line 42
            if ((($tmp =  !(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "badge", [], "any", false, false, false, 42) === false)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 43
                yield "    <span class=\"pull-right-container\">
        <small class=\"label pull-right bg-";
                // line 44
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "badgeColor", [], "any", false, false, false, 44), "html", null, true);
                yield "\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "badge", [], "any", false, false, false, 44), "html", null, true);
                yield "</small>
    </span>
    ";
            }
            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  203 => 44,  200 => 43,  198 => 42,  194 => 41,  189 => 40,  176 => 39,  166 => 34,  161 => 33,  157 => 31,  153 => 29,  147 => 28,  140 => 24,  136 => 23,  129 => 22,  123 => 20,  120 => 19,  116 => 18,  113 => 17,  111 => 16,  104 => 13,  99 => 12,  91 => 9,  88 => 8,  85 => 7,  79 => 6,  75 => 5,  66 => 4,  63 => 3,  60 => 2,  48 => 1,  42 => 38,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@AdminLTE/Macros/menu.html.twig", "/var/www/html/vendor/kevinpapst/adminlte-bundle/Resources/views/Macros/menu.html.twig");
    }
}
