<?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_f10c69ac93bc22ee00ba25a0812531f5 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;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AdminLTE/Navbar/user.html.twig"));

        // 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, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 7, $this->source); })()), "avatar", [], "any", false, false, false, 7), CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 7, $this->source); })()), "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, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 8, $this->source); })()), "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, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 8, $this->source); })()), "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, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 13, $this->source); })()), "avatar", [], "any", false, false, false, 13), CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 13, $this->source); })()), "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, (isset($context["settingsManager"]) || array_key_exists("settingsManager", $context) ? $context["settingsManager"] : (function () { throw new RuntimeError('Variable "settingsManager" does not exist.', 15, $this->source); })()), "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 = (isset($context["links"]) || array_key_exists("links", $context) ? $context["links"] : (function () { throw new RuntimeError('Variable "links" does not exist.', 22, $this->source); })())) && $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((isset($context["links"]) || array_key_exists("links", $context) ? $context["links"] : (function () { throw new RuntimeError('Variable "links" does not exist.', 26, $this->source); })()));
            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 (((isset($context["showLogoutLink"]) || array_key_exists("showLogoutLink", $context) ? $context["showLogoutLink"] : (function () { throw new RuntimeError('Variable "showLogoutLink" does not exist.', 36, $this->source); })()) || (isset($context["showProfileLink"]) || array_key_exists("showProfileLink", $context) ? $context["showProfileLink"] : (function () { throw new RuntimeError('Variable "showProfileLink" does not exist.', 36, $this->source); })()))) {
            // line 37
            yield "        <!-- Menu Footer-->
        <li class=\"user-footer\">
            ";
            // line 39
            if ((($tmp = (isset($context["showProfileLink"]) || array_key_exists("showProfileLink", $context) ? $context["showProfileLink"] : (function () { throw new RuntimeError('Variable "showProfileLink" does not exist.', 39, $this->source); })())) && $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, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 40, $this->source); })()), "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 = (isset($context["showLogoutLink"]) || array_key_exists("showLogoutLink", $context) ? $context["showLogoutLink"] : (function () { throw new RuntimeError('Variable "showLogoutLink" does not exist.', 43, $this->source); })())) && $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>";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 16
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_member_since(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "member_since"));

        // 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, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 17, $this->source); })()), "memberSince", [], "any", false, false, false, 17), "d/m/Y")], "AdminLTEBundle"), "html", null, true);
        yield "</small>
                ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        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 (  170 => 17,  160 => 16,  151 => 49,  147 => 47,  142 => 45,  137 => 44,  134 => 43,  129 => 41,  124 => 40,  122 => 39,  118 => 37,  116 => 36,  113 => 35,  107 => 31,  96 => 28,  93 => 27,  89 => 26,  84 => 23,  82 => 22,  77 => 19,  75 => 16,  71 => 15,  66 => 13,  56 => 8,  52 => 7,  48 => 5,  46 => 4,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{# @var links \\KevinPapst\\AdminLTEBundle\\Model\\NavBarUserLink[] #}
{# @var showProfileLink bool #}
{# @var showLogoutLink bool #}
{% import \"@AdminLTE/Macros/default.html.twig\" as macro %}
<li class=\"nav-item dropdown user-menu\">
    <a href=\"#\" class=\"nav-link dropdown-toggle\" data-toggle=\"dropdown\">
        {{ macro.avatar(user.avatar, user.username, 'user-image img-circle elevation-2') }}
        <span class=\"d-none d-md-inline\">{{ app.user.givenName }} {{ app.user.familyName }}</span>
    </a>
    <ul class=\"dropdown-menu dropdown-menu-lg dropdown-menu-right\">
        <!-- User image -->
        <li class=\"user-header bg-primary\">
            {{ macro.avatar(user.avatar, user.username, 'img-circle elevation-2') }}
            <p>
                {{ settingsManager.showRole() }}
                {% block member_since %}
                <small>{{ 'Member since %date%'|trans({'%date%': user.memberSince|date('d/m/Y') }, 'AdminLTEBundle') }}</small>
                {% endblock %}
            </p>
        </li>

        {% if links %}
        <!-- Menu Body -->
        <li class=\"user-body\">
            <div class=\"row\">
                {% for link in links %}
                <div class=\"col-4 text-center\">
                    <a href=\"{{ path(link.path|route_alias, link.parameters) }}\">{{ link.title }}</a>
                </div>
                {% endfor %}
            </div>
            <!-- /.row -->
        </li>
        {% endif %}

        {% if showLogoutLink or showProfileLink %}
        <!-- Menu Footer-->
        <li class=\"user-footer\">
            {% if showProfileLink %}
                <a href=\"{{ path('adminlte_profile'|route_alias, {'id' : user.identifier}) }}\" 
                    class=\"btn btn-default btn-flat\">{{ 'Profile'|trans({}, 'AdminLTEBundle') }}</a>
            {% endif %}
            {% if showLogoutLink %}
                <a href=\"{{ logout_path() }}\" 
                    class=\"btn btn-default btn-flat float-right\">{{ 'Sign out'|trans({}, 'AdminLTEBundle') }}</a>
            {% endif %}
        </li>
        {% endif %}
    </ul>
</li>", "@AdminLTE/Navbar/user.html.twig", "C:\\Users\\dev29\\Documents\\code source mes odd\\httpdocs\\templates\\bundles\\AdminLTEBundle\\Navbar\\user.html.twig");
    }
}
