<?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/Navbar/user.html.twig */
class __TwigTemplate_d43b828fbccf88347cd0d06349b01249 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 = [
            'member_since' => [$this, 'block_member_since'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 4
        $macros["macro"] = $this->macros["macro"] = $this->load("@AdminLTE/Macros/default.html.twig", 4)->unwrap();
        // line 5
        yield "<li class=\"nav-item dropdown user-menu\">
    <a href=\"#\" class=\"nav-link dropdown-toggle\" data-toggle=\"dropdown\">
        ";
        // line 7
        yield $macros["macro"]->getTemplateForMacro("macro_avatar", $context, 7, $this->getSourceContext())->macro_avatar(...[CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "avatar", [], "any", false, false, false, 7), CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "username", [], "any", false, false, false, 7), "user-image img-circle elevation-2"]);
        yield "
        <span class=\"d-none d-md-inline\">";
        // line 8
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, false, false, 8), "givenName", [], "any", false, false, false, 8), "html", null, true);
        yield " ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, false, false, 8), "familyName", [], "any", false, false, false, 8), "html", null, true);
        yield "</span>
    </a>
    <ul class=\"dropdown-menu dropdown-menu-lg dropdown-menu-right\">
        <!-- User image -->
        <li class=\"user-header bg-primary\">
            ";
        // line 13
        yield $macros["macro"]->getTemplateForMacro("macro_avatar", $context, 13, $this->getSourceContext())->macro_avatar(...[CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "avatar", [], "any", false, false, false, 13), CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "username", [], "any", false, false, false, 13), "img-circle elevation-2"]);
        yield "
            <p>
                ";
        // line 15
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["settingsManager"] ?? null), "showRole", [], "method", false, false, false, 15), "html", null, true);
        yield "
                ";
        // line 16
        yield from $this->unwrap()->yieldBlock('member_since', $context, $blocks);
        // line 19
        yield "            </p>
        </li>

        ";
        // line 22
        if ((($tmp = ($context["links"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 23
            yield "        <!-- Menu Body -->
        <li class=\"user-body\">
            <div class=\"row\">
                ";
            // line 26
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["links"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
                // line 27
                yield "                <div class=\"col-4 text-center\">
                    <a href=\"";
                // line 28
                yield $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["link"], "path", [], "any", false, false, false, 28)), CoreExtension::getAttribute($this->env, $this->source, $context["link"], "parameters", [], "any", false, false, false, 28)), "html", null, true);
                yield "\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["link"], "title", [], "any", false, false, false, 28), "html", null, true);
                yield "</a>
                </div>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['link'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 31
            yield "            </div>
            <!-- /.row -->
        </li>
        ";
        }
        // line 35
        yield "
        ";
        // line 36
        if ((($context["showLogoutLink"] ?? null) || ($context["showProfileLink"] ?? null))) {
            // line 37
            yield "        <!-- Menu Footer-->
        <li class=\"user-footer\">
            ";
            // line 39
            if ((($tmp = ($context["showProfileLink"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 40
                yield "                <a href=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($this->env->getRuntime('KevinPapst\AdminLTEBundle\Twig\RuntimeExtension')->getRouteByAlias("adminlte_profile"), ["id" => CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "identifier", [], "any", false, false, false, 40)]), "html", null, true);
                yield "\" 
                    class=\"btn btn-default btn-flat\">";
                // line 41
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Profile", [], "AdminLTEBundle"), "html", null, true);
                yield "</a>
            ";
            }
            // line 43
            yield "            ";
            if ((($tmp = ($context["showLogoutLink"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 44
                yield "                <a href=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\LogoutUrlExtension']->getLogoutPath(), "html", null, true);
                yield "\" 
                    class=\"btn btn-default btn-flat float-right\">";
                // line 45
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Sign out", [], "AdminLTEBundle"), "html", null, true);
                yield "</a>
            ";
            }
            // line 47
            yield "        </li>
        ";
        }
        // line 49
        yield "    </ul>
</li>";
        yield from [];
    }

    // line 16
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_member_since(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 17
        yield "                <small>";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Member since %date%", ["%date%" => $this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "memberSince", [], "any", false, false, false, 17), "d/m/Y")], "AdminLTEBundle"), "html", null, true);
        yield "</small>
                ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  161 => 17,  154 => 16,  148 => 49,  144 => 47,  139 => 45,  134 => 44,  131 => 43,  126 => 41,  121 => 40,  119 => 39,  115 => 37,  113 => 36,  110 => 35,  104 => 31,  93 => 28,  90 => 27,  86 => 26,  81 => 23,  79 => 22,  74 => 19,  72 => 16,  68 => 15,  63 => 13,  53 => 8,  49 => 7,  45 => 5,  43 => 4,);
    }

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