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

/* intervention/bloc_utilisateur_readonly.html.twig */
class __TwigTemplate_52c69c4c1bd822f264c42cce2d4470f121313f4138125698573bdf85ffd9abf8 extends Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "intervention/bloc_utilisateur_readonly.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "intervention/bloc_utilisateur_readonly.html.twig"));

        // line 2
        $context["date_intervention"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 2, $this->source); })()), "planning", [], "any", false, false, false, 2)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 2, $this->source); })()), "planning", [], "any", false, false, false, 2), "date", [], "any", false, false, false, 2)) : (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 2, $this->source); })()), "planning", [], "any", false, false, false, 2)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 2, $this->source); })()), "planning", [], "any", false, false, false, 2), "dateCreation", [], "any", false, false, false, 2)) : (null))));
        // line 3
        $context["utilisateur_intervention"] = null;
        // line 4
        if ((((isset($context["date_intervention"]) || array_key_exists("date_intervention", $context) ? $context["date_intervention"] : (function () { throw new RuntimeError('Variable "date_intervention" does not exist.', 4, $this->source); })()) && (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 4, $this->source); })())) && (1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 4, $this->source); })()), "getHistoriqueEquipementUtilisateurs", [], "any", false, false, false, 4)), 0)))) {
            // line 5
            yield "    ";
            // line 6
            yield "    ";
            // line 7
            yield "    ";
            $context["historique_utilisateurs"] = Twig\Extension\CoreExtension::sort($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 7, $this->source); })()), "getHistoriqueEquipementUtilisateurs", [], "any", false, false, false, 7), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (((1 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 7, $this->source); })()), "dateHeure", [], "any", false, false, false, 7), CoreExtension::getAttribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 7, $this->source); })()), "dateHeure", [], "any", false, false, false, 7)))) ? ( -1) : (1)); });
            // line 8
            yield "    ";
            // line 9
            yield "    ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable((isset($context["historique_utilisateurs"]) || array_key_exists("historique_utilisateurs", $context) ? $context["historique_utilisateurs"] : (function () { throw new RuntimeError('Variable "historique_utilisateurs" does not exist.', 9, $this->source); })()));
            foreach ($context['_seq'] as $context["_key"] => $context["hist"]) {
                // line 10
                yield "        ";
                if (((0 >= CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["hist"], "dateHeure", [], "any", false, false, false, 10), (isset($context["date_intervention"]) || array_key_exists("date_intervention", $context) ? $context["date_intervention"] : (function () { throw new RuntimeError('Variable "date_intervention" does not exist.', 10, $this->source); })()))) &&  !(isset($context["utilisateur_intervention"]) || array_key_exists("utilisateur_intervention", $context) ? $context["utilisateur_intervention"] : (function () { throw new RuntimeError('Variable "utilisateur_intervention" does not exist.', 10, $this->source); })()))) {
                    // line 11
                    yield "            ";
                    $context["utilisateur_intervention"] = CoreExtension::getAttribute($this->env, $this->source, $context["hist"], "utilisateur", [], "any", false, false, false, 11);
                    // line 12
                    yield "        ";
                }
                // line 13
                yield "    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hist'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
        }
        // line 16
        if (( !(isset($context["utilisateur_intervention"]) || array_key_exists("utilisateur_intervention", $context) ? $context["utilisateur_intervention"] : (function () { throw new RuntimeError('Variable "utilisateur_intervention" does not exist.', 16, $this->source); })()) && (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 16, $this->source); })()))) {
            // line 17
            yield "    ";
            $context["utilisateur_intervention"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 17, $this->source); })()), "getClientUtilisateur", [], "any", false, false, false, 17);
        }
        // line 19
        $context["utilisateur"] = (isset($context["utilisateur_intervention"]) || array_key_exists("utilisateur_intervention", $context) ? $context["utilisateur_intervention"] : (function () { throw new RuntimeError('Variable "utilisateur_intervention" does not exist.', 19, $this->source); })());
        // line 20
        yield "<div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container position-relative\" style=\"height: 227px !important\">
    ";
        // line 21
        if (((( !(isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 21, $this->source); })()) ||  !(isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 21, $this->source); })())) || (0 === CoreExtension::compare((isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 21, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 21, $this->source); })()), "clientSouscripteur", [], "any", false, false, false, 21)))) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 21, $this->source); })()), "logementVide", [], "any", false, false, false, 21))) {
            // line 22
            yield "        <div class=\"d-flex w-100 h-100 justify-content-center align-items-center\">
            <div class=\"text-center\">Aucun utilisateur sur cet équipement</div>
        </div>
    ";
        } else {
            // line 26
            yield "        <div class=\"d-flex flex-column w-100\" style=\"gap:0.5rem;\">
            ";
            // line 28
            yield "            <div class=\"d-flex w-100\">
                <div class=\"d-flex align-items-center\" style=\"margin-right: 1.2rem;\">
                    <label class=\"me-1\">N°Client: </label>
                    <span class=\"color-vert-link fw-600\" style=\"font-size:15px\">";
            // line 31
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 31, $this->source); })()), "getFormattedNumeroClient", [], "any", false, false, false, 31), "html", null, true);
            yield "</span>
                </div>
                <div class=\"d-flex align-items-center\">
                    <label style=\"width:36px;\">Type</label>
                    <input type=\"text\" style=\"width:120px;\" disabled class=\"form-control bg-grey\" value=\"";
            // line 35
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 35, $this->source); })()), "typeClient", [], "any", false, false, false, 35), "libelle", [], "any", false, false, false, 35), "html", null, true);
            yield "\">
                </div>
                <div class=\"d-flex align-items-center ms-auto\">
                    <label class=\"me-1 px-1\" style=\"width:58px;\">Civilité</label>
                    <input type=\"text\" disabled class=\"form-control bg-grey\" style=\"width:120px;\" value=\"";
            // line 39
            ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 39, $this->source); })()), "etatCivil", [], "any", false, false, false, 39)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 39, $this->source); })()), "etatCivil", [], "any", false, false, false, 39), "libelleCourt", [], "any", false, false, false, 39), "html", null, true)) : (yield ""));
            yield "\">
                </div>
            </div>
            
            ";
            // line 44
            yield "            <div class=\"d-flex w-100\">
                <div class=\"d-flex align-items-center\">
                    <label class=\"me-1\" style=\"width:51px;\">Nom</label>
                    <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"";
            // line 47
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 47, $this->source); })()), "nom", [], "any", false, false, false, 47), "html", null, true);
            yield "\" style=\"width:170px;\">
                </div>
                <div class=\"d-flex align-items-center ms-auto\">
                    <label style=\"margin-right:2.8rem\">Catégorie</label>
                    <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"";
            // line 51
            ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 51, $this->source); })()), "CategoriePro", [], "any", false, false, false, 51)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 51, $this->source); })()), "CategoriePro", [], "any", false, false, false, 51), "libelle", [], "any", false, false, false, 51), "html", null, true)) : (yield ""));
            yield "\" style=\"width:173px;\">
                </div>
            </div>
            
            ";
            // line 56
            yield "            <div class=\"d-flex w-100\">
                <div class=\"d-flex w-100\">
                    <div class=\"d-flex align-items-center\">
                        <label class=\"me-1\" style=\"width: 51px;\">Prénom</label>
                        <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"";
            // line 60
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 60, $this->source); })()), "prenom", [], "any", false, false, false, 60), "html", null, true);
            yield "\" style=\"width:170px;\">
                    </div>
                    <div class=\"d-flex align-items-center ms-auto\">
                        <label style=\"margin-right: 0.68rem; width:92px\">Nom Entreprise</label>
                        <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"";
            // line 64
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 64, $this->source); })()), "nomEntreprise", [], "any", false, false, false, 64), "html", null, true);
            yield "\" style=\"width:173px;\">
                    </div>
                </div>
            </div>
            
            ";
            // line 70
            yield "            <div class=\"d-flex w-100 align-items-center\">
                <i class=\"fa fa-lg fa-2x fa-home align-self-center\" style=\"margin-left: -0.2rem; margin-right: 1.2rem; font-size:2.6em\"></i>
                <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"";
            // line 72
            ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 72, $this->source); })()), "adresse", [], "any", false, false, false, 72)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 72, $this->source); })()), "adresse", [], "any", false, false, false, 72), "html", null, true)) : (yield ""));
            yield "\" style=\"flex:1;\">
            </div>
            
            ";
            // line 76
            yield "            <div class=\"d-flex w-100 align-items-center\" style=\"position:relative\">
                <span class=\"icon-phone-rotary\" style=\"position: absolute;\">";
            // line 77
            yield Twig\Extension\CoreExtension::source($this->env, ("@public_path" . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/phone-rotary.svg")));
            yield "</span>
                <ul class=\"collection d-flex w-100 flex-wrap justify-content-between\" style=\"margin-bottom: 0rem;margin-left:22px;gap:0.6rem;\">
                    ";
            // line 79
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(range(1, 3));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 80
                yield "                        <li style=\"position:relative;\">
                            ";
                // line 81
                $context["clientTel"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 81, $this->source); })()), "clientTels", [], "any", false, false, false, 81), "get", [($context["i"] - 1)], "method", false, false, false, 81);
                // line 82
                yield "                            ";
                if ((isset($context["clientTel"]) || array_key_exists("clientTel", $context) ? $context["clientTel"] : (function () { throw new RuntimeError('Variable "clientTel" does not exist.', 82, $this->source); })())) {
                    // line 83
                    yield "                                ";
                    $context["fr"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["clientTel"] ?? null), "fr", [], "any", true, true, false, 83)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["clientTel"]) || array_key_exists("clientTel", $context) ? $context["clientTel"] : (function () { throw new RuntimeError('Variable "clientTel" does not exist.', 83, $this->source); })()), "fr", [], "any", false, false, false, 83)) : (1));
                    // line 84
                    yield "                                ";
                    $context["popup_id"] = ((("popup-client-commentaireTel-" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 84, $this->source); })()), "id", [], "any", false, false, false, 84)) . "-") . $context["i"]);
                    // line 85
                    yield "                                <input type=\"text\" disabled class=\"form-control bg-grey input_tel\" value=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["clientTel"]) || array_key_exists("clientTel", $context) ? $context["clientTel"] : (function () { throw new RuntimeError('Variable "clientTel" does not exist.', 85, $this->source); })()), "numTel", [], "any", false, false, false, 85), "html", null, true);
                    yield "\" style=\"width:150px\">
                                <div class=\"me-2 telephone-fr ";
                    // line 86
                    yield (((isset($context["fr"]) || array_key_exists("fr", $context) ? $context["fr"] : (function () { throw new RuntimeError('Variable "fr" does not exist.', 86, $this->source); })())) ? ("") : ("opacity-25"));
                    yield "\" style=\"width:16px;position: absolute;right: 18px;bottom: 5px;\">
                                    ";
                    // line 87
                    yield Twig\Extension\CoreExtension::source($this->env, ("@public_path" . $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/fr.svg")));
                    yield "
                                </div>
                                ";
                    // line 89
                    if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["clientTel"]) || array_key_exists("clientTel", $context) ? $context["clientTel"] : (function () { throw new RuntimeError('Variable "clientTel" does not exist.', 89, $this->source); })()), "commentaireTel", [], "any", false, false, false, 89)) {
                        // line 90
                        yield "                                    <a>
                                        <i class=\"fa collection-info has-info fa-info-circle\"></i>
                                    </a>
                                    <div class=\"info-tooltip\">";
                        // line 93
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["clientTel"]) || array_key_exists("clientTel", $context) ? $context["clientTel"] : (function () { throw new RuntimeError('Variable "clientTel" does not exist.', 93, $this->source); })()), "commentaireTel", [], "any", false, false, false, 93), "html", null, true);
                        yield "</div>
                                ";
                    }
                    // line 95
                    yield "                            ";
                } else {
                    // line 96
                    yield "                                <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"\" style=\"width:150px\">
                            ";
                }
                // line 98
                yield "                        </li>
                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 100
            yield "                </ul>
            </div>
            
            ";
            // line 104
            yield "            <div class=\"d-flex w-100\">
                <div class=\"d-flex w-100\" style=\"position:relative;\">
                    <div><i class=\"fa fa-envelope align-self-center\" style=\"font-size: 2.4em; width: 28px; margin-left: 1px;\"></i></div>
                    <ul class=\"collection w-100\" style=\"margin-bottom: 0rem;width:304px;margin-left:0;padding-left:1rem\">
                        <li class=\"mb-0 position-relative\" style=\"width:311px\">
                            ";
            // line 109
            $context["clientEmail"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 109, $this->source); })()), "ClientEmails", [], "any", false, false, false, 109), "get", [0], "method", false, false, false, 109);
            // line 110
            yield "                            ";
            if ((isset($context["clientEmail"]) || array_key_exists("clientEmail", $context) ? $context["clientEmail"] : (function () { throw new RuntimeError('Variable "clientEmail" does not exist.', 110, $this->source); })())) {
                // line 111
                yield "                                ";
                $context["popup_id"] = ("popup-client-commentaireEmail-" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 111, $this->source); })()), "id", [], "any", false, false, false, 111));
                // line 112
                yield "                                <input type=\"email\" disabled class=\"form-control bg-grey\" value=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["clientEmail"]) || array_key_exists("clientEmail", $context) ? $context["clientEmail"] : (function () { throw new RuntimeError('Variable "clientEmail" does not exist.', 112, $this->source); })()), "email", [], "any", false, false, false, 112), "html", null, true);
                yield "\" style=\"width:311px\">
                                ";
                // line 113
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["clientEmail"]) || array_key_exists("clientEmail", $context) ? $context["clientEmail"] : (function () { throw new RuntimeError('Variable "clientEmail" does not exist.', 113, $this->source); })()), "commentaireEmail", [], "any", false, false, false, 113)) {
                    // line 114
                    yield "                                    <a>
                                        <i class=\"fa collection-info has-info fa-info-circle\"></i>
                                    </a>
                                    <div class=\"info-tooltip\">";
                    // line 117
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["clientEmail"]) || array_key_exists("clientEmail", $context) ? $context["clientEmail"] : (function () { throw new RuntimeError('Variable "clientEmail" does not exist.', 117, $this->source); })()), "commentaireEmail", [], "any", false, false, false, 117), "html", null, true);
                    yield "</div>
                                ";
                }
                // line 119
                yield "                            ";
            } else {
                // line 120
                yield "                                <input type=\"email\" disabled class=\"form-control bg-grey\" value=\"\" style=\"width:311px\">
                            ";
            }
            // line 122
            yield "                        </li>
                    </ul>
                </div>
            </div>
        </div>
        ";
            // line 128
            yield "        <div class=\"position-absolute\" style=\"bottom: 8px; right: 8px; display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-end;\">
            ";
            // line 129
            if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 129, $this->source); })()), "typeClient", [], "any", false, false, false, 129) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 129, $this->source); })()), "typeClient", [], "any", false, false, false, 129), "id", [], "any", false, false, false, 129), 2)))) {
                // line 130
                yield "                <a data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-poppup-container=\"body\" data-popup-id=\"popup-impot-";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 130, $this->source); })()), "id", [], "any", false, false, false, 130), "html", null, true);
                yield "\" data-dxpopup=\"\" data-popup-offset=\"0 275\" data-popup-title=\"Identification fiscale\" data-popup-width=\"auto\">
                    <div class=\"d-flex align align-self-end bg-white justify-content-center align-items-center border-grey-field\" style=\"width: 28px;height: 28px;border-radius:4px\">
                        <img class=\"bg-white\" src=\"";
                // line 132
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-impot.png"), "html", null, true);
                yield "\" style=\"vertical-align: baseline;border-radius: 4px; margin-top: 0.18rem;width:22px;height:19px;\">
                    </div>
                </a>
            ";
            }
            // line 136
            yield "            ";
            if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 136, $this->source); })()), "getClientTutelle", [], "any", false, false, false, 136)) {
                // line 137
                yield "                <a data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-poppup-container=\"body\" data-popup-id=\"popup-tuteur-";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 137, $this->source); })()), "getClientTutelle", [], "any", false, false, false, 137), "id", [], "any", false, false, false, 137), "html", null, true);
                yield "\" data-dxpopup=\"\" data-popup-offset=\"0 275\" data-popup-title=\"Tuteur\" data-popup-width=\"auto\" style=\"width:28px;height:28px;\">
                    <div class=\"d-flex align align-self-end bg-white justify-content-center align-items-center\" style=\"border-radius:4px\">
                        <img class=\"bg-white\" src=\"";
                // line 139
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-tutelle.png"), "html", null, true);
                yield "\" width=\"28\" height=\"28\" style=\"vertical-align: baseline;border-radius: 4px;\">
                    </div>
                </a>
            ";
            }
            // line 143
            yield "        </div>
    ";
        }
        // line 145
        yield "</div>

";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "intervention/bloc_utilisateur_readonly.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  333 => 145,  329 => 143,  322 => 139,  316 => 137,  313 => 136,  306 => 132,  300 => 130,  298 => 129,  295 => 128,  288 => 122,  284 => 120,  281 => 119,  276 => 117,  271 => 114,  269 => 113,  264 => 112,  261 => 111,  258 => 110,  256 => 109,  249 => 104,  244 => 100,  237 => 98,  233 => 96,  230 => 95,  225 => 93,  220 => 90,  218 => 89,  213 => 87,  209 => 86,  204 => 85,  201 => 84,  198 => 83,  195 => 82,  193 => 81,  190 => 80,  186 => 79,  181 => 77,  178 => 76,  172 => 72,  168 => 70,  160 => 64,  153 => 60,  147 => 56,  140 => 51,  133 => 47,  128 => 44,  121 => 39,  114 => 35,  107 => 31,  102 => 28,  99 => 26,  93 => 22,  91 => 21,  88 => 20,  86 => 19,  82 => 17,  80 => 16,  73 => 13,  70 => 12,  67 => 11,  64 => 10,  59 => 9,  57 => 8,  54 => 7,  52 => 6,  50 => 5,  48 => 4,  46 => 3,  44 => 2,);
    }

    public function getSourceContext()
    {
        return new Source("{# Récupération de l'utilisateur au moment de l'intervention #}
{% set date_intervention = intervention.planning ? intervention.planning.date : (intervention.planning ? intervention.planning.dateCreation : null) %}
{% set utilisateur_intervention = null %}
{% if date_intervention and equipement and equipement.getHistoriqueEquipementUtilisateurs|length > 0 %}
    {# On cherche dans l'historique l'utilisateur qui était actif au moment de l'intervention #}
    {# On trie par date décroissante pour trouver le dernier changement avant ou à la date de l'intervention #}
    {% set historique_utilisateurs = equipement.getHistoriqueEquipementUtilisateurs|sort((a, b) => a.dateHeure > b.dateHeure ? -1 : 1) %}
    {# On prend le dernier changement avant ou à la date de l'intervention #}
    {% for hist in historique_utilisateurs %}
        {% if hist.dateHeure <= date_intervention and not utilisateur_intervention %}
            {% set utilisateur_intervention = hist.utilisateur %}
        {% endif %}
    {% endfor %}
{% endif %}
{# Si aucun historique trouvé ou si l'intervention est antérieure à tous les historiques, on prend l'utilisateur actuel #}
{% if not utilisateur_intervention and equipement %}
    {% set utilisateur_intervention = equipement.getClientUtilisateur %}
{% endif %}
{% set utilisateur = utilisateur_intervention %}
<div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container position-relative\" style=\"height: 227px !important\">
    {% if not utilisateur or not equipement or utilisateur == equipement.clientSouscripteur or equipement.logementVide %}
        <div class=\"d-flex w-100 h-100 justify-content-center align-items-center\">
            <div class=\"text-center\">Aucun utilisateur sur cet équipement</div>
        </div>
    {% else %}
        <div class=\"d-flex flex-column w-100\" style=\"gap:0.5rem;\">
            {# Ligne 1 : N°Client, Type, Civilité #}
            <div class=\"d-flex w-100\">
                <div class=\"d-flex align-items-center\" style=\"margin-right: 1.2rem;\">
                    <label class=\"me-1\">N°Client: </label>
                    <span class=\"color-vert-link fw-600\" style=\"font-size:15px\">{{ utilisateur.getFormattedNumeroClient }}</span>
                </div>
                <div class=\"d-flex align-items-center\">
                    <label style=\"width:36px;\">Type</label>
                    <input type=\"text\" style=\"width:120px;\" disabled class=\"form-control bg-grey\" value=\"{{ utilisateur.typeClient.libelle }}\">
                </div>
                <div class=\"d-flex align-items-center ms-auto\">
                    <label class=\"me-1 px-1\" style=\"width:58px;\">Civilité</label>
                    <input type=\"text\" disabled class=\"form-control bg-grey\" style=\"width:120px;\" value=\"{{ utilisateur.etatCivil ? utilisateur.etatCivil.libelleCourt : '' }}\">
                </div>
            </div>
            
            {# Ligne 2 : Nom, Catégorie #}
            <div class=\"d-flex w-100\">
                <div class=\"d-flex align-items-center\">
                    <label class=\"me-1\" style=\"width:51px;\">Nom</label>
                    <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"{{ utilisateur.nom }}\" style=\"width:170px;\">
                </div>
                <div class=\"d-flex align-items-center ms-auto\">
                    <label style=\"margin-right:2.8rem\">Catégorie</label>
                    <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"{{ utilisateur.CategoriePro ? utilisateur.CategoriePro.libelle : '' }}\" style=\"width:173px;\">
                </div>
            </div>
            
            {# Ligne 3 : Prénom, Nom Entreprise #}
            <div class=\"d-flex w-100\">
                <div class=\"d-flex w-100\">
                    <div class=\"d-flex align-items-center\">
                        <label class=\"me-1\" style=\"width: 51px;\">Prénom</label>
                        <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"{{ utilisateur.prenom }}\" style=\"width:170px;\">
                    </div>
                    <div class=\"d-flex align-items-center ms-auto\">
                        <label style=\"margin-right: 0.68rem; width:92px\">Nom Entreprise</label>
                        <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"{{ utilisateur.nomEntreprise }}\" style=\"width:173px;\">
                    </div>
                </div>
            </div>
            
            {# Ligne 4 : Adresse #}
            <div class=\"d-flex w-100 align-items-center\">
                <i class=\"fa fa-lg fa-2x fa-home align-self-center\" style=\"margin-left: -0.2rem; margin-right: 1.2rem; font-size:2.6em\"></i>
                <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"{{ utilisateur.adresse ? utilisateur.adresse : '' }}\" style=\"flex:1;\">
            </div>
            
            {# Ligne 5 : Téléphones #}
            <div class=\"d-flex w-100 align-items-center\" style=\"position:relative\">
                <span class=\"icon-phone-rotary\" style=\"position: absolute;\">{{ source('@public_path'~asset('build/images/phone-rotary.svg')) }}</span>
                <ul class=\"collection d-flex w-100 flex-wrap justify-content-between\" style=\"margin-bottom: 0rem;margin-left:22px;gap:0.6rem;\">
                    {% for i in 1..3 %}
                        <li style=\"position:relative;\">
                            {% set clientTel = utilisateur.clientTels.get(i-1) %}
                            {% if clientTel %}
                                {% set fr = clientTel.fr is defined ? clientTel.fr : 1 %}
                                {% set popup_id = 'popup-client-commentaireTel-' ~ utilisateur.id ~ '-' ~ i %}
                                <input type=\"text\" disabled class=\"form-control bg-grey input_tel\" value=\"{{ clientTel.numTel }}\" style=\"width:150px\">
                                <div class=\"me-2 telephone-fr {{ fr ? '' : 'opacity-25' }}\" style=\"width:16px;position: absolute;right: 18px;bottom: 5px;\">
                                    {{ source('@public_path'~asset('build/images/fr.svg')) }}
                                </div>
                                {% if clientTel.commentaireTel %}
                                    <a>
                                        <i class=\"fa collection-info has-info fa-info-circle\"></i>
                                    </a>
                                    <div class=\"info-tooltip\">{{ clientTel.commentaireTel }}</div>
                                {% endif %}
                            {% else %}
                                <input type=\"text\" disabled class=\"form-control bg-grey\" value=\"\" style=\"width:150px\">
                            {% endif %}
                        </li>
                    {% endfor %}
                </ul>
            </div>
            
            {# Ligne 6 : Emails #}
            <div class=\"d-flex w-100\">
                <div class=\"d-flex w-100\" style=\"position:relative;\">
                    <div><i class=\"fa fa-envelope align-self-center\" style=\"font-size: 2.4em; width: 28px; margin-left: 1px;\"></i></div>
                    <ul class=\"collection w-100\" style=\"margin-bottom: 0rem;width:304px;margin-left:0;padding-left:1rem\">
                        <li class=\"mb-0 position-relative\" style=\"width:311px\">
                            {% set clientEmail = utilisateur.ClientEmails.get(0) %}
                            {% if clientEmail %}
                                {% set popup_id = 'popup-client-commentaireEmail-' ~ utilisateur.id %}
                                <input type=\"email\" disabled class=\"form-control bg-grey\" value=\"{{ clientEmail.email }}\" style=\"width:311px\">
                                {% if clientEmail.commentaireEmail %}
                                    <a>
                                        <i class=\"fa collection-info has-info fa-info-circle\"></i>
                                    </a>
                                    <div class=\"info-tooltip\">{{ clientEmail.commentaireEmail }}</div>
                                {% endif %}
                            {% else %}
                                <input type=\"email\" disabled class=\"form-control bg-grey\" value=\"\" style=\"width:311px\">
                            {% endif %}
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        {# Pictos en bas à droite #}
        <div class=\"position-absolute\" style=\"bottom: 8px; right: 8px; display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-end;\">
            {% if utilisateur.typeClient and utilisateur.typeClient.id == 2 %}
                <a data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-poppup-container=\"body\" data-popup-id=\"popup-impot-{{ utilisateur.id }}\" data-dxpopup=\"\" data-popup-offset=\"0 275\" data-popup-title=\"Identification fiscale\" data-popup-width=\"auto\">
                    <div class=\"d-flex align align-self-end bg-white justify-content-center align-items-center border-grey-field\" style=\"width: 28px;height: 28px;border-radius:4px\">
                        <img class=\"bg-white\" src=\"{{ asset('build/images/picto-impot.png') }}\" style=\"vertical-align: baseline;border-radius: 4px; margin-top: 0.18rem;width:22px;height:19px;\">
                    </div>
                </a>
            {% endif %}
            {% if utilisateur.getClientTutelle %}
                <a data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-poppup-container=\"body\" data-popup-id=\"popup-tuteur-{{ utilisateur.getClientTutelle.id }}\" data-dxpopup=\"\" data-popup-offset=\"0 275\" data-popup-title=\"Tuteur\" data-popup-width=\"auto\" style=\"width:28px;height:28px;\">
                    <div class=\"d-flex align align-self-end bg-white justify-content-center align-items-center\" style=\"border-radius:4px\">
                        <img class=\"bg-white\" src=\"{{ asset('build/images/picto-tutelle.png') }}\" width=\"28\" height=\"28\" style=\"vertical-align: baseline;border-radius: 4px;\">
                    </div>
                </a>
            {% endif %}
        </div>
    {% endif %}
</div>

", "intervention/bloc_utilisateur_readonly.html.twig", "/builds/dev/refonte_sav/templates/intervention/bloc_utilisateur_readonly.html.twig");
    }
}
