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

/* admin/user_profile.html.twig */
class __TwigTemplate_7793514a6501eb60bcc5b9c7182553b6 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 = [
            'page_title' => [$this, 'block_page_title'],
            'page_content' => [$this, 'block_page_content'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 17
        return $this->load((isset($context["extendedTemplate"]) || array_key_exists("extendedTemplate", $context) ? $context["extendedTemplate"] : (function () { throw new RuntimeError('Variable "extendedTemplate" does not exist.', 17, $this->source); })()), 17);
    }

    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", "admin/user_profile.html.twig"));

        // line 1
        if ((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.', 1, $this->source); })()), "session", [], "any", false, false, false, 1), "get", ["_application"], "method", false, false, false, 1) == 0)) {
            // line 2
            $context["extendedTemplate"] = "@AdminLTE/layout/mesodd-layout.html.twig";
        }
        // line 4
        if ((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.', 4, $this->source); })()), "session", [], "any", false, false, false, 4), "get", ["_application"], "method", false, false, false, 4) == 1)) {
            // line 5
            if ((($tmp = 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.', 5, $this->source); })()), "session", [], "any", false, false, false, 5), "get", ["_commune"], "method", false, false, false, 5)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 6
                $context["extendedTemplate"] = "@AdminLTE/layout/communeodd-layout.html.twig";
            } elseif ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,             // line 7
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "session", [], "any", false, false, false, 7), "get", ["_departement"], "method", false, false, false, 7)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 8
                $context["extendedTemplate"] = "@AdminLTE/layout/ddd-layout.html.twig";
            } else {
                // line 10
                $context["extendedTemplate"] = "@AdminLTE/layout/suiodd-layout.html.twig";
            }
        }
        // line 13
        if ((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); })()), "session", [], "any", false, false, false, 13), "get", ["_application"], "method", false, false, false, 13) == 2)) {
            // line 14
            $context["extendedTemplate"] = "@AdminLTE/layout/cfgodd-layout.html.twig";
        }
        // line 17
        yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 19
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_title(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", "page_title"));

        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("admin.user.title", [], "messages");
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 22
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(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", "page_content"));

        // line 23
        $macros["macro"] = $this->load("@AdminLTE/Macros/default.html.twig", 23)->unwrap();
        // line 24
        yield "<div class=\"container-fluid\">
<div class=\"row\">
    <div class=\"col-md-3\">
  
        <div class=\"card card-primary card-outline\">
            <div class=\"card-body box-profile\">
                <div class=\"text-center\">
                    ";
        // line 31
        yield $macros["macro"]->getTemplateForMacro("macro_avatar", $context, 31, $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.', 31, $this->source); })()), "avatar", [], "any", false, false, false, 31), 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.', 31, $this->source); })()), "username", [], "any", false, false, false, 31), "profile-user-img img-fluid img-circle"]);
        yield "
                </div>

                <h3 class=\"profile-username text-center\">";
        // line 34
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 34, $this->source); })()), "familyName", [], "any", false, false, false, 34), "html", null, true);
        yield " ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 34, $this->source); })()), "givenName", [], "any", false, false, false, 34), "html", null, true);
        yield "</h3>

                <p class=\"text-muted text-center\">";
        // line 36
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 36, $this->source); })()), "office", [], "any", false, false, false, 36), "html", null, true);
        yield "</p>

                <!--ul class=\"list-group list-group-unbordered mb-3\">
                    <li class=\"list-group-item\">
                        <b>Followers</b> <a class=\"float-right\">1,322</a>
                    </li>
                    <li class=\"list-group-item\">
                        <b>Following</b> <a class=\"float-right\">543</a>
                    </li>
                    <li class=\"list-group-item\">
                        <b>Friends</b> <a class=\"float-right\">13,287</a>
                    </li>
                </ul-->

                <!--a href=\"#\" class=\"btn btn-primary btn-block\"><b>Follow</b></a-->
            </div>

        </div>
    </div>

    <div class=\"col-md-9\">
        <div class=\"card\">

            <div class=\"card-header p-2\">
                <ul class=\"nav nav-pills\">
                    <li class=\"nav-item\"><a class=\"nav-link active\" href=\"#settings\" data-toggle=\"tab\">";
        // line 61
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("navbar.myaccount", [], "messages");
        yield "</a></li>
                    <li class=\"nav-item\"><a class=\"nav-link\" href=\"#activity\" data-toggle=\"tab\">";
        // line 62
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("navbar.resetting", [], "messages");
        yield "</a></li>
                </ul>
            </div>
            
            <div class=\"card-body\">
                <div class=\"tab-content\">
                    <div class=\"tab-pane active\" id=\"settings\">
                        ";
        // line 69
        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.', 69, $this->source); })()), 'form_start');
        yield "
                            ";
        // line 71
        yield "                            ";
        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.', 71, $this->source); })()), "email", [], "any", false, false, false, 71), 'row');
        yield "
                            ";
        // line 72
        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.', 72, $this->source); })()), "familyName", [], "any", false, false, false, 72), 'row');
        yield "
                            ";
        // line 73
        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.', 73, $this->source); })()), "givenName", [], "any", false, false, false, 73), 'row');
        yield "
                            ";
        // line 74
        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.', 74, $this->source); })()), "telephone", [], "any", false, false, false, 74), 'row');
        yield "
                            ";
        // line 75
        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.', 75, $this->source); })()), "office", [], "any", false, false, false, 75), 'row');
        yield "
                            ";
        // line 77
        yield "            
                            <div class=\"form-group row\">
                                <div class=\"col-sm-2\"></div>
                                <div class=\"col-sm-offset-2 col-sm-10\">
                                    <button type=\"submit\" class=\"btn btn-block btn-primary\">";
        // line 81
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.save", [], "messages");
        yield "</button>
                                </div>
                            </div>

                        ";
        // line 85
        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.', 85, $this->source); })()), 'form_end');
        yield "
                    </div>
                    <div class=\"tab-pane\" id=\"activity\">
                        ";
        // line 88
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form_reset"]) || array_key_exists("form_reset", $context) ? $context["form_reset"] : (function () { throw new RuntimeError('Variable "form_reset" does not exist.', 88, $this->source); })()), 'form_start');
        yield "
                            ";
        // line 89
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form_reset"]) || array_key_exists("form_reset", $context) ? $context["form_reset"] : (function () { throw new RuntimeError('Variable "form_reset" does not exist.', 89, $this->source); })()), "password", [], "any", false, false, false, 89), 'row');
        yield " 
                            ";
        // line 90
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form_reset"]) || array_key_exists("form_reset", $context) ? $context["form_reset"] : (function () { throw new RuntimeError('Variable "form_reset" does not exist.', 90, $this->source); })()), "plainPassword", [], "any", false, false, false, 90), "first", [], "any", false, false, false, 90), 'row');
        yield "
                            ";
        // line 91
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form_reset"]) || array_key_exists("form_reset", $context) ? $context["form_reset"] : (function () { throw new RuntimeError('Variable "form_reset" does not exist.', 91, $this->source); })()), "plainPassword", [], "any", false, false, false, 91), "second", [], "any", false, false, false, 91), 'row');
        yield "

                            <div class=\"form-group row\">
                                <div class=\"col-sm-2\"></div>
                                <div class=\"col-sm-offset-2 col-sm-10\">
                                    <button type=\"submit\" class=\"btn btn-block btn-primary\">";
        // line 96
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.save", [], "messages");
        yield "</button>
                                </div>
                            </div>
            
                        ";
        // line 100
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form_reset"]) || array_key_exists("form_reset", $context) ? $context["form_reset"] : (function () { throw new RuntimeError('Variable "form_reset" does not exist.', 100, $this->source); })()), 'form_end');
        yield "
                    </div>

                </div>
            </div>

        </div>

    </div>
</div>
</div>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  247 => 100,  240 => 96,  232 => 91,  228 => 90,  224 => 89,  220 => 88,  214 => 85,  207 => 81,  201 => 77,  197 => 75,  193 => 74,  189 => 73,  185 => 72,  180 => 71,  176 => 69,  166 => 62,  162 => 61,  134 => 36,  127 => 34,  121 => 31,  112 => 24,  110 => 23,  100 => 22,  83 => 19,  76 => 17,  73 => 14,  71 => 13,  67 => 10,  64 => 8,  62 => 7,  60 => 6,  58 => 5,  56 => 4,  53 => 2,  51 => 1,  41 => 17,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% if app.session.get('_application') == 0 %}
    {% set extendedTemplate = '@AdminLTE/layout/mesodd-layout.html.twig' %}
{% endif %}
{% if app.session.get('_application') == 1 %}
    {% if app.session.get('_commune') %}
        {% set extendedTemplate = '@AdminLTE/layout/communeodd-layout.html.twig' %}
    {% elseif app.session.get('_departement') %}
        {% set extendedTemplate = '@AdminLTE/layout/ddd-layout.html.twig' %}
    {% else %}
        {% set extendedTemplate = '@AdminLTE/layout/suiodd-layout.html.twig' %}
    {% endif %}
{% endif %}
{% if app.session.get('_application') == 2 %}
    {% set extendedTemplate = '@AdminLTE/layout/cfgodd-layout.html.twig' %}
{% endif %}

{% extends extendedTemplate %}

{% block page_title %}{% trans %}admin.user.title{% endtrans %}{% endblock %}


{% block page_content %}
{% import \"@AdminLTE/Macros/default.html.twig\" as macro %}
<div class=\"container-fluid\">
<div class=\"row\">
    <div class=\"col-md-3\">
  
        <div class=\"card card-primary card-outline\">
            <div class=\"card-body box-profile\">
                <div class=\"text-center\">
                    {{ macro.avatar(user.avatar, user.username, 'profile-user-img img-fluid img-circle') }}
                </div>

                <h3 class=\"profile-username text-center\">{{ user.familyName }} {{ user.givenName }}</h3>

                <p class=\"text-muted text-center\">{{ user.office }}</p>

                <!--ul class=\"list-group list-group-unbordered mb-3\">
                    <li class=\"list-group-item\">
                        <b>Followers</b> <a class=\"float-right\">1,322</a>
                    </li>
                    <li class=\"list-group-item\">
                        <b>Following</b> <a class=\"float-right\">543</a>
                    </li>
                    <li class=\"list-group-item\">
                        <b>Friends</b> <a class=\"float-right\">13,287</a>
                    </li>
                </ul-->

                <!--a href=\"#\" class=\"btn btn-primary btn-block\"><b>Follow</b></a-->
            </div>

        </div>
    </div>

    <div class=\"col-md-9\">
        <div class=\"card\">

            <div class=\"card-header p-2\">
                <ul class=\"nav nav-pills\">
                    <li class=\"nav-item\"><a class=\"nav-link active\" href=\"#settings\" data-toggle=\"tab\">{% trans %}navbar.myaccount{% endtrans %}</a></li>
                    <li class=\"nav-item\"><a class=\"nav-link\" href=\"#activity\" data-toggle=\"tab\">{% trans %}navbar.resetting{% endtrans %}</a></li>
                </ul>
            </div>
            
            <div class=\"card-body\">
                <div class=\"tab-content\">
                    <div class=\"tab-pane active\" id=\"settings\">
                        {{ form_start(form) }}
                            {#{ form_row(form.username) }#}
                            {{ form_row(form.email) }}
                            {{ form_row(form.familyName) }}
                            {{ form_row(form.givenName) }}
                            {{ form_row(form.telephone) }}
                            {{ form_row(form.office) }}
                            {#{ form_row(form.enabled) }#}
            
                            <div class=\"form-group row\">
                                <div class=\"col-sm-2\"></div>
                                <div class=\"col-sm-offset-2 col-sm-10\">
                                    <button type=\"submit\" class=\"btn btn-block btn-primary\">{% trans %}basics.save{% endtrans %}</button>
                                </div>
                            </div>

                        {{ form_end(form) }}
                    </div>
                    <div class=\"tab-pane\" id=\"activity\">
                        {{ form_start(form_reset) }}
                            {{ form_row(form_reset.password) }} 
                            {{ form_row(form_reset.plainPassword.first) }}
                            {{ form_row(form_reset.plainPassword.second) }}

                            <div class=\"form-group row\">
                                <div class=\"col-sm-2\"></div>
                                <div class=\"col-sm-offset-2 col-sm-10\">
                                    <button type=\"submit\" class=\"btn btn-block btn-primary\">{% trans %}basics.save{% endtrans %}</button>
                                </div>
                            </div>
            
                        {{ form_end(form_reset) }}
                    </div>

                </div>
            </div>

        </div>

    </div>
</div>
</div>
{% endblock %}
  ", "admin/user_profile.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/admin/user_profile.html.twig");
    }
}
