<?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/locale.html.twig */
class __TwigTemplate_eb41a7a75f0fcd61c758bd23623285f4 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 = [
            'stylesheets' => [$this, 'block_stylesheets'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        $context["default_locale"] = "fr";
        // line 2
        $context["locales"] = ["en" => "English", "fr" => "Français"];
        // line 6
        $context["current_locale"] = ($context["default_locale"] ?? null);
        // line 7
        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, 7), "get", ["_locale"], "method", false, false, false, 7), [], "array", true, true, false, 7)) {
            // line 8
            yield "    ";
            $context["current_locale"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 8), "get", ["_locale"], "method", false, false, false, 8);
        }
        // line 10
        yield "<li class=\"nav-item dropdown\">
    <a class=\"nav-link\" data-toggle=\"dropdown\" href=\"#\">
        <i class=\"flag-icon flag-icon-";
        // line 12
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["current_locale"] ?? null), "html", null, true);
        yield "\"></i>
    </a>
    <div class=\"dropdown-menu dropdown-menu-right\">
        ";
        // line 15
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["locales"] ?? null));
        foreach ($context['_seq'] as $context["locale"] => $context["label"]) {
            // line 16
            yield "        <a href=\"";
            yield "\" 
            class=\"dropdown-item";
            // line 17
            if (($context["locale"] == CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 17), "get", ["_locale"], "method", false, false, false, 17))) {
                yield " active";
            }
            yield "\">
            <i class=\"flag-icon flag-icon-";
            // line 18
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["locale"], "html", null, true);
            yield " mr-2\"></i> ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["label"], "html", null, true);
            yield "
        </a>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['locale'], $context['label'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 21
        yield "    </div>
</li>

";
        // line 24
        yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
        yield from [];
    }

    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_stylesheets(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 25
        yield "    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.3.0/css/flag-icon.min.css\">
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  106 => 25,  95 => 24,  90 => 21,  79 => 18,  73 => 17,  69 => 16,  65 => 15,  59 => 12,  55 => 10,  51 => 8,  49 => 7,  47 => 6,  45 => 2,  43 => 1,);
    }

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