<?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_63de2d45eaadd8f85d31023674af40c7 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=\"nav-item ";
                yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "hasChildren", [], "any", false, false, false, 4)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("has-treeview") : (""));
                yield "\">
            <a class=\"nav-link ";
                // line 5
                yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "isActive", [], "any", false, false, false, 5)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("active") : (""));
                yield "\" href=\"";
                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=\"nav-icon ";
                    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=\"right badge badge-";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "badgeColor", [], "any", false, false, false, 8), "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, 8), "html", null, true);
                    yield "</span>
                ";
                }
                // line 10
                yield "                <p>
                    ";
                // line 11
                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, 11)), "html", null, true);
                yield "
                    ";
                // line 12
                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 right\"></i>";
                }
                // line 13
                yield "                </p>
            </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=\"nav nav-treeview\">
                    ";
                    // 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=\"nav-item\" 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 class=\"nav-link ";
                            // line 23
                            yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["child"], "isActive", [], "any", false, false, false, 23)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("active") : (""));
                            yield "\" href=\"";
                            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=\"nav-icon far fa-circle\"></i>
    <p>";
            // 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 "</p>
    ";
            // 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=\"right badge badge-";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "badgeColor", [], "any", false, false, false, 43), "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, 43), "html", null, true);
                yield "</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 (  199 => 43,  197 => 42,  193 => 41,  190 => 40,  177 => 39,  167 => 34,  162 => 33,  158 => 31,  154 => 29,  148 => 28,  141 => 24,  135 => 23,  130 => 22,  124 => 20,  121 => 19,  117 => 18,  114 => 17,  112 => 16,  107 => 13,  103 => 12,  99 => 11,  96 => 10,  88 => 8,  85 => 7,  79 => 6,  73 => 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/templates/bundles/AdminLTEBundle/Macros/menu.html.twig");
    }
}
