<?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/roles.html.twig */
class __TwigTemplate_76756eeab29c01120a10fe9087a7928c 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
        $context["role_icon"] = ["ROLE_ADMIN" => "user-cog", "ROLE_MANAGER" => "user-shield", "ROLE_DPP" => "user-check", "ROLE_FOCAL" => "user-tag", "ROLE_USER" => "user"];
        // line 8
        yield "
<span class=\"role-icons\">
    ";
        // line 10
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, false, false, 10));
        foreach ($context['_seq'] as $context["_key"] => $context["role"]) {
            // line 11
            yield "        ";
            if (CoreExtension::getAttribute($this->env, $this->source, ($context["role_icon"] ?? null), $context["role"], [], "array", true, true, false, 11)) {
                // line 12
                yield "            <i class=\"fa fa-lg fa-";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($_v0 = ($context["role_icon"] ?? null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0[$context["role"]] ?? null) : null), "html", null, true);
                yield "\" title=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["role"]), "html", null, true);
                yield "\"></i>
        ";
            } else {
                // line 14
                yield "            ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["role"], "html", null, true);
                yield "
        ";
            }
            // line 16
            yield "    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['role'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 17
        yield "</span>
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  75 => 17,  69 => 16,  63 => 14,  55 => 12,  52 => 11,  48 => 10,  44 => 8,  42 => 1,);
    }

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