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

/* security/profil.html.twig */
class __TwigTemplate_db89e9bb179ea4abd17a737b88c4667b 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->blocks = [
            'title' => [$this, 'block_title'],
            'body' => [$this, 'block_body'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "base.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/profil.html.twig"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/profil.html.twig"));

        $this->parent = $this->loadTemplate("base.html.twig", "security/profil.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 2
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        // line 3
        yield "\t";
        yield from $this->yieldParentBlock("title", $context, $blocks);
        yield "Profil
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        yield from [];
    }

    // line 5
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        // line 6
        yield "\t<h1 class=\"text-center text-primary mt-4 pt-4 display-1 fw-bold\">SHARE</h1>
\t<h2 class=\"text-center text-secondary mb-4 pb-4 display-1\">Votre profil</h2>
\t<div class=\"container\">
\t\t<div class=\"row justify-content-center\" style=\"font-size: 20px;\">
\t\t\t<div class=\"col-4\">
\t\t\t\t<div class=\"mb-2 d-flex justify-content-center\">
\t\t\t\t\t<span style=\"padding-left: 20px;\">";
        // line 12
        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.', 12, $this->source); })()), "user", [], "any", false, false, false, 12), "nom", [], "any", false, false, false, 12), "html", null, true);
        yield "</span>
\t\t\t\t\t<span style=\"padding-left: 20px;\">";
        // line 13
        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.', 13, $this->source); })()), "user", [], "any", false, false, false, 13), "prenom", [], "any", false, false, false, 13), "html", null, true);
        yield "</span>
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t\t<div class=\"mb-2 d-flex justify-content-center\">
\t\t\t\t\t<span style=\"padding-left: 20px;\">";
        // line 17
        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.', 17, $this->source); })()), "user", [], "any", false, false, false, 17), "email", [], "any", false, false, false, 17), "html", null, true);
        yield "</span>
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t\t<div class=\"mb-2 d-flex justify-content-center\">
\t\t\t\t\t<span style=\"padding-left: 20px;\">";
        // line 21
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(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.', 21, $this->source); })()), "user", [], "any", false, false, false, 21), "dateInscription", [], "any", false, false, false, 21), "Y-m-d"), "html", null, true);
        yield "</span>
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t\t<div class=\"mb-2 d-flex justify-content-center\">
\t\t\t\t\t";
        // line 25
        if (CoreExtension::inFilter("ROLE_ADMIN", 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.', 25, $this->source); })()), "user", [], "any", false, false, false, 25), "roles", [], "any", false, false, false, 25))) {
            // line 26
            yield "\t\t\t\t\t\t<span style=\"padding-left: 20px;\">Administrateur</span>
\t\t\t\t\t";
        } else {
            // line 28
            yield "\t\t\t\t\t\t";
            if (CoreExtension::inFilter("ROLE_MOD", 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.', 28, $this->source); })()), "user", [], "any", false, false, false, 28), "roles", [], "any", false, false, false, 28))) {
                // line 29
                yield "\t\t\t\t\t\t\t<span style=\"padding-left: 20px;\">Modérateur</span>
\t\t\t\t\t\t";
            } else {
                // line 31
                yield "\t\t\t\t\t\t\t<span style=\"padding-left: 20px;\">Utilisateur</span>
\t\t\t\t\t\t";
            }
            // line 33
            yield "\t\t\t\t\t";
        }
        // line 34
        yield "\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t\t<div class=\"mb-2 d-flex justify-content-center\">
\t\t\t\t\t<span>Vous avez
\t\t\t\t\t\t";
        // line 38
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), 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.', 38, $this->source); })()), "user", [], "any", false, false, false, 38), "fichiers", [], "any", false, false, false, 38)), "html", null, true);
        yield "
\t\t\t\t\t\tfichier(s)</span>
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t</div>
\t\t\t<div style=\"padding-top: 20px\">
\t\t\t\t<table class=\"table table-hover\">
\t\t\t\t\t";
        // line 45
        if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), 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.', 45, $this->source); })()), "user", [], "any", false, false, false, 45), "fichiers", [], "any", false, false, false, 45)) > 0)) {
            // line 46
            yield "\t\t\t\t\t\t";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(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.', 46, $this->source); })()), "user", [], "any", false, false, false, 46), "fichiers", [], "any", false, false, false, 46));
            $context['loop'] = [
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            ];
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
                // line 47
                yield "\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"text-center\">
\t\t\t\t\t\t\t\t\t<fieldset>
\t\t\t\t\t\t\t\t\t\t<legend>
\t\t\t\t\t\t\t\t\t\t\t<i class=\"bi bi-filetype-pdf\"></i>
\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
                // line 52
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_telechargement_fichier_user", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["f"], "id", [], "any", false, false, false, 52)]), "html", null, true);
                yield "\" style=\"text-decoration: none\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["f"], "nomOriginal", [], "any", false, false, false, 52), "html", null, true);
                yield "</a>
\t\t\t\t\t\t\t\t\t\t</legend>
\t\t\t\t\t\t\t\t\t\t<ul style=\"list-style: none\">
\t\t\t\t\t\t\t\t\t\t\t";
                // line 55
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["f"], "scategories", [], "any", false, false, false, 55));
                foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
                    // line 56
                    yield "\t\t\t\t\t\t\t\t\t\t\t\t<li>";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "numero", [], "any", false, false, false, 56), "html", null, true);
                    yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t";
                    // line 57
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["s"], "libelle", [], "any", false, false, false, 57)), "html", null, true);
                    yield "</li>
\t\t\t\t\t\t\t\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_key'], $context['s'], $context['_parent']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 59
                yield "\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t";
                // line 60
                if ( !CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 60)) {
                    // line 61
                    yield "\t\t\t\t\t\t\t\t\t\t\t<hr>
\t\t\t\t\t\t\t\t\t\t";
                }
                // line 63
                yield "\t\t\t\t\t\t\t\t\t</fieldset>
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 67
            yield "\t\t\t\t\t";
        } else {
            // line 68
            yield "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"text-center\">Aucun fichier</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t";
        }
        // line 72
        yield "\t\t\t\t</table>
\t\t\t</div>
\t\t</div>
\t\t<div style=\"padding-top: 50px\">
\t\t\t<h3 class=\"text-center\">Ajouter un fichier</h3>
\t\t\t";
        // line 77
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 77, $this->source); })()), 'form_start');
        yield "
\t\t\t";
        // line 78
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 78, $this->source); })()), "fichier", [], "any", false, false, false, 78), 'row');
        yield "
\t\t\t<div class=\"mt-5 bg-white p-4\">
\t\t\t\t<div class=\"table-responsive\">
\t\t\t\t\t<table class=\"table\">
\t\t\t\t\t\t";
        // line 82
        $context["id"] = null;
        // line 83
        yield "\t\t\t\t\t\t";
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["scategories"]) || array_key_exists("scategories", $context) ? $context["scategories"] : (function () { throw new RuntimeError('Variable "scategories" does not exist.', 83, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["scategorie"]) {
            // line 84
            yield "\t\t\t\t\t\t\t";
            if (((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 84, $this->source); })()) != CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "categorie", [], "any", false, false, false, 84), "id", [], "any", false, false, false, 84))) {
                // line 85
                yield "\t\t\t\t\t\t\t\t";
                $context["id"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "categorie", [], "any", false, false, false, 85), "id", [], "any", false, false, false, 85);
                // line 86
                yield "\t\t\t\t\t\t\t\t<tr class=\"table-primary\" style=\"color: white;\">
\t\t\t\t\t\t\t\t\t<td class=\"fw-bold\">";
                // line 87
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "categorie", [], "any", false, false, false, 87), "id", [], "any", false, false, false, 87), "html", null, true);
                yield "
\t\t\t\t\t\t\t\t\t\t";
                // line 88
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "categorie", [], "any", false, false, false, 88), "libelle", [], "any", false, false, false, 88), "html", null, true);
                yield "</td>
\t\t\t\t\t\t\t\t\t<td></td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t";
            }
            // line 92
            yield "\t\t\t\t\t\t\t<tr class=\"table-secondary\">
\t\t\t\t\t\t\t\t<td class=\"text-primary\">-
\t\t\t\t\t\t\t\t\t";
            // line 94
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "numero", [], "any", false, false, false, 94), "html", null, true);
            yield "
\t\t\t\t\t\t\t\t\t";
            // line 95
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "libelle", [], "any", false, false, false, 95), "html", null, true);
            yield "</td>
\t\t\t\t\t\t\t\t<td class=\"text-primary\">";
            // line 96
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 96, $this->source); })()), "scategories", [], "any", false, false, false, 96), CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "id", [], "any", false, false, false, 96), [], "array", false, false, false, 96), 'widget');
            yield "</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['scategorie'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 99
        yield "\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"mt-4\">
\t\t\t\t";
        // line 103
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 103, $this->source); })()), "ajouter", [], "any", false, false, false, 103), 'row');
        yield "
\t\t\t</div>
\t\t\t";
        // line 105
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 105, $this->source); })()), 'form_end');
        yield "
\t\t</div>
\t</div>

";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  337 => 105,  332 => 103,  326 => 99,  317 => 96,  313 => 95,  309 => 94,  305 => 92,  298 => 88,  294 => 87,  291 => 86,  288 => 85,  285 => 84,  280 => 83,  278 => 82,  271 => 78,  267 => 77,  260 => 72,  254 => 68,  251 => 67,  234 => 63,  230 => 61,  228 => 60,  225 => 59,  217 => 57,  212 => 56,  208 => 55,  200 => 52,  193 => 47,  175 => 46,  173 => 45,  163 => 38,  157 => 34,  154 => 33,  150 => 31,  146 => 29,  143 => 28,  139 => 26,  137 => 25,  130 => 21,  123 => 17,  116 => 13,  112 => 12,  104 => 6,  91 => 5,  77 => 3,  64 => 2,  41 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends 'base.html.twig' %}
{% block title %}
\t{{parent()}}Profil
{% endblock %}
{% block body %}
\t<h1 class=\"text-center text-primary mt-4 pt-4 display-1 fw-bold\">SHARE</h1>
\t<h2 class=\"text-center text-secondary mb-4 pb-4 display-1\">Votre profil</h2>
\t<div class=\"container\">
\t\t<div class=\"row justify-content-center\" style=\"font-size: 20px;\">
\t\t\t<div class=\"col-4\">
\t\t\t\t<div class=\"mb-2 d-flex justify-content-center\">
\t\t\t\t\t<span style=\"padding-left: 20px;\">{{ app.user.nom }}</span>
\t\t\t\t\t<span style=\"padding-left: 20px;\">{{ app.user.prenom }}</span>
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t\t<div class=\"mb-2 d-flex justify-content-center\">
\t\t\t\t\t<span style=\"padding-left: 20px;\">{{ app.user.email }}</span>
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t\t<div class=\"mb-2 d-flex justify-content-center\">
\t\t\t\t\t<span style=\"padding-left: 20px;\">{{ app.user.dateInscription|date('Y-m-d') }}</span>
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t\t<div class=\"mb-2 d-flex justify-content-center\">
\t\t\t\t\t{% if \"ROLE_ADMIN\" in app.user.roles %}
\t\t\t\t\t\t<span style=\"padding-left: 20px;\">Administrateur</span>
\t\t\t\t\t{% else %}
\t\t\t\t\t\t{% if \"ROLE_MOD\" in app.user.roles %}
\t\t\t\t\t\t\t<span style=\"padding-left: 20px;\">Modérateur</span>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<span style=\"padding-left: 20px;\">Utilisateur</span>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t\t<div class=\"mb-2 d-flex justify-content-center\">
\t\t\t\t\t<span>Vous avez
\t\t\t\t\t\t{{ app.user.fichiers | length }}
\t\t\t\t\t\tfichier(s)</span>
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t</div>
\t\t\t<div style=\"padding-top: 20px\">
\t\t\t\t<table class=\"table table-hover\">
\t\t\t\t\t{% if app.user.fichiers | length > 0 %}
\t\t\t\t\t\t{% for f in app.user.fichiers %}
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"text-center\">
\t\t\t\t\t\t\t\t\t<fieldset>
\t\t\t\t\t\t\t\t\t\t<legend>
\t\t\t\t\t\t\t\t\t\t\t<i class=\"bi bi-filetype-pdf\"></i>
\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{path('app_telechargement_fichier_user', {'id':f.id})}}\" style=\"text-decoration: none\">{{f.nomOriginal}}</a>
\t\t\t\t\t\t\t\t\t\t</legend>
\t\t\t\t\t\t\t\t\t\t<ul style=\"list-style: none\">
\t\t\t\t\t\t\t\t\t\t\t{% for s in f.scategories %}
\t\t\t\t\t\t\t\t\t\t\t\t<li>{{s.numero}}
\t\t\t\t\t\t\t\t\t\t\t\t\t{{s.libelle | capitalize}}</li>
\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t{% if not loop.last %}
\t\t\t\t\t\t\t\t\t\t\t<hr>
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t</fieldset>
\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t{% else %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"text-center\">Aucun fichier</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t{% endif %}
\t\t\t\t</table>
\t\t\t</div>
\t\t</div>
\t\t<div style=\"padding-top: 50px\">
\t\t\t<h3 class=\"text-center\">Ajouter un fichier</h3>
\t\t\t{{ form_start(form) }}
\t\t\t{{ form_row(form.fichier) }}
\t\t\t<div class=\"mt-5 bg-white p-4\">
\t\t\t\t<div class=\"table-responsive\">
\t\t\t\t\t<table class=\"table\">
\t\t\t\t\t\t{% set id = null %}
\t\t\t\t\t\t{% for scategorie in scategories %}
\t\t\t\t\t\t\t{% if id != scategorie.categorie.id %}
\t\t\t\t\t\t\t\t{% set id = scategorie.categorie.id %}
\t\t\t\t\t\t\t\t<tr class=\"table-primary\" style=\"color: white;\">
\t\t\t\t\t\t\t\t\t<td class=\"fw-bold\">{{ scategorie.categorie.id }}
\t\t\t\t\t\t\t\t\t\t{{ scategorie.categorie.libelle }}</td>
\t\t\t\t\t\t\t\t\t<td></td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t<tr class=\"table-secondary\">
\t\t\t\t\t\t\t\t<td class=\"text-primary\">-
\t\t\t\t\t\t\t\t\t{{ scategorie.numero }}
\t\t\t\t\t\t\t\t\t{{ scategorie.libelle }}</td>
\t\t\t\t\t\t\t\t<td class=\"text-primary\">{{ form_widget(form.scategories[scategorie.id]) }}</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"mt-4\">
\t\t\t\t{{ form_row(form.ajouter) }}
\t\t\t</div>
\t\t\t{{ form_end(form) }}
\t\t</div>
\t</div>

{% endblock %}
", "security/profil.html.twig", "/var/www/html/share/templates/security/profil.html.twig");
    }
}
