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

/* partials/profile_top.html.twig */
class __TwigTemplate_b379426771b093466ff0ad9b78c536e0 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 1
        yield "<ul class=\"navbar-nav\">
    <li class=\"nav-item\">
    </li>
    <li class=\"nav-item d-none d-sm-inline-block\">
        <a href=\"";
        // line 5
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
        yield "\" class=\"nav-link\">";
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("navbar.home", [], "messages");
        yield "</a>
    </li>
    <li class=\"nav-item d-none d-sm-inline-block\">
        <a href=\"";
        // line 8
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_dashboard");
        yield "\" class=\"nav-link\">Applications</a>
    </li>
</ul>

<ul class=\"navbar-nav ml-auto\">

    ";
        // line 14
        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, false, false, 14)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 15
            yield "        ";
            yield from $this->load("partials/account_dropdown.html.twig", 15)->unwrap()->yield($context);
            // line 16
            yield "    ";
        } else {
            // line 17
            yield "        <li class=\"nav-item d-none d-sm-inline-block\">
            <a href=\"";
            // line 18
            yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
            yield "\" class=\"nav-link\">";
            yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("navbar.login", [], "messages");
            yield "</a>
        </li>
    ";
        }
        // line 21
        yield "
    ";
        // line 22
        $context["default_locale"] = "fr";
        // line 23
        yield "    ";
        $context["locales"] = ["en" => "English", "fr" => "Français"];
        // line 27
        yield "    ";
        $context["current_locale"] = ($context["default_locale"] ?? null);
        // line 28
        yield "    ";
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["locales"] ?? null), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 28), "get", ["_locale"], "method", false, false, false, 28), [], "array", true, true, false, 28)) {
            // line 29
            yield "        ";
            $context["current_locale"] = (($_v0 = ($context["locales"] ?? null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0[CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 29), "get", ["_locale"], "method", false, false, false, 29)] ?? null) : null);
            // line 30
            yield "    ";
        }
        // line 31
        yield "    <li class=\"nav-item dropdown\">
        <a class=\"nav-link\" data-toggle=\"dropdown\" href=\"#\">
            ";
        // line 33
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["current_locale"] ?? null), "html", null, true);
        yield " <span class=\"caret\"></span>
        </a>
        <div class=\"dropdown-menu dropdown-menu dropdown-menu-right\">
        ";
        // line 36
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["locales"] ?? null));
        foreach ($context['_seq'] as $context["locale"] => $context["label"]) {
            // line 37
            yield "            ";
            if (($context["locale"] != CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 37), "get", ["_locale"], "method", false, false, false, 37))) {
                // line 38
                yield "            <a href=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 38), "get", ["_route"], "method", false, false, false, 38), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 38), "get", ["_route_params"], "method", false, false, false, 38), ["_locale" => $context["locale"]])), "html", null, true);
                yield "\" class=\"dropdown-item\">
                ";
                // line 39
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["label"], "html", null, true);
                yield "
            </a>
            ";
            }
            // line 42
            yield "        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['locale'], $context['label'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 43
        yield "        </div>
    </li>

    <li class=\"nav-item\">
        <a class=\"nav-link\" data-widget=\"control-sidebar\" data-slide=\"true\" href=\"#\">
            <i class=\"fas fa-th-large\"></i>
        </a>
    </li>

</ul>";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "partials/profile_top.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  138 => 43,  132 => 42,  126 => 39,  121 => 38,  118 => 37,  114 => 36,  108 => 33,  104 => 31,  101 => 30,  98 => 29,  95 => 28,  92 => 27,  89 => 23,  87 => 22,  84 => 21,  76 => 18,  73 => 17,  70 => 16,  67 => 15,  65 => 14,  56 => 8,  48 => 5,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "partials/profile_top.html.twig", "/var/www/html/templates/partials/profile_top.html.twig");
    }
}
