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

/* clients/client_show.html.twig */
class __TwigTemplate_82235f47c1cab3a39751c1051e233a58718e5fdb148e57bdd8db299a458f258b extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'body_id' => [$this, 'block_body_id'],
            'style_container' => [$this, 'block_style_container'],
            'body_class' => [$this, 'block_body_class'],
            'header_style' => [$this, 'block_header_style'],
            'title' => [$this, 'block_title'],
            'main' => [$this, 'block_main'],
            'popup' => [$this, 'block_popup'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "admin/layout.html.twig";
    }

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

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

        // line 9
        $context["id_equipement"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 9), "query", [], "any", false, true, false, 9), "get", ["id_equipement"], "method", true, true, false, 9)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 9), "query", [], "any", false, true, false, 9), "get", ["id_equipement"], "method", false, false, false, 9), "null")) : ("null"));
        // line 10
        $context["equipement"] = null;
        // line 11
        if (((null === (isset($context["id_equipement"]) || array_key_exists("id_equipement", $context) ? $context["id_equipement"] : (function () { throw new RuntimeError('Variable "id_equipement" does not exist.', 11, $this->source); })())) || (0 === CoreExtension::compare((isset($context["id_equipement"]) || array_key_exists("id_equipement", $context) ? $context["id_equipement"] : (function () { throw new RuntimeError('Variable "id_equipement" does not exist.', 11, $this->source); })()), "null")))) {
            // line 12
            $context["equipement"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["client"] ?? null), "getEquipementsActif", [], "any", false, true, false, 12), 0, [], "array", true, true, false, 12)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 12, $this->source); })()), "getEquipementsActif", [], "any", false, false, false, 12), 0, [], "array", false, false, false, 12)) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 12, $this->source); })()), "getEquipementsInactif", [], "any", false, false, false, 12), 0, [], "array", false, false, false, 12)));
            // line 13
            $context["id_equipement"] = ((((null === (isset($context["id_equipement"]) || array_key_exists("id_equipement", $context) ? $context["id_equipement"] : (function () { throw new RuntimeError('Variable "id_equipement" does not exist.', 13, $this->source); })())) || (0 === CoreExtension::compare((isset($context["id_equipement"]) || array_key_exists("id_equipement", $context) ? $context["id_equipement"] : (function () { throw new RuntimeError('Variable "id_equipement" does not exist.', 13, $this->source); })()), "null")))) ? (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.', 13, $this->source); })()), "id", [], "any", false, false, false, 13)) : ((isset($context["id_equipement"]) || array_key_exists("id_equipement", $context) ? $context["id_equipement"] : (function () { throw new RuntimeError('Variable "id_equipement" does not exist.', 13, $this->source); })())));
        } else {
            // line 15
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 15, $this->source); })()), "getEquipements", [], "any", false, false, false, 15));
            foreach ($context['_seq'] as $context["_key"] => $context["equipementc"]) {
                // line 16
                if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["equipementc"], "id", [], "any", false, false, false, 16), (isset($context["id_equipement"]) || array_key_exists("id_equipement", $context) ? $context["id_equipement"] : (function () { throw new RuntimeError('Variable "id_equipement" does not exist.', 16, $this->source); })())))) {
                    // line 17
                    $context["equipement"] = $context["equipementc"];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['equipementc'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
        }
        // line 21
        if ((null === (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 21, $this->source); })()))) {
            // line 22
            $context["equipement"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["client"] ?? null), "getEquipementsActif", [], "any", false, true, false, 22), 0, [], "array", true, true, false, 22)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 22, $this->source); })()), "getEquipementsActif", [], "any", false, false, false, 22), 0, [], "array", false, false, false, 22)) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 22, $this->source); })()), "getEquipementsInactif", [], "any", false, false, false, 22), 0, [], "array", false, false, false, 22)));
            // line 23
            $context["id_equipement"] = 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.', 23, $this->source); })()), "id", [], "any", false, false, false, 23);
        }
        // line 25
        $context["is_pac"] = (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.', 25, $this->source); })()), "equipementFamille", [], "any", false, false, false, 25) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $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.', 25, $this->source); })()), "equipementFamille", [], "any", false, false, false, 25), "id", [], "any", false, false, false, 25), 10)));
        // line 26
        $context["contrat"] = ((((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 26, $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.', 26, $this->source); })()), "getLastContrat", [], "any", false, false, false, 26))) ? (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.', 26, $this->source); })()), "getLastContrat", [], "any", false, false, false, 26)) : (null));
        // line 27
        $context["disabled"] = (((0 === CoreExtension::compare(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.', 27, $this->source); })()), "getActif", [], "any", false, false, false, 27), false))) ? ("disabled") : (""));
        // line 28
        $context["affichage"] = "client";
        // line 1
        $this->parent = $this->loadTemplate("admin/layout.html.twig", "clients/client_show.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 3
    public function block_body_id($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(), "block", "body_id"));

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

        // line 0
        yield "admin_post_index";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 4
    public function block_style_container($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(), "block", "style_container"));

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

        yield "padding:0;";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 5
    public function block_body_class($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(), "block", "body_class"));

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

        // line 0
        yield " bg-white";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 6
    public function block_header_style($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(), "block", "header_style"));

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

        // line 0
        yield " margin-bottom:0 !important;";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 8
    public function block_title($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(), "block", "title"));

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

        yield " Client :  ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 8, $this->source); })()), "nom", [], "any", false, false, false, 8), "html", null, true);
        yield "  - N°";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 8, $this->source); })()), "getFormattedNumeroClient", [], "any", false, false, false, 8), "html", null, true);
        yield " ";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 29
    public function block_main($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(), "block", "main"));

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

        // line 30
        yield "    ";
        $context["my_lock"] = ((((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lock"]) || array_key_exists("lock", $context) ? $context["lock"] : (function () { throw new RuntimeError('Variable "lock" does not exist.', 30, $this->source); })()), "utilisateur", [], "any", false, false, false, 30), 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.', 30, $this->source); })()), "user", [], "any", false, false, false, 30))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lock"]) || array_key_exists("lock", $context) ? $context["lock"] : (function () { throw new RuntimeError('Variable "lock" does not exist.', 30, $this->source); })()), "getIdEntite", [], "any", false, false, false, 30), 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.', 30, $this->source); })()), "id", [], "any", false, false, false, 30))))) ? (true) : (false));
        // line 31
        yield "    ";
        $context["type_affichage"] = (((isset($context["my_lock"]) || array_key_exists("my_lock", $context) ? $context["my_lock"] : (function () { throw new RuntimeError('Variable "my_lock" does not exist.', 31, $this->source); })())) ? ("edit") : ("view"));
        // line 32
        yield "    ";
        $context["defaultEditorGridOption"] = "{\"mode\":\"row\",\"allowUpdating\":false,\"allowDeleting\":false,\"allowAdding\":false}";
        // line 33
        yield "    <form id=\"form_client_update\" method=\"post\" data-affichage=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["type_affichage"]) || array_key_exists("type_affichage", $context) ? $context["type_affichage"] : (function () { throw new RuntimeError('Variable "type_affichage" does not exist.', 33, $this->source); })()), "html", null, true);
        yield "\" action=\"";
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("equipement_maj");
        yield "\" data-turbo=\"true\" data-changed=\"false\"  style=\"height: ";
        yield (((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.', 33, $this->source); })()), "adresse", [], "any", false, false, false, 33) && CoreExtension::getAttribute($this->env, $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.', 33, $this->source); })()), "adresse", [], "any", false, false, false, 33), "getEtagePorteComplement", [], "any", false, false, false, 33))) ? ("131.9px") : ("113.5px"));
        yield "\">
        <input type=\"hidden\" name=\"id_equipement_update\" id=\"id_equipement_update\" value=\"";
        // line 34
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 34, $this->source); })()), "id", [], "any", false, false, false, 34), "html", null, true);
        yield "\" form=\"form_client_update\">
        <input type=\"hidden\" name=\"id_client\" value=\"";
        // line 35
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 35, $this->source); })()), "id", [], "any", false, false, false, 35), "html", null, true);
        yield "\" form=\"form_client_update\">
        <input type=\"hidden\" name=\"process\" id=\"process_update\" value=\"\" form=\"form_client_update\">
        <input type=\"hidden\" id=\"lock-id\" value=\"";
        // line 37
        (((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lock"]) || array_key_exists("lock", $context) ? $context["lock"] : (function () { throw new RuntimeError('Variable "lock" does not exist.', 37, $this->source); })()), "utilisateur", [], "any", false, false, false, 37), 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.', 37, $this->source); })()), "user", [], "any", false, false, false, 37)))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lock"]) || array_key_exists("lock", $context) ? $context["lock"] : (function () { throw new RuntimeError('Variable "lock" does not exist.', 37, $this->source); })()), "id", [], "any", false, false, false, 37), "html", null, true)) : (yield ""));
        yield "\">
        <div class=\"d-flex position-fixed bg-white\" style=\"z-index: 1000; border-top:5px solid white;\">
            <div class=\"d-flex bg-primary position-relative  pt-2 ps-2 ms-1 pe-2  \" style=\"flex-grow:1;margin-right: 7px\">
                <div style=\"margin-right:2.3rem;  width:156px\">
                    ";
        // line 42
        yield "                    <div  class=\"mb-2 title-700\">Souscripteur</div>
                    <div class=\"d-flex align-items-center\">
                        <label class=\" white me-2 col-form-label control-label\" for=\"agent_site\">N°client</label>
                        <span class=\"color-vert-link fw-600\" style=\"font-size:14px;margin-left: auto\">
                            ";
        // line 46
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 46, $this->source); })()), "getFormattedNumeroClient", [], "any", false, false, false, 46), "html", null, true);
        yield "
                        </span>
                    </div>
                </div>
                <div style=\"margin-right:2.3rem;width: 232px;\">
                        <div class=\"d-flex flex-column justify-content-end pb-2\">
                            <div class=\"input-group form-group\">
                                <label class=\"white me-2 col-form-label control-label\" style=\"width: 55px;\">Type</label>
                                <select name=\"type_client\" style=\"width: 118px !important;flex: 0 1 auto;\" class=\"form-control\" id=\"type_client\" ";
        // line 54
        yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 54, $this->source); })()), "typeClient", [], "any", false, false, false, 54)) ? ("disabled") : (""));
        yield ">
                                    ";
        // line 55
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["typesClient"]) || array_key_exists("typesClient", $context) ? $context["typesClient"] : (function () { throw new RuntimeError('Variable "typesClient" does not exist.', 55, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["type"]) {
            // line 56
            yield "                                        ";
            $context["selected"] = (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 56, $this->source); })()), "typeClient", [], "any", false, false, false, 56) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 56, $this->source); })()), "typeClient", [], "any", false, false, false, 56), "id", [], "any", false, false, false, 56), CoreExtension::getAttribute($this->env, $this->source, $context["type"], "id", [], "any", false, false, false, 56))))) ? ("selected") : (""));
            // line 57
            yield "                                        <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["type"], "id", [], "any", false, false, false, 57), "html", null, true);
            yield "\" ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 57, $this->source); })()), "html", null, true);
            yield ">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["type"], "libelle", [], "any", false, false, false, 57), "html", null, true);
            yield "</option>
                                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['type'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 59
        yield "                                </select>
                            </div>
                            <div class=\"input-group form-group  pb-2 d-flex\">
                                <label class=\"white me-2 control-label align-self-center\" style=\"width:55px\">Catégorie</label>
                                <select name=\"categorie_pro\" class=\"form-control\"  ";
        // line 63
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 63, $this->source); })()), "html", null, true);
        yield " id=\"categorie_pro\" style=\"width: 167px !important;flex:inherit\" ";
        yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 63, $this->source); })()), "categoriePro", [], "any", false, false, false, 63)) ? ("disabled") : (""));
        yield ">
                                    <option value=\"\"></option>
                                    ";
        // line 65
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categoriesPro"]) || array_key_exists("categoriesPro", $context) ? $context["categoriesPro"] : (function () { throw new RuntimeError('Variable "categoriesPro" does not exist.', 65, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["categorie_p"]) {
            // line 66
            yield "                                        ";
            $context["selected"] = (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 66, $this->source); })()), "categoriePro", [], "any", false, false, false, 66) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 66, $this->source); })()), "categoriePro", [], "any", false, false, false, 66), "id", [], "any", false, false, false, 66), CoreExtension::getAttribute($this->env, $this->source, $context["categorie_p"], "id", [], "any", false, false, false, 66))))) ? ("selected") : (""));
            // line 67
            yield "                                        <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["categorie_p"], "id", [], "any", false, false, false, 67), "html", null, true);
            yield "\" ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 67, $this->source); })()), "html", null, true);
            yield ">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["categorie_p"], "libelle", [], "any", false, false, false, 67), "html", null, true);
            yield "</option>
                                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categorie_p'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 69
        yield "                                </select>
                            </div>
                            <div class=\"input-group form-group d-flex\" style=\"line-height: 14px;\">
                                <label class=\"white control-label\" for=\"client_entreprise\" style=\"width:64px\">Nom<br>entreprise</label>
                                <input type=\"text\" id=\"client_entreprise\"  ";
        // line 73
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 73, $this->source); })()), "html", null, true);
        yield " name=\"client_entreprise\" class=\"form-control bg-white\"  value=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 73, $this->source); })()), "nomEntreprise", [], "any", false, false, false, 73), "html", null, true);
        yield "\" ";
        yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 73, $this->source); })()), "nomEntreprise", [], "any", false, false, false, 73)) ? ("disabled") : (""));
        yield ">
                            </div>
                        </div>
                </div>
                <div class=\"d-flex flex-column\" style=\"width: 223px;margin-right: 2.3rem;\">
                    <div class=\"input-group form-group pb-2 d-flex\" >
                        <label class=\"white me-3 control-label align-self-center\">Civilité</label>
                        <select name=\"etat_civil\" class=\"form-control\" id=\"etat_civil\" style=\"width: 90px !important;flex: 0 1 auto;\" ";
        // line 80
        yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 80, $this->source); })()), "etatCivil", [], "any", false, false, false, 80)) ? ("disabled") : (""));
        yield ">
                            ";
        // line 81
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["civilites"]) || array_key_exists("civilites", $context) ? $context["civilites"] : (function () { throw new RuntimeError('Variable "civilites" does not exist.', 81, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["civilite"]) {
            // line 82
            yield "                                ";
            $context["selected"] = (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 82, $this->source); })()), "etatCivil", [], "any", false, false, false, 82) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 82, $this->source); })()), "etatCivil", [], "any", false, false, false, 82), "id", [], "any", false, false, false, 82), CoreExtension::getAttribute($this->env, $this->source, $context["civilite"], "id", [], "any", false, false, false, 82))))) ? ("selected") : (""));
            // line 83
            yield "                                <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["civilite"], "id", [], "any", false, false, false, 83), "html", null, true);
            yield "\" ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 83, $this->source); })()), "html", null, true);
            yield ">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["civilite"], "libelleCourt", [], "any", false, false, false, 83), "html", null, true);
            yield "</option>
                            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['civilite'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 85
        yield "                        </select>
                    </div>
                    <div class=\"input-group form-group pb-2 d-flex\">
                        <label class=\"white me-2  control-label align-self-center\" for=\"agent_nom\" style=\"width:48px;\">Nom</label>
                        <input type=\"text\" id=\"agent_nom\" name=\"souscripteur_nom\" style=\"max-width:166px;\" class=\"form-control bg-white\" value=\"";
        // line 89
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 89, $this->source); })()), "nom", [], "any", false, false, false, 89), "html", null, true);
        yield "\" ";
        yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 89, $this->source); })()), "nom", [], "any", false, false, false, 89)) ? ("disabled") : (""));
        yield ">
                    </div>
                    <div class=\"input-group form-group d-flex\">
                        <label class=\"white me-2  control-label align-self-center\" for=\"agent_prenom\"  style=\"width:48px;\">Prénom</label>
                        <input type=\"text\" id=\"agent_prenom\"  ";
        // line 93
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 93, $this->source); })()), "html", null, true);
        yield " name=\"souscripteur_prenom\" style=\"max-width:166px;\" class=\"form-control bg-white\" value=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 93, $this->source); })()), "prenom", [], "any", false, false, false, 93), "html", null, true);
        yield "\" ";
        yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 93, $this->source); })()), "prenom", [], "any", false, false, false, 93)) ? ("disabled") : (""));
        yield ">
                    </div>
                </div>
                <div style=\"width: 510px;margin-right: 2.3rem;\">
                    <div  class=\"input-group form-group pb-2\">
                        <form id=\"form_agent_adresse\" action=\"";
        // line 98
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("patch_agent_adresse", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 98, $this->source); })()), "id", [], "any", false, false, false, 98)]), "html", null, true);
        yield "\" method=\"post\" class=\"form-ajax\">
                            <div class=\"d-flex\">
                                <i class=\"fa fa-lg fa-2x fa-home align-self-center\" style=\"margin-left: -0.2rem;  margin-right: 0.8rem;\"></i>
                                <div class=\"input-icons me-3\" style=\"width:466px\">
                                    <button type=\"submit\" form=\"form_agent_adresse\" style=\"background: transparent;border: 0;right:0\">
                                        <i class=\"fa fa-lg icon color-primary\"></i>
                                    </button>
                                    <input type=\"text\" id=\"client_adresse_auto\"  ";
        // line 105
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 105, $this->source); })()), "html", null, true);
        yield " name=\"client_adresse_auto\" data-prefix=\"equipement\" data-disable-on-view=\"\" class=\"form-control bg-white input-field\" value=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 105, $this->source); })()), "adresse", [], "any", false, false, false, 105), "html", null, true);
        yield "\" data-idsite=\"";
        (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 105, $this->source); })()), "getEquipementPrincipal", [], "any", false, false, false, 105) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 105, $this->source); })()), "getEquipementPrincipal", [], "any", false, false, false, 105), "getSecteur", [], "method", false, false, false, 105))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 105, $this->source); })()), "getEquipementPrincipal", [], "any", false, false, false, 105), "getSecteur", [], "any", false, false, false, 105), "getSectorisationVersion", [], "method", false, false, false, 105), "getSite", [], "method", false, false, false, 105), "id", [], "any", false, false, false, 105), "html", null, true)) : (yield ""));
        yield "\">
                                    <div class=\"adresse_auto_error\" style=\"display: none;height:30px;margin-bottom:0\"></div>
                                    <input type=\"hidden\" name=\"souscripteur_code_postal\" form=\"form_client_update\">
                                    <input type=\"hidden\" name=\"souscripteur_ville\" form=\"form_client_update\">
                                    <input type=\"hidden\" name=\"souscripteur_adresse\" form=\"form_client_update\">
                                    <input type=\"hidden\" name=\"souscripteur_coordinates\" form=\"form_client_update\">
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class=\"\" style=\"position:relative\">
                        <span class=\"icon-phone-rotary white\" style=\"position: absolute;\">";
        // line 116
        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 \" id=\"collection-tel\" style=\"margin-bottom: 0rem;margin-left:7px;gap: 0.6rem;\" data-index=\"";
        // line 117
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 117, $this->source); })()), "clientTels", [], "any", false, false, false, 117)) + 1), "html", null, true);
        yield "\" data-prototype=\"#prototype-client-tel\">
                            ";
        // line 118
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(range(1, 3));
        $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["i"]) {
            // line 119
            yield "                                <li >
                                    ";
            // line 120
            $context["name_input_1"] = (("client[clientTels][" . $context["i"]) . "][numTel]");
            // line 121
            yield "                                    ";
            $context["value_1"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 121, $this->source); })()), "clientTels", [], "any", false, false, false, 121), "get", [($context["i"] - 1)], "method", false, false, false, 121)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 121, $this->source); })()), "clientTels", [], "any", false, false, false, 121), "get", [($context["i"] - 1)], "method", false, false, false, 121), "numTel", [], "any", false, false, false, 121)) : (""));
            // line 122
            yield "                                    ";
            $context["type_1"] = "text";
            // line 123
            yield "                                    ";
            $context["fr"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 123, $this->source); })()), "clientTels", [], "any", false, false, false, 123), "get", [($context["i"] - 1)], "method", false, false, false, 123)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 123, $this->source); })()), "clientTels", [], "any", false, false, false, 123), "get", [($context["i"] - 1)], "method", false, false, false, 123), "fr", [], "any", false, false, false, 123)) : (1));
            // line 124
            yield "                                    ";
            $context["pattern"] = (((isset($context["fr"]) || array_key_exists("fr", $context) ? $context["fr"] : (function () { throw new RuntimeError('Variable "fr" does not exist.', 124, $this->source); })())) ? ("pattern=[0-9]{2}.[0-9]{2}.[0-9]{2}.[0-9]{2}.[0-9]{2}") : ("9999999999"));
            // line 125
            yield "                                    ";
            $context["minlength"] = (((isset($context["fr"]) || array_key_exists("fr", $context) ? $context["fr"] : (function () { throw new RuntimeError('Variable "fr" does not exist.', 125, $this->source); })())) ? ("minlength=14") : (""));
            // line 126
            yield "                                    ";
            $context["maxlength"] = "maxlength=14";
            // line 127
            yield "                                    ";
            $context["class_sup"] = (((isset($context["fr"]) || array_key_exists("fr", $context) ? $context["fr"] : (function () { throw new RuntimeError('Variable "fr" does not exist.', 127, $this->source); })())) ? ("input_tel") : ("input_tel not_fr"));
            // line 128
            yield "                                    ";
            $context["name_input_2"] = (("client[clientTels][" . $context["i"]) . "][commentaireTel]");
            // line 129
            yield "                                    ";
            $context["value_2"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 129, $this->source); })()), "clientTels", [], "any", false, false, false, 129), "get", [($context["i"] - 1)], "method", false, false, false, 129)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 129, $this->source); })()), "clientTels", [], "any", false, false, false, 129), "get", [($context["i"] - 1)], "method", false, false, false, 129), "commentaireTel", [], "any", false, false, false, 129)) : (""));
            // line 130
            yield "                                    ";
            $context["name_input_3"] = (("client[clientTels][" . $context["i"]) . "][id]");
            // line 131
            yield "                                    ";
            $context["value_3"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 131, $this->source); })()), "clientTels", [], "any", false, false, false, 131), "get", [($context["i"] - 1)], "method", false, false, false, 131)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 131, $this->source); })()), "clientTels", [], "any", false, false, false, 131), "get", [($context["i"] - 1)], "method", false, false, false, 131), "id", [], "any", false, false, false, 131)) : (""));
            // line 132
            yield "                                    ";
            $context["name_input_fr"] = (("client[clientTels][" . $context["i"]) . "][fr]");
            // line 133
            yield "                                    ";
            $context["popup_id"] = ("popup-client-commentaireTel-" . $context["i"]);
            // line 134
            yield "                                    ";
            $context["width"] = "width:150px";
            // line 135
            yield "                                    ";
            $context["data_disable"] = "data-disable-on-view";
            // line 136
            yield "                                    ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_prototype_collection.html.twig");
            yield "
                                </li>
                            ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 139
        yield "                        </ul>
                        ";
        // line 141
        yield "                    </div>
                    <div class=\"d-flex\">
                        <div><i class=\"fa fa-envelope align-self-center\" style=\"font-size: 1.7em;\"></i></div>
                        <div>
                            <ul class=\"collection\" id=\"collection-email\" style=\"margin-bottom: 0;width:481px;padding-left:11px;\" data-index=\"";
        // line 145
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 145, $this->source); })()), "ClientEmails", [], "any", false, false, false, 145)) + 1), "html", null, true);
        yield "\" data-prototype=\"#prototype-client-mail\">
                                <li style=\"position:relative;width:310px;\">
                                    ";
        // line 147
        $context["name_input_1"] = "client[clientEmails][1][email]";
        // line 148
        yield "                                    ";
        $context["value_1"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 148, $this->source); })()), "ClientEmails", [], "any", false, false, false, 148), "get", [0], "method", false, false, false, 148)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 148, $this->source); })()), "ClientEmails", [], "any", false, false, false, 148), "get", [0], "method", false, false, false, 148), "email", [], "any", false, false, false, 148)) : (""));
        // line 149
        yield "                                    ";
        $context["type_1"] = "email";
        // line 150
        yield "                                    ";
        $context["name_input_2"] = "client[clientEmails][1][commentaireEmail]";
        // line 151
        yield "                                    ";
        $context["value_2"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 151, $this->source); })()), "ClientEmails", [], "any", false, false, false, 151), "get", [0], "method", false, false, false, 151)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 151, $this->source); })()), "ClientEmails", [], "any", false, false, false, 151), "get", [0], "method", false, false, false, 151), "commentaireEmail", [], "any", false, false, false, 151)) : (""));
        // line 152
        yield "                                    ";
        $context["name_input_3"] = "client[clientEmails][1][id]";
        // line 153
        yield "                                    ";
        $context["value_3"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 153, $this->source); })()), "ClientEmails", [], "any", false, false, false, 153), "get", [0], "method", false, false, false, 153)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 153, $this->source); })()), "ClientEmails", [], "any", false, false, false, 153), "get", [0], "method", false, false, false, 153), "id", [], "any", false, false, false, 153)) : (""));
        // line 154
        yield "                                    ";
        $context["popup_id"] = "popup-client-commentaireEmail-1";
        // line 155
        yield "                                    ";
        $context["data_disable"] = "data-disable-on-view";
        // line 156
        yield "                                    ";
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_prototype_collection.html.twig");
        yield "
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class=\" d-flex flex-column\">
                    <div  class=\"input-group form-group pb-2\">
                        ";
        // line 164
        if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 164, $this->source); })()), "getEquipementsActif", [], "any", false, false, false, 164)) {
            // line 165
            yield "                            <div class=\"align-self-start\" style=\"min-width:143.4px\">
                                ";
            // line 166
            if (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.', 166, $this->source); })()), "getActif", [], "any", false, false, false, 166)) {
                // line 167
                yield "                                <a class=\"btn btn-success px-2\" id=\"btn-open-change-souscripteur\" data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-popup-offset =\"0 275\"  data-popup-id=\"popup-changement-souscripteur\" data-scrollview-height=\"300px\" data-popup-scrollview=\"#changement-souscripteur-tab-equipement\" data-disable-on-view=\"\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Changement de souscripteur\" data-popup-width=\"auto\" style=\"height: 28px;line-height: 13px;\">Nouveau souscripteur</a>
                                ";
            }
            // line 169
            yield "                            </div>
                        ";
        }
        // line 171
        yield "                    </div>
                    ";
        // line 172
        $context["margin_top_picto"] = true;
        // line 173
        yield "                    ";
        if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 173, $this->source); })()), "typeClient", [], "any", false, false, false, 173), "id", [], "any", false, false, false, 173), 2))) {
            // line 174
            yield "                        <a data-popup-position-of=\"center\" class=\"ms-auto\" data-popup-position-at=\"top\" data-disable-on-view 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["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 174, $this->source); })()), "id", [], "any", false, false, false, 174), "html", null, true);
            yield "\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-title=\"Identification fiscale\" data-popup-width=\"auto\">
                            ";
            // line 175
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_picto_impot.html.twig");
            yield "
                        </a>
                    ";
        }
        // line 178
        yield "                    ";
        if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 178, $this->source); })()), "getClientTutelle", [], "any", false, false, false, 178)) {
            // line 179
            yield "                        <a data-popup-position-of=\"center\" class=\"ms-auto\" data-popup-position-at=\"top\" data-disable-on-view 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["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 179, $this->source); })()), "getClientTutelle", [], "any", false, false, false, 179), "id", [], "any", false, false, false, 179), "html", null, true);
            yield "\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-title=\"Tuteur\" data-popup-width=\"auto\" style=\"width:28px;height:28px;\">
                            ";
            // line 180
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_picto_tutelle.html.twig");
            yield "
                        </a>
                    ";
        }
        // line 183
        yield "                </div>
                ";
        // line 184
        if (((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 184, $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.', 184, $this->source); })()), "getClientAncienSouscripteur", [], "any", false, false, false, 184))) {
            // line 185
            yield "                    <div class=\"mt-1 position-absolute\" style=\"font-size:12px;bottom: 0;font-style:italic;left:200px;\">Ancien souscripteur: ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 185, $this->source); })()), "getClientAncienSouscripteur", [], "any", false, false, false, 185), "html", null, true);
            yield " (";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(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.', 185, $this->source); })()), "getDateAncienSouscripteur", [], "any", false, false, false, 185), "d/m/Y"), "html", null, true);
            yield ")</div>
                ";
        }
        // line 187
        yield "            </div>
            <div class=\"d-flex bg-primary pt-2 px-2 \"  style=\"flex-grow:1;max-width:466px;\">
                <div class=\"d-flex flex-column align-items-end me-2\">
                    <div>
                        <p class=\"mt-0 mb-0 title-700\" id=\"sidebar-client-container-title--text\" style=\"font-size: 1.4em;\">Equipements </p>
                    </div>
                    <div class=\"d-flex flex-column mt-auto\">
                        <div class=\"mb-1 ms-auto\">
                            <a class=\"\" data-poppup-container=\"body\" style=\"align-self:center;margin-left: auto;\" data-popup-id=\"popup-add-equipement\" data-popup-closeoutside=\"false\" data-dxpopup=\"\" data-popup-title=\"Ajouter un équipement\" data-popup-width=\"auto\">
                                <i class=\"fa fa-plus add-icon me-0\" style=\";position:relative; right:0;border-radius:4px;\"></i>
                            </a>
                        </div>
                        <div class=\"d-flex\">
                            <div class=\"d-flex flex-column\">
                                <span class=\"color-vert me-2\" >";
        // line 201
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 201, $this->source); })()), "getEquipementsActif", [], "any", false, false, false, 201)), "html", null, true);
        yield " actifs</span>
                                <span class=\"color-orange\">";
        // line 202
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 202, $this->source); })()), "getEquipementsInactif", [], "any", false, false, false, 202)), "html", null, true);
        yield " inactif</span>
                            </div>
                            <div>
                                <a class=\"position:relative bg-vert text-decoration-none d-flex flex-column align-items-center\" id=\"show-equipements\" style=\"align-self:center;margin-left: auto; height:38px;width:32px;border-radius:4px;display:block\" >
                                    <span class=\" me-0 d-block w-100 text-center pt-1\" style=\";position:relative; font-size: 0.8125rem; font-weight: 700;\">";
        // line 206
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 206, $this->source); })()), "getEquipementsActif", [], "any", false, false, false, 206)), "html", null, true);
        yield "</span>
                                    <span class=\"mt-1\" style=\"width: 0; height: 0;border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid white;\"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
                <div style=\"min-width:335px\">
                    <div class=\" bg-white w-100 text-start d-flex justify-content-between mb-1 flex-column ";
        // line 214
        yield ((((isset($context["id_equipement"]) || array_key_exists("id_equipement", $context) ? $context["id_equipement"] : (function () { throw new RuntimeError('Variable "id_equipement" does not exist.', 214, $this->source); })()) && (0 === CoreExtension::compare((isset($context["id_equipement"]) || array_key_exists("id_equipement", $context) ? $context["id_equipement"] : (function () { throw new RuntimeError('Variable "id_equipement" does not exist.', 214, $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.', 214, $this->source); })()), "id", [], "any", false, false, false, 214))))) ? ("active") : (""));
        yield "\" data-idequipement=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 214, $this->source); })()), "id", [], "any", false, false, false, 214), "html", null, true);
        yield "\" id=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 214, $this->source); })()), "id", [], "any", false, false, false, 214), "html", null, true);
        yield "-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tabdata-";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 214, $this->source); })()), "id", [], "any", false, false, false, 214), "html", null, true);
        yield "\" type=\"button\" role=\"tab\"  aria-selected=\"true\">
                        <div class=\"d-flex px-2 bg-grey-table\" style=\"padding-top:0.15rem;\">
                            ";
        // line 216
        if (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.', 216, $this->source); })()), "clientUtilisateur", [], "any", false, false, false, 216)) {
            // line 217
            yield "                                <span class=\"w-100 color-orange\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 217, $this->source); })()), "clientUtilisateur", [], "any", false, false, false, 217), "html", null, true);
            yield "</span><br>
                            ";
        } else {
            // line 219
            yield "                                <span class=\"w-100 color-orange\">----</span><br>
                            ";
        }
        // line 221
        yield "                            ";
        if (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.', 221, $this->source); })()), "getActif", [], "any", false, false, false, 221)) {
            // line 222
            yield "                            <a class=\"d-flex\" data-popup-id=\"popup-equipement-inactif-";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 222, $this->source); })()), "id", [], "any", false, false, false, 222), "html", null, true);
            yield "\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Confirmation équipement inactif\" data-popup-width=\"auto\">
                                <img width=\"16\"  height=\"16\" src=\"";
            // line 223
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-equipement-inactif.png"), "html", null, true);
            yield " \" style=\"vertical-align: baseline\">
                            </a>
                            ";
        }
        // line 226
        yield "                        </div>
                        <div class=\"px-2 w-100 pt-1\" style=\"line-height: 18.3px;\">
                            <div class=\"d-flex justify-content-between\">
                                <span class=\"bg-primary me-1\" style=\"padding: 1px 2px;border-radius: 3px;\"> ";
        // line 229
        ((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.', 229, $this->source); })()), "EquipementFamilleContrat", [], "any", false, false, false, 229)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $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.', 229, $this->source); })()), "EquipementFamilleContrat", [], "any", false, false, false, 229), "libelle", [], "any", false, false, false, 229), "html", null, true)) : (yield ""));
        yield "</span>
                                <span>";
        // line 230
        ((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.', 230, $this->source); })()), "numSerieprincipal", [], "any", false, false, false, 230)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((Twig\Extension\CoreExtension::slice($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.', 230, $this->source); })()), "numSerieprincipal", [], "any", false, false, false, 230), 0, 4) . " ") . Twig\Extension\CoreExtension::slice($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.', 230, $this->source); })()), "numSerieprincipal", [], "any", false, false, false, 230), 4, 6)) . " ") . Twig\Extension\CoreExtension::slice($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.', 230, $this->source); })()), "numSerieprincipal", [], "any", false, false, false, 230), 10, 4)), "html", null, true)) : (yield "<i>serie en attente</i>"));
        yield "</span>
                            </div>
                            <div class=\"d-flex color-vert w-100\">
                                <div class=\"d-inline-block\">";
        // line 233
        ((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.', 233, $this->source); })()), "EquipementFamille", [], "any", false, false, false, 233)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $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.', 233, $this->source); })()), "EquipementFamille", [], "any", false, false, false, 233), "libelle", [], "any", false, false, false, 233), "html", null, true)) : (yield ""));
        yield "</div>
                                <div class=\"ms-auto\">
                                    ";
        // line 235
        ((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.', 235, $this->source); })()), "EquipementTypePuissance", [], "any", false, false, false, 235)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $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.', 235, $this->source); })()), "EquipementTypePuissance", [], "any", false, false, false, 235), "EquipementType", [], "any", false, false, false, 235), "type", [], "any", false, false, false, 235), "html", null, true)) : (yield ""));
        yield "
                                </div>
                            </div>
                           <div class=\"d-flex justify-content-between\">
                               <div class=\"d-flex flex-column me-2\">
                                   <div>";
        // line 240
        ((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.', 240, $this->source); })()), "adresse", [], "any", false, false, false, 240)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), CoreExtension::getAttribute($this->env, $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.', 240, $this->source); })()), "adresse", [], "any", false, false, false, 240), "adresse", [], "any", false, false, false, 240)), "html", null, true)) : (yield ""));
        yield "</div>
                                   ";
        // line 241
        if ((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.', 241, $this->source); })()), "adresse", [], "any", false, false, false, 241) && CoreExtension::getAttribute($this->env, $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.', 241, $this->source); })()), "adresse", [], "any", false, false, false, 241), "getEtagePorteComplement", [], "any", false, false, false, 241))) {
            // line 242
            yield "                                       <div>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $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.', 242, $this->source); })()), "adresse", [], "any", false, false, false, 242), "getEtagePorteComplement", [], "any", false, false, false, 242), "html", null, true);
            yield "</div>
                                   ";
        }
        // line 244
        yield "                                   <div>";
        ((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.', 244, $this->source); })()), "adresse", [], "any", false, false, false, 244)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $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.', 244, $this->source); })()), "adresse", [], "any", false, false, false, 244), "codePostal", [], "any", false, false, false, 244) . " ") . CoreExtension::getAttribute($this->env, $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.', 244, $this->source); })()), "adresse", [], "any", false, false, false, 244), "ville", [], "any", false, false, false, 244)), "html", null, true)) : (yield ""));
        yield "</div>
                               </div>
                               <div class=\"d-flex mt-1\">
                                   ";
        // line 247
        if (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.', 247, $this->source); })()), "isEligiblePrivilege", [], "any", false, false, false, 247)) {
            // line 248
            yield "                                       <span class=\"me-1\"><img width=\"28\"  height=\"28\" src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-privileges.png"), "html", null, true);
            yield " \" class=\"\" style=\"vertical-align: baseline\"></span>
                                   ";
        }
        // line 250
        yield "                                   ";
        if ( !Twig\Extension\CoreExtension::testEmpty(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.', 250, $this->source); })()), "equipementGroupes", [], "any", false, false, false, 250))) {
            // line 251
            yield "                                       <span class=\"me-1\"><img width=\"28\"  height=\"28\" src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-equipement-lies.png"), "html", null, true);
            yield " \" class=\"\" style=\"vertical-align: baseline\"></span>
                                   ";
        }
        // line 253
        yield "                                   ";
        if ((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.', 253, $this->source); })()), "getLastContrat", [], "any", false, false, false, 253) && CoreExtension::getAttribute($this->env, $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.', 253, $this->source); })()), "getLastContrat", [], "any", false, false, false, 253), "groupe", [], "any", false, false, false, 253))) {
            // line 254
            yield "                                       <div class=\"me-1\" >
                                           <img width=\"28\"  height=\"28\" src=\"";
            // line 255
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-groupe-contrat.png"), "html", null, true);
            yield " \" class=\"popper\" style=\"vertical-align: baseline;\">
                                           <div class=\"info-tooltip bg-vert\">N°";
            // line 256
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $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.', 256, $this->source); })()), "getLastContrat", [], "any", false, false, false, 256), "groupe", [], "any", false, false, false, 256), "html", null, true);
            yield "</div>
                                       </div>
                                   ";
        }
        // line 259
        yield "                                   ";
        if (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.', 259, $this->source); })()), "getSalarieFrisquet", [], "any", false, false, false, 259)) {
            // line 260
            yield "                                       <span class=\"me-1\"><img width=\"28\"  height=\"28\" src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/salarie-frisquet-actif.png"), "html", null, true);
            yield " \" class=\"\" style=\"vertical-align: baseline;\"></span>
                                   ";
        }
        // line 262
        yield "                                   ";
        if ( !(null === 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.', 262, $this->source); })()), "getChantier", [], "any", false, false, false, 262))) {
            // line 263
            yield "                                       <div class=\"me-1\">
                                           <img width=\"28\"  height=\"28\" src=\"";
            // line 264
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-chantier.png"), "html", null, true);
            yield " \" class=\"popper0\" style=\"vertical-align: baseline;\">
                                           <div class=\"info-tooltip bg-grey-dark\">N°";
            // line 265
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 265, $this->source); })()), "getChantier", [], "any", false, false, false, 265), "html", null, true);
            yield "</div>
                                       </div>
                                   ";
        }
        // line 268
        yield "                                   ";
        if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 268, $this->source); })()), "getPorteOuvertes", [], "any", false, false, false, 268))) {
            // line 269
            yield "                                       <img width=\"28\"  height=\"28\" class=\"popper me-1\" src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-po.png"), "html", null, true);
            yield " \" style=\"vertical-align: sub\" />
                                   ";
        }
        // line 271
        yield "                                   ";
        if ((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.', 271, $this->source); })()), "getClientUtilisateur", [], "any", false, false, false, 271) && CoreExtension::getAttribute($this->env, $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.', 271, $this->source); })()), "getClientUtilisateur", [], "any", false, false, false, 271), "getClientTutelle", [], "any", false, false, false, 271))) {
            // line 272
            yield "                                       <img width=\"28\" height=\"28\" src=\"";
            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 " \" >
                                   ";
        }
        // line 274
        yield "                               </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


        </div>
        <div class=\"my-custom-class-for-errors\">
        </div>


        <div class=\"d-flex justify-content-between flex-wrap\" style=\"gap:0.8rem;\">
";
        // line 301
        yield "
        </div>
    </form>
    <div class=\"row mx-0 pt-1 mt-1\">
        ";
        // line 305
        $context["nbEquipementsActif"] = Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 305, $this->source); })()), "getEquipementsActif", [], "any", false, false, false, 305));
        // line 306
        yield "        <div class=\" bg-grey tab-content px-0\" id=\"body-client\" >
                ";
        // line 307
        $context["contrat_en_cours"] = ((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 307, $this->source); })()) && (1 === CoreExtension::compare($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 307, $this->source); })()), "getDateFinContrat", [], "any", false, false, false, 307), "Y-m-d"), $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y-m-d"))));
        // line 308
        yield "                ";
        $context["paiement"] = (((((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 308, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 308, $this->source); })()), "facture", [], "any", false, false, false, 308)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 308, $this->source); })()), "facture", [], "any", false, false, false, 308), "paiements", [], "any", false, false, false, 308), 0, [], "array", false, false, false, 308))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 308, $this->source); })()), "facture", [], "any", false, false, false, 308), "paiements", [], "any", false, false, false, 308), 0, [], "array", false, false, false, 308)) : (null));
        // line 309
        yield "                ";
        $context["lien_paiement"] = ((((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 309, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 309, $this->source); })()), "dateAvisEcheance", [], "any", false, false, false, 309)) &&  !CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 309, $this->source); })()), "datePaiement", [], "any", false, false, false, 309)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 309, $this->source); })()), "getClientEmails", [], "any", false, false, false, 309), 0, [], "array", false, false, false, 309));
        // line 310
        yield "                ";
        $context["envoi_avis_echeance"] = ((isset($context["contrat_en_cours"]) || array_key_exists("contrat_en_cours", $context) ? $context["contrat_en_cours"] : (function () { throw new RuntimeError('Variable "contrat_en_cours" does not exist.', 310, $this->source); })()) &&  !CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 310, $this->source); })()), "dateAvisEcheance", [], "any", false, false, false, 310));
        // line 311
        yield "
                ";
        // line 312
        $context["isGU"] = (((((null === (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 312, $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.', 312, $this->source); })()), "datePremierAllumage", [], "any", false, false, false, 312)) && (0 <= CoreExtension::compare($this->extensions['Twig\Extension\CoreExtension']->formatDate($this->extensions['Twig\Extension\CoreExtension']->modifyDate(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.', 312, $this->source); })()), "datePremierAllumage", [], "any", false, false, false, 312), "+1 year"), "U"), $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "U"))))) ? (true) : (false));
        // line 313
        yield "                ";
        $context["utilisateur"] = 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.', 313, $this->source); })()), "clientUtilisateur", [], "any", false, false, false, 313);
        // line 314
        yield "                <div class=\"tab-pane fade show  ";
        yield (((0 === CoreExtension::compare(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.', 314, $this->source); })()), "getActif", [], "any", false, false, false, 314), false))) ? ("disabled") : (""));
        yield " ";
        yield ((((isset($context["id_equipement"]) || array_key_exists("id_equipement", $context) ? $context["id_equipement"] : (function () { throw new RuntimeError('Variable "id_equipement" does not exist.', 314, $this->source); })()) && (0 === CoreExtension::compare((isset($context["id_equipement"]) || array_key_exists("id_equipement", $context) ? $context["id_equipement"] : (function () { throw new RuntimeError('Variable "id_equipement" does not exist.', 314, $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.', 314, $this->source); })()), "id", [], "any", false, false, false, 314))))) ? ("active") : (""));
        yield "\" id=\"tabdata-";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 314, $this->source); })()), "id", [], "any", false, false, false, 314), "html", null, true);
        yield "\" role=\"tabpanel\" aria-labelledby=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 314, $this->source); })()), "id", [], "any", false, false, false, 314), "html", null, true);
        yield "-tab\">
                    <div class=\"d-flex flex-row position-relative\">
                        <div class=\"position-fixed d-flex justify-content-center \" style=\"z-index: 1000;\">
                            <ul class=\"nav nav-tabs pt-1 nav-primary d-flex flex-column \" role=\"tablist\" id=\"show_tab-";
        // line 317
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 317, $this->source); })()), "id", [], "any", false, false, false, 317), "html", null, true);
        yield "\" data-tabs=\"tabs\" style=\"position:relative;margin-left:14px\">
                                <li class=\"nav-item sticky-links__element\" role=\"presentation\">
                                    <a class=\"nav-link bg-white active rounded-circle-40 p-0 border-primary\"  href=\"#tab-1-";
        // line 319
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 319, $this->source); })()), "id", [], "any", false, false, false, 319), "html", null, true);
        yield "\"  role=\"tab\"  aria-selected=\"true\">
                                        <i class=\"fa fa-fire fa-lg ms-1\" aria-hidden=\"true\"></i>
                                        <span class=\"nav-title\">EQUIPEMENT</span>
                                    </a>
                                </li>
                                <li class=\"nav-item sticky-links__element\" role=\"presentation\">
                                    <a class=\"nav-link  bg-grey rounded-circle-40 p-0 border-primary\"  href=\"#tab-2-";
        // line 325
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 325, $this->source); })()), "id", [], "any", false, false, false, 325), "html", null, true);
        yield "\"  role=\"tab\"  aria-selected=\"false\">
                                        <i class=\"fa fa-tools ms-1 fa-lg\" aria-hidden=\"true\"></i>
                                        <span class=\"nav-title\">INTERVENTIONS</span>
                                    </a>
                                </li>
                                <li class=\"nav-item sticky-links__element\" role=\"presentation\">
                                    <a class=\"nav-link  bg-grey rounded-circle-40 p-0 border-primary\"   href=\"#tab-3-";
        // line 331
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 331, $this->source); })()), "id", [], "any", false, false, false, 331), "html", null, true);
        yield "\" role=\"tab\"  aria-selected=\"false\">
                                        <i class=\"fa fa-euro ms-1 fa-lg\" aria-hidden=\"true\"></i>
                                        <span class=\"nav-title\">FACTURATION</span>
                                    </a>
                                </li>
                                <li class=\"nav-item sticky-links__element\" role=\"presentation\">
                                    <a class=\"nav-link  bg-grey rounded-circle-40 p-0 border-primary\"   href=\"#tab-4-";
        // line 337
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 337, $this->source); })()), "id", [], "any", false, false, false, 337), "html", null, true);
        yield "\" role=\"tab\"  aria-selected=\"false\">
                                        <i class=\"fa fa-envelope ms-1 fa-lg\" aria-hidden=\"true\"></i>
                                        <span class=\"nav-title\">CONTACT</span>
                                    </a>
                                </li>
                                <li class=\"nav-item sticky-links__element\" role=\"presentation\">
                                    <a class=\"nav-link  bg-grey rounded-circle-40 p-0 border-primary\"   href=\"#tab-5-";
        // line 343
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 343, $this->source); })()), "id", [], "any", false, false, false, 343), "html", null, true);
        yield "\" role=\"tab\"  aria-selected=\"false\">
                                        <i class=\"fa fa-exclamation-triangle ms-1 fa-lg\" aria-hidden=\"true\"></i>
                                        <span class=\"nav-title\">AIDE TECHNIQUE</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                        <div class=\"d-flex flex-column\" style=\"width:72px;\">
                        </div>
                        <div>
                            <div class=\" pb-3  \"  style=\"height:870px; position:relative;\" data-bs-spy=\"scroll\" data-bs-target=\"#show_tab-";
        // line 353
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 353, $this->source); })()), "id", [], "any", false, false, false, 353), "html", null, true);
        yield "\"  >
                                <div class=\"tab-pane fade show tab-client\" id=\"tab-1-";
        // line 354
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 354, $this->source); })()), "id", [], "any", false, false, false, 354), "html", null, true);
        yield "\" role=\"tabpanel\">
                                    ";
        // line 356
        yield "                                    ";
        // line 357
        yield "                                    ";
        // line 358
        yield "                                    ";
        // line 359
        yield "                                    ";
        // line 360
        yield "                                    ";
        // line 361
        yield "                                    ";
        // line 362
        yield "                                    ";
        // line 363
        yield "                                    ";
        // line 364
        yield "                                    ";
        // line 365
        yield "
                                    <div class=\"d-flex flex-wrap \">
                                        <div class=\"d-flex flex-wrap justify-content-between me-1 \" style=\"width: 1051px;\">
                                            <div class=\"d-flex bg-primary flex-column bloc_fiche_2 me-1\" style=\"height:266px;width:535px;\">
                                                <div class=\"text-center py-1 position-relative\" style=\"color:white;\">
                                                    Utilisateur
                                                    <a data-popup-id=\"popup-history-equipement-utilisateur\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Historique Utilisateur\" data-popup-width=\"auto\"><i class=\"fa fa-lg fa-history custom-history\"></i></a>
                                                </div>
                                                <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex\" style=\"flex-direction: column\">
                                                    ";
        // line 374
        if (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.', 374, $this->source); })()), "getActif", [], "any", false, false, false, 374)) {
            // line 375
            yield "                                                        ";
            if ((( !(isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 375, $this->source); })()) || (0 === CoreExtension::compare((isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 375, $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.', 375, $this->source); })()), "clientSouscripteur", [], "any", false, false, false, 375)))) || 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.', 375, $this->source); })()), "logementVide", [], "any", false, false, false, 375))) {
                // line 376
                yield "                                                            ";
                if ((0 === CoreExtension::compare(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.', 376, $this->source); })()), "getActif", [], "any", false, false, false, 376), true))) {
                    // line 377
                    yield "                                                                <div class=\"d-flex w-100 h-100 justify-content-center align-items-end\">
                                                                    <a class=\"btn btn-block  btn-outline-success me-1\" style=\"width:146px;\"  data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-disable-on-view data-poppup-container=\"body\" data-popup-id=\"popup-add-utilisateur\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-title=\"Ajouter un utilisateur\" data-popup-width=\"auto\">
                                                                                                                                                                                                                                                                                                <i class=\"fa fa-plus\" style=\"position:relative !important;;\"></i>Nouvel utilisateur
                                                                    </a>
                                                                </div>
                                                            ";
                }
                // line 386
                yield "                                                        ";
            } else {
                // line 387
                yield "                                                            <div class=\"d-flex flex-wrap\" style=\"gap:0.5rem;\">
                                                                    ";
                // line 388
                $context["client_affiche"] = (isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 388, $this->source); })());
                // line 389
                yield "                                                                    ";
                $context["nom_reference"] = "utilisateur";
                // line 390
                yield "                                                                    ";
                yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_affichage_utilisateur_tuteur.html.twig");
                yield "
                                                                    ";
                // line 391
                $context["margin_top_picto"] = false;
                // line 392
                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.', 392, $this->source); })()), "getClientTutelle", [], "any", false, false, false, 392)) {
                    // line 393
                    yield "                                                                        <a data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-disable-on-view 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.', 393, $this->source); })()), "getClientTutelle", [], "any", false, false, false, 393), "id", [], "any", false, false, false, 393), "html", null, true);
                    yield "\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-title=\"Tuteur\" data-popup-width=\"auto\">
                                                                            ";
                    // line 394
                    yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_picto_tutelle.html.twig");
                    yield "
                                                                        </a>
                                                                    ";
                }
                // line 397
                yield "                                                                    ";
                if ((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.', 397, $this->source); })()), "typeClient", [], "any", false, false, false, 397), "id", [], "any", false, false, false, 397), 2))) {
                    // line 398
                    yield "                                                                        <a data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-disable-on-view 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.', 398, $this->source); })()), "id", [], "any", false, false, false, 398), "html", null, true);
                    yield "\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-title=\"Identification fiscale\" data-popup-width=\"auto\">
                                                                            ";
                    // line 399
                    yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_picto_impot.html.twig");
                    yield "
                                                                        </a>
                                                                    ";
                }
                // line 402
                yield "                                                                </div>
                                                            </div>
                                                            ";
                // line 404
                if ((0 !== CoreExtension::compare((isset($context["utilisateur"]) || array_key_exists("utilisateur", $context) ? $context["utilisateur"] : (function () { throw new RuntimeError('Variable "utilisateur" does not exist.', 404, $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.', 404, $this->source); })()), "clientSouscripteur", [], "any", false, false, false, 404)))) {
                    // line 405
                    yield "                                                                <div class=\"d-flex pt-2\" style=\"margin-top:auto;\">
                                                                    <a class=\"btn btn-md btn-block btn-outline-danger me-1\" data-message = \"Confirmez vous que ce logement est vide?\" data-href=\"";
                    // line 406
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("equipement_logement_vide", ["id" => 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.', 406, $this->source); })()), "id", [], "any", false, false, false, 406)]), "html", null, true);
                    yield "\" data-disable-on-view=\"\"  data-confirm=\"1\">Logement vide</a>
                                                                    <a class=\"btn btn-md btn-block btn-outline-success me-1\" data-disable-on-view data-poppup-container=\"body\" data-popup-id=\"popup-add-utilisateur\" data-dxpopup=\"\" data-popup-title=\"Ajouter un utilisateur\" data-popup-position-of=\"center\"  data-scrollview-height=\"300px\" data-popup-position-at=\"top\" data-popup-offset =\"0 275\" data-popup-width=\"auto\"> Nouvel utilisateur</a>
                                                                    <a class=\"btn btn-md btn-block btn-outline-success me-1\" data-poppup-container=\"body\" data-popup-id=\"popup-transformer-souscripteur-";
                    // line 408
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 408, $this->source); })()), "id", [], "any", false, false, false, 408), "html", null, true);
                    yield "\" data-disable-on-view=\"\" data-dxpopup=\"\" data-popup-title=\"Confirmation de transformation utilisateur en souscripteur\" data-popup-width=\"auto\">Transformer en souscripteur</a>
                                                                </div>
                                                            ";
                }
                // line 411
                yield "                                                        ";
            }
            // line 412
            yield "                                                ";
        }
        // line 413
        yield "                                                </div>
                                            </div>
                                            <div class=\"d-flex bg-primary flex-column  bloc_fiche_2 me-auto\"   style=\"height:266px;width:512px\">
                                                <div class=\"text-center py-1 position-relative\" style=\"color:white\">
                                                    ";
        // line 418
        yield "                                                    ";
        // line 419
        yield "                                                    ";
        // line 420
        yield "                                                    ";
        $context["contratResiliation"] = (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["contrat"] ?? null), "contratResiliations", [], "any", false, true, false, 420), 0, [], "array", true, true, false, 420) && (0 <= CoreExtension::compare($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 420, $this->source); })()), "contratResiliations", [], "any", false, false, false, 420), 0, [], "array", false, false, false, 420), "getDate", [], "any", false, false, false, 420), "Y-m-d"), $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y-m-d"))))) ? (("Contrat résilité le " . $this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 420, $this->source); })()), "contratResiliations", [], "any", false, false, false, 420), 0, [], "array", false, false, false, 420), "date", [], "any", false, false, false, 420), "d/m/Y"))) : (""));
        // line 421
        yield "                                                    ";
        if (((array_key_exists("contrat", $context) &&  !(null === (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 421, $this->source); })()))) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 421, $this->source); })()), "isContratEchu", [], "method", false, false, false, 421))) {
            // line 422
            yield "                                                        Contrat échu pour défaut de paiement
                                                    ";
        } elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,         // line 423
($context["contrat"] ?? null), "contratResiliations", [], "any", false, true, false, 423), 0, [], "array", true, true, false, 423) && (0 <= CoreExtension::compare($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 423, $this->source); })()), "contratResiliations", [], "any", false, false, false, 423), 0, [], "array", false, false, false, 423), "getDate", [], "any", false, false, false, 423), "Y-m-d"), $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y-m-d"))))) {
            // line 424
            yield "                                                       Contrat résilié le ";
            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, CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 424, $this->source); })()), "contratResiliations", [], "any", false, false, false, 424), 0, [], "array", false, false, false, 424), "getDate", [], "any", false, false, false, 424), "d/m/Y"), "html", null, true);
            yield "
                                                    ";
        } else {
            // line 426
            yield "                                                        ";
            ((((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 426, $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.', 426, $this->source); })()), "equipementFamilleContrat", [], "any", false, false, false, 426))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $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.', 426, $this->source); })()), "equipementFamilleContrat", [], "any", false, false, false, 426), "libelle", [], "any", false, false, false, 426), "html", null, true)) : (yield "Hors Contrat"));
            yield "
                                                    ";
        }
        // line 428
        yield "                                                    <a data-popup-id=\"popup-history-contrats-";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 428, $this->source); })()), "id", [], "any", false, false, false, 428), "html", null, true);
        yield "\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Historique Contrat\" data-popup-width=\"auto\"><i class=\"fa fa-lg fa-history custom-history\"></i></a>
                                                </div>
                                                <div class=\"px-2 py-1 bg-white color-primary w-100 h-100 block-infos-container\">
                                                    ";
        // line 431
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/contrat/contrat.html.twig");
        yield "
                                                </div>
                                            </div>
                                            <div class=\"d-flex w-100\" >
                                                <div class=\"d-flex bg-primary flex-column h-auto mt-0 flex-grow-1 \" style=\"margin-right: 4px;\">
                                                    <div class=\"text-center py-1\" style=\"color:white\">Localisation</div>
                                                    <div class=\"px-2 py-2 bg-white color-primary   h-100 block-infos-container\">
                                                        ";
        // line 438
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/localisation/localisation.html.twig");
        yield "
                                                    </div>
                                                </div>
                                                <div class=\"d-flex bg-primary flex-column h-auto mt-0 ms-auto\" style=\"width:311px !important;\" >
                                                    <div class=\"text-center py-1\" style=\"color:white\">Secteur n°";
        // line 442
        (( !(null === 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.', 442, $this->source); })()), "getSecteur", [], "any", false, false, false, 442))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 442, $this->source); })()), "getSecteur", [], "any", false, false, false, 442), "html", null, true)) : (yield ""));
        yield "</div>
                                                    <div class=\"px-2 py-2 bg-white color-primary  h-100 block-infos-container\">
                                                        <div class=\"d-flex align-items-center mb-2\">
                                                            <label  style=\"width:112px;\">Agent de planning</label>
                                                            <input type=\"text\" class=\"form-control\" disabled value=\"";
        // line 446
        (((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.', 446, $this->source); })()), "getSecteur", [], "any", false, false, false, 446) && CoreExtension::getAttribute($this->env, $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.', 446, $this->source); })()), "getSecteur", [], "any", false, false, false, 446), "getUtilisateurPlanning", [], "any", false, false, false, 446))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $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.', 446, $this->source); })()), "getSecteur", [], "any", false, false, false, 446), "getUtilisateurPlanning", [], "any", false, false, false, 446), "getCodeNom", [], "any", false, false, false, 446), "html", null, true)) : (yield ""));
        yield "\" style=\"width: 183px;\" >
                                                        </div>
                                                        <div class=\"d-flex align-items-center\">
                                                            <label style=\"width:112px;\">Agent de terrain</label>
                                                            <input type=\"text\" name=\"equipement_chantier\"   class=\"form-control\"  disabled value=\"";
        // line 450
        (((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.', 450, $this->source); })()), "getSecteur", [], "any", false, false, false, 450) && CoreExtension::getAttribute($this->env, $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.', 450, $this->source); })()), "getSecteur", [], "any", false, false, false, 450), "getAgentPrincipal", [], "any", false, false, false, 450))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $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.', 450, $this->source); })()), "getSecteur", [], "any", false, false, false, 450), "getAgentPrincipal", [], "any", false, false, false, 450), "getCodeNom", [], "any", false, false, false, 450), "html", null, true)) : (yield ""));
        yield "\" style=\"width: 183px;\" >
                                                            ";
        // line 452
        yield "                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class=\"d-flex bg-primary flex-column h-auto bloc_fiche_3 bloc_fiche_technique\" id=\"bloc_infos_tech\" >
                                            <div class=\"text-center py-1\" style=\"color:white\">Informations technique</div>
                                            <form id=\"form-change-infos-technique-";
        // line 459
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 459, $this->source); })()), "id", [], "any", false, false, false, 459), "html", null, true);
        yield "\" class=\"form form-ajax\" method=\"post\" action=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("equipement_maj_infos_technique", ["id" => 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.', 459, $this->source); })()), "id", [], "any", false, false, false, 459)]), "html", null, true);
        yield "\">
                                                <input type=\"hidden\" name=\"type_change\" form=\"form-change-infos-technique-";
        // line 460
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 460, $this->source); })()), "id", [], "any", false, false, false, 460), "html", null, true);
        yield "\" value=\"\">
                                                <input type=\"hidden\" name=\"data_value\" value=\"\" form=\"form-change-infos-technique-";
        // line 461
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 461, $this->source); })()), "id", [], "any", false, false, false, 461), "html", null, true);
        yield "\" >
                                            </form>
                                            <div  class=\"px-2 py-1 d-flex bg-white color-primary w-100 h-100 block-infos-container flex-column client-infostech\">
                                                <div class=\"client-infostech-infos d-flex flex-wrap mb-2\" style=\"gap:0.5rem;\" id=\"result-infos-tech\">
                                                    ";
        // line 465
        if ((isset($context["is_pac"]) || array_key_exists("is_pac", $context) ? $context["is_pac"] : (function () { throw new RuntimeError('Variable "is_pac" does not exist.', 465, $this->source); })())) {
            // line 466
            yield "                                                        ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/informations_technique/infostec_pac.html.twig");
            yield "
                                                    ";
        } else {
            // line 468
            yield "                                                        ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/informations_technique/infostec_chaudiere.html.twig");
            yield "
                                                    ";
        }
        // line 470
        yield "                                                </div>
                                                <div class=\"client-infostech-options position-relative\">
                                                    ";
        // line 472
        if (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.', 472, $this->source); })()), "getActif", [], "any", false, false, false, 472)) {
            // line 473
            yield "                                                        <div>Options
                                                            <i class=\"fa fa-info-circle popper color-grey-dark\" style=\"font-size:1.1rem;\"></i>
                                                            <div class=\"info-tooltip bg-primary\">L'ajout/suppression d'options seront pris en compte dans le tarif lors du renouvellement du contrat.</div>
                                                        </div>
                                                        <div class=\"d-flex \" style=\"position: absolute;top:inherit;right:0;\">
                                                            <i  class=\"fa fa-lg fa-plus bg-vert add_complement_adresse button-add me-0\" data-disable-on-view=\"\" data-target-grid=\"#equipement-option-grid-";
            // line 478
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 478, $this->source); })()), "id", [], "any", false, false, false, 478), "html", null, true);
            yield "\" style=\"position:relative;border-color: #14a085 !important;top:inherit;right:inherit\"></i>
                                                        </div>
                                                        <a class=\"position-absolute text-decoration-none\" style=\"right:0; top:54px;\" data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-disable-on-view=\"\" data-popup-id=\"popup-history-equipement-options\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Historique options\" data-popup-width=\"auto\" data-popup-offset=\"0 275\" >
                                                            <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\">
                                                                <i class=\"fa fa-lg fa-history custom-history color-primary\" style=\"position:relative;right:-2px;top:0px;\" ></i>
                                                            </div>
                                                        </a>
                                                        <div
                                                                style=\"padding-right: 38px;min-height:133px;max-height:133px;\"
                                                                class=\"grid grid-condensed table-inverse-color small-icon-grid\"
                                                                data-style=\"tab\"
                                                                id=\"equipement-option-grid-";
            // line 489
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 489, $this->source); })()), "id", [], "any", false, false, false, 489), "html", null, true);
            yield "\"
                                                                data-page=\"EquipementOption\"
                                                                data-columns=\"";
            // line 491
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(json_encode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipementOptionGrid"]) || array_key_exists("equipementOptionGrid", $context) ? $context["equipementOptionGrid"] : (function () { throw new RuntimeError('Variable "equipementOptionGrid" does not exist.', 491, $this->source); })()), "columns", [], "any", false, false, false, 491)), "html", null, true);
            yield "\"
                                                                data-getpath=\"";
            // line 492
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipementOptionGrid"]) || array_key_exists("equipementOptionGrid", $context) ? $context["equipementOptionGrid"] : (function () { throw new RuntimeError('Variable "equipementOptionGrid" does not exist.', 492, $this->source); })()), "get_path", [], "any", false, false, false, 492) . 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.', 492, $this->source); })()), "id", [], "any", false, false, false, 492)), "html", null, true);
            yield "\"
                                                                data-createpath=\"";
            // line 493
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipementOptionGrid"]) || array_key_exists("equipementOptionGrid", $context) ? $context["equipementOptionGrid"] : (function () { throw new RuntimeError('Variable "equipementOptionGrid" does not exist.', 493, $this->source); })()), "create_path", [], "any", false, false, false, 493) . 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.', 493, $this->source); })()), "id", [], "any", false, false, false, 493)), "html", null, true);
            yield "\"
                                                                data-deletepath=\"";
            // line 494
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipementOptionGrid"]) || array_key_exists("equipementOptionGrid", $context) ? $context["equipementOptionGrid"] : (function () { throw new RuntimeError('Variable "equipementOptionGrid" does not exist.', 494, $this->source); })()), "delete_path", [], "any", false, false, false, 494), "html", null, true);
            yield "\"
                                                                data-searchpanel='{\"visible\":false}'
                                                                data-pagination='{\"visible\":false}'
                                                                data-toolbarinvisible=\"true\"
                                                                data-gridClass=\"small-icon-grid\"
                                                                data-editing=\"";
            // line 499
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["equipementOptionGrid"] ?? null), "editing", [], "any", true, true, false, 499)) ? (json_encode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipementOptionGrid"]) || array_key_exists("equipementOptionGrid", $context) ? $context["equipementOptionGrid"] : (function () { throw new RuntimeError('Variable "equipementOptionGrid" does not exist.', 499, $this->source); })()), "editing", [], "any", false, false, false, 499))) : ((isset($context["defaultEditorGridOption"]) || array_key_exists("defaultEditorGridOption", $context) ? $context["defaultEditorGridOption"] : (function () { throw new RuntimeError('Variable "defaultEditorGridOption" does not exist.', 499, $this->source); })()))), "html", null, true);
            yield "\"
                                                        >
                                                        </div>
                                                    ";
        }
        // line 503
        yield "                                                </div>

                                                <div class=\"d-flex justify-content-center pt-2 client-infostech-actions\">
                                                    ";
        // line 506
        if (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.', 506, $this->source); })()), "getActif", [], "any", false, false, false, 506)) {
            // line 507
            yield "                                                        ";
            if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 507, $this->source); })()), "equipements", [], "any", false, false, false, 507)), 1))) {
                // line 508
                yield "                                                            ";
                if (Twig\Extension\CoreExtension::testEmpty(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.', 508, $this->source); })()), "equipementGroupes", [], "any", false, false, false, 508))) {
                    // line 509
                    yield "                                                                <a class=\"btn btn-md btn-block btn-outline-success me-1\" style=\"height: 31px;\" data-disable-on-view=\"\" data-popup-id=\"popup-lier-equipement\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Lier équipement\" data-popup-width=\"auto\"><i class=\"fa fa-link\"></i>Lier équipement</a>
                                                            ";
                }
                // line 511
                yield "                                                        ";
            }
            // line 512
            yield "                                                        <a class=\"btn btn-md btn-block btn-outline-success ms-auto\" style=\"height: 31px\"  data-poppup-container=\"body\" data-popup-id=\"popup-details-installation-";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 512, $this->source); })()), "id", [], "any", false, false, false, 512), "html", null, true);
            yield "\" data-dxpopup=\"\" data-popup-title=\"Détails installation\" data-popup-width=\"";
            yield (((isset($context["is_pac"]) || array_key_exists("is_pac", $context) ? $context["is_pac"] : (function () { throw new RuntimeError('Variable "is_pac" does not exist.', 512, $this->source); })())) ? ("1110") : ("1623"));
            yield "px\" data-popup-height=\"auto\">Détails installation</a>
                                                        ";
            // line 513
            if ( !Twig\Extension\CoreExtension::testEmpty(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.', 513, $this->source); })()), "equipementGroupes", [], "any", false, false, false, 513))) {
                // line 514
                yield "                                                            <a class=\"btn btn-md btn-block btn-outline-success d-flex align-items-center justify-content-center ms-2\" style=\"height: 31px;width:31px;\" data-disable-on-view=\"\" data-popup-id=\"popup-lier-equipement\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Lier équipement\" data-popup-width=\"auto\"><i class=\"fa fa-link color-vert me-0\" style=\"font-size: 0.9rem;vertical-align: middle\"></i></a>
                                                        ";
            }
            // line 516
            yield "                                                        <a class=\"btn btn-md btn-block color-bleu d-flex align-items-center justify-content-center ms-2\" style=\"height: 31px;width:31px;\" data-popup-id=\"popup-blocnote\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-position-at=\"center\" data-popup-title=\"Bloc note\"  data-popup-width=\"500px\" data-popup-height=\"auto\"><img width=\"31\"  height=\"31\" src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-blocnote.png"), "html", null, true);
            yield " \" style=\"vertical-align: sub\"></a>

";
            // line 519
            yield "                                                    ";
        }
        // line 520
        yield "                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class=\"border-top-orange\" style=\"margin:4px 0;\"></div>
                                    <div class=\"d-flex\">
                                        <div class=\"d-flex bg-primary flex-column h-auto bloc_fiche_3 bloc_fiche_technique\" style=\"width:308px;margin-right: 5px;\" >
                                            <div class=\"text-center py-1\" style=\"color:white\">Liste des interventions</div>
                                            <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex\" style=\"flex-direction: column\">
                                                ";
        // line 529
        if ((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.', 529, $this->source); })()), "interventions", [], "any", false, false, false, 529)), 1))) {
            // line 530
            yield "                                                    <table class=\"table table-responsive table-sm table-inverse-color-datagrid mb-0 \">
                                                        <thead>
                                                        <tr>
                                                            <th style=\"width: 80px !important;\">Date</th>
                                                            <th style=\"width:40px !important;\">Type</th>
                                                            <th style=\"width:30px !important;\"></th> ";
            // line 536
            yield "                                                            <th style=\"width: 140px !important;\">Agent</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        ";
            // line 540
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(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.', 540, $this->source); })()), "interventions", [], "any", false, false, false, 540), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (CoreExtension::getAttribute($this->env, $this->source, 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.', 540, $this->source); })()), "planning", [], "any", false, false, false, 540), "date", [], "any", false, false, false, 540) <=> CoreExtension::getAttribute($this->env, $this->source, 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.', 540, $this->source); })()), "planning", [], "any", false, false, false, 540), "date", [], "any", false, false, false, 540)); }));
            foreach ($context['_seq'] as $context["_key"] => $context["intervention"]) {
                // line 541
                yield "                                                            <tr class=\"intervention_client cursor-pointer\" data-id=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["intervention"], "id", [], "any", false, false, false, 541), "html", null, true);
                yield "\">
                                                                <td class=\"align-middle\">";
                // line 542
                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, $context["intervention"], "planning", [], "any", false, false, false, 542), "date", [], "any", false, false, false, 542), "d/m/Y"), "html", null, true);
                yield "</td>
                                                                <td class=\"text-center align-middle\">";
                // line 543
                ((CoreExtension::getAttribute($this->env, $this->source, $context["intervention"], "getTypePlanification", [], "any", false, false, false, 543)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["intervention"], "getTypePlanification", [], "any", false, false, false, 543), "codeCourt", [], "any", false, false, false, 543), "html", null, true)) : (yield ""));
                yield "</td>
                                                                <td class=\"text-center align-middle\">
                                                                    <div class=\"d-flex justify-content-center align-items-center w-100 h-100\">
                                                                        ";
                // line 546
                if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["intervention"], "interventionAnomalies", [], "any", false, false, false, 546)), 0))) {
                    // line 547
                    yield "                                                                            <img src=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/triangle-anomalie.png"), "html", null, true);
                    yield "\"  width=\"12\" height=\"12\" style=\"height:12px;vertical-align:middle;\">
                                                                        ";
                }
                // line 549
                yield "                                                                        ";
                if (CoreExtension::getAttribute($this->env, $this->source, $context["intervention"], "getObservations", [], "any", false, false, false, 549)) {
                    // line 550
                    yield "                                                                            <img src=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/loupe-observation.png"), "html", null, true);
                    yield "\" width=\"12\" height=\"12\" style=\"vertical-align:middle;\">
                                                                        ";
                }
                // line 552
                yield "                                                                    </div>
                                                                </td>
                                                                <td>";
                // line 554
                (((CoreExtension::getAttribute($this->env, $this->source, $context["intervention"], "planning", [], "any", false, false, false, 554) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["intervention"], "planning", [], "any", false, false, false, 554), "utilisateurAgent", [], "any", false, false, false, 554))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["intervention"], "planning", [], "any", false, false, false, 554), "utilisateurAgent", [], "any", false, false, false, 554), "getCodeNom", [], "any", false, false, false, 554), "html", null, true)) : (yield ""));
                yield "</td>
                                                            </tr>
                                                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['intervention'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 557
            yield "                                                        </tbody>
                                                    </table>
                                                ";
        } else {
            // line 560
            yield "                                                    <div class=\"text-center\">Aucune intervention</div>
                                                ";
        }
        // line 562
        yield "                                            </div>
                                        </div>
                                        <div class=\"d-flex bg-primary flex-column h-auto bloc_fiche_3 bloc_fiche_technique\" style=\"width:591px;margin-right: 5px\" >
                                            <div class=\"text-center py-1\" style=\"color:white\">Intervention</div>
                                            <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex\" style=\"flex-direction: column\">
                                                <div id=\"result_intervention_client\">

                                                </div>
                                            </div>
                                        </div>
                                        <div class=\"d-flex bg-primary flex-column h-auto bloc_fiche_3 bloc_fiche_technique\" style=\"width:734px;\" >
                                            <div class=\"text-center py-1\" style=\"color:white\">Facturation</div>
                                            <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex\" style=\"flex-direction: column\">
                                                <div id=\"result_intervention_client_facturation\">

                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div style=\"width:185px;margin-left:4px;margin-right: 1px\">
                            <div class=\"d-flex  flex-column h-auto bloc_fiche_pref position-fixed\" style=\"width:185px\">
                                <div class=\"text-center py-1 bg-primary\" style=\"color:white\">Préférences de planification</div>
";
        // line 588
        yield "                                    <div class=\"px-1 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex flex-column \">
                                        ";
        // line 589
        if (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.', 589, $this->source); })()), "getEquipementPreferencesPlanification", [], "any", false, false, false, 589)) {
            // line 590
            yield "                                            ";
            $context["planification"] = 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.', 590, $this->source); })()), "getEquipementPreferencesPlanification", [], "any", false, false, false, 590);
            // line 591
            yield "                                            ";
            if ((((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 591, $this->source); })()), "getDateEntreDebut", [], "any", false, false, false, 591) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 591, $this->source); })()), "getDateEntreFin", [], "any", false, false, false, 591)) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 591, $this->source); })()), "getDateAvantLe", [], "any", false, false, false, 591)) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 591, $this->source); })()), "getDateAPartirDu", [], "any", false, false, false, 591))) {
                // line 592
                yield "                                                <div class=\"title_preferences_planifications bg-grey-light fw-600 color-orange px-2\">Dates</div>
                                                ";
                // line 593
                if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 593, $this->source); })()), "getDateEntreDebut", [], "any", false, false, false, 593) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 593, $this->source); })()), "getDateEntreFin", [], "any", false, false, false, 593))) {
                    // line 594
                    yield "                                                <div class=\"d-flex my-2 flex-column\" style=\"gap:0.5rem\">
                                                    ";
                    // line 595
                    if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 595, $this->source); })()), "getDateEntreDebut", [], "any", false, false, false, 595)) {
                        // line 596
                        yield "                                                        <div class=\"d-flex ps-2 align-items-center\">
                                                            <div class=\"me-2\">Entre le</div>
                                                            <input type=\"text\" disabled  style=\"width:91px\"   value=\"";
                        // line 598
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 598, $this->source); })()), "getInclusionRecurrente", [], "any", false, false, false, 598)) ? ($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 598, $this->source); })()), "getDateEntreDebut", [], "any", false, false, false, 598), "medium", "medium", "dd MMMM", null, "gregorian", "fr")) : ($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 598, $this->source); })()), "getDateEntreDebut", [], "any", false, false, false, 598), "d/m/Y"))), "html", null, true);
                        yield "\"   class=\"form-control ps-1\" >
                                                        </div>
                                                    ";
                    }
                    // line 601
                    yield "                                                    ";
                    if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 601, $this->source); })()), "getDateEntreFin", [], "any", false, false, false, 601)) {
                        // line 602
                        yield "                                                        <div class=\"d-flex ps-2 align-items-center\">
                                                            <div style=\"margin-right: 1.7rem;\">Et le</div>
                                                            <input type=\"text\" disabled  style=\"width:91px\"   value=\"";
                        // line 604
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 604, $this->source); })()), "getInclusionRecurrente", [], "any", false, false, false, 604)) ? ($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 604, $this->source); })()), "getDateEntreFin", [], "any", false, false, false, 604), "medium", "medium", "dd MMMM", null, "gregorian", "fr")) : ($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 604, $this->source); })()), "getDateEntreFin", [], "any", false, false, false, 604), "d/m/Y"))), "html", null, true);
                        yield "\"   class=\"form-control ps-1\" >
                                                        </div>
                                                    ";
                    }
                    // line 607
                    yield "                                                </div>
                                                ";
                }
                // line 609
                yield "                                            ";
            }
            // line 610
            yield "                                            ";
            if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 610, $this->source); })()), "getUniquementScolaire", [], "any", false, false, false, 610)) {
                // line 611
                yield "                                                <div class=\"d-flex mt-2 mb-1 flex-column justify-content-center align-items-center\" style=\"gap:0.5rem\">
                                                    <div class=\"color-vert fw-600 text-center\">Pendant les vacances scolaires uniquement</div>
                                                </div>
                                            ";
            }
            // line 615
            yield "                                                ";
            if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 615, $this->source); })()), "getDateAvantLe", [], "any", false, false, false, 615) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 615, $this->source); })()), "getDateAPartirDu", [], "any", false, false, false, 615))) {
                // line 616
                yield "                                                <div class=\"d-flex my-2 flex-column\" style=\"gap:0.5rem\">
                                                    ";
                // line 617
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 617, $this->source); })()), "getDateAvantLe", [], "any", false, false, false, 617)) {
                    // line 618
                    yield "                                                        <div class=\"d-flex ps-2 align-items-center\">
                                                            <div class=\"me-2\">Avant le</div>
                                                            <input type=\"text\" disabled  style=\"width:91px\"   value=\"";
                    // line 620
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 620, $this->source); })()), "getAvantRecurrente", [], "any", false, false, false, 620)) ? ($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 620, $this->source); })()), "getDateAvantLe", [], "any", false, false, false, 620), "medium", "medium", "dd MMMM", null, "gregorian", "fr")) : ($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 620, $this->source); })()), "getDateAvantLe", [], "any", false, false, false, 620), "d/m/Y"))), "html", null, true);
                    yield "\"   class=\"form-control ps-1\" >
                                                        </div>
                                                        ";
                }
                // line 623
                yield "                                                    ";
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 623, $this->source); })()), "getDateAPartirDu", [], "any", false, false, false, 623)) {
                    // line 624
                    yield "                                                        <div class=\"d-flex ps-2 align-items-center\">
                                                            <div class=\"me-2\">Après le</div>
                                                            <input type=\"text\" disabled  style=\"width:91px\"   value=\"";
                    // line 626
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 626, $this->source); })()), "getApresRecurrente", [], "any", false, false, false, 626)) ? ($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 626, $this->source); })()), "getDateAPartirDu", [], "any", false, false, false, 626), "medium", "medium", "dd MMMM", null, "gregorian", "fr")) : ($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 626, $this->source); })()), "getDateAPartirDu", [], "any", false, false, false, 626), "d/m/Y"))), "html", null, true);
                    yield "\"   class=\"form-control  ps-1\" >
                                                        </div>
                                                    ";
                }
                // line 629
                yield "                                                </div>
                                                ";
            }
            // line 631
            yield "                                            ";
            if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 631, $this->source); })()), "getPlanifierPreference", [], "any", false, false, false, 631) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 631, $this->source); })()), "getPlanifierJour", [], "any", false, false, false, 631))) {
                // line 632
                yield "                                                <div class=\"title_preferences_planifications bg-grey-light fw-600 color-orange px-2\">Jour de planification</div>
                                                <div class=\"d-flex my-2 flex-column justify-content-center align-items-center\">
                                                    ";
                // line 634
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 634, $this->source); })()), "getPlanifierPreference", [], "any", false, false, false, 634)) {
                    // line 635
                    yield "                                                        <div style=\"font-size: 14px;\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 635, $this->source); })()), "getPlanifierPreference", [], "any", false, false, false, 635)), "html", null, true);
                    yield "</div>
                                                    ";
                }
                // line 637
                yield "                                                    ";
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 637, $this->source); })()), "getPlanifierJour", [], "any", false, false, false, 637)) {
                    // line 638
                    yield "                                                        ";
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::split($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 638, $this->source); })()), "getPlanifierJour", [], "any", false, false, false, 638), ","));
                    foreach ($context['_seq'] as $context["_key"] => $context["jour"]) {
                        // line 639
                        yield "                                                            <div class=\"fw-600\">";
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["jour"], "html", null, true);
                        yield "</div>
                                                        ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['jour'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 641
                    yield "                                                    ";
                }
                // line 642
                yield "                                                </div>
                                            ";
            }
            // line 644
            yield "                                            ";
            if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 644, $this->source); })()), "getPlanifierPartieJournee", [], "any", false, false, false, 644) && (0 !== CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 644, $this->source); })()), "getPlanifierPartieJournee", [], "any", false, false, false, 644), "Indifférent"))) || (0 !== CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source,             // line 645
(isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 645, $this->source); })()), "getHorairePassage", [], "any", false, false, false, 645), "")))) {
                // line 647
                yield "                                                <div class=\"title_preferences_planifications bg-grey-light fw-600 color-orange px-2\">Moment</div>
                                                <div class=\"d-flex my-2 flex-column justify-content-center align-items-center\">
                                                    ";
                // line 649
                if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 649, $this->source); })()), "getPlanifierPartieJournee", [], "any", false, false, false, 649) && (0 !== CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 649, $this->source); })()), "getPlanifierPartieJournee", [], "any", false, false, false, 649), "Indifférent")))) {
                    // line 650
                    yield "                                                        <div style=\"font-size: 14px;\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 650, $this->source); })()), "getPlanifierPartieJournee", [], "any", false, false, false, 650)), "html", null, true);
                    yield "</div>
                                                    ";
                }
                // line 652
                yield "                                                    ";
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 652, $this->source); })()), "getPremiereVisite", [], "any", false, false, false, 652)) {
                    // line 653
                    yield "                                                        <div class=\"color-vert fw-600\">Première visite</div>
                                                    ";
                }
                // line 655
                yield "                                                    ";
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 655, $this->source); })()), "getHorairePassage", [], "any", false, false, false, 655)) {
                    // line 656
                    yield "                                                        <div class=\"d-flex ps-2 align-items-center\">
                                                            <div class=\"me-2\">Horaire</div>
                                                            <input type=\"text\" disabled  style=\"width:100px\"   value=\"";
                    // line 658
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 658, $this->source); })()), "getHorairePassage", [], "any", false, false, false, 658), "getLisibleHoraires", [], "any", false, false, false, 658), "html", null, true);
                    yield "\"   class=\"form-control ps-1 pe-0\" >
                                                        </div>
                                                    ";
                }
                // line 661
                yield "                                                </div>
                                            ";
            }
            // line 663
            yield "                                            ";
            if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 663, $this->source); })()), "getPlanifierAgent", [], "any", false, false, false, 663) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 663, $this->source); })()), "getEnvoyer2Agents", [], "any", false, false, false, 663)) || CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 663, $this->source); })()), "getEnvoyerRts", [], "any", false, false, false, 663))) {
                // line 664
                yield "                                                <div class=\"title_preferences_planifications bg-grey-light fw-600 color-orange px-2\">Agent</div>
                                                <div class=\"d-flex my-2 flex-column justify-content-center align-items-center\">
                                                    ";
                // line 666
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 666, $this->source); })()), "getPlanifierAgent", [], "any", false, false, false, 666)) {
                    // line 667
                    yield "                                                        <div style=\"font-size: 14px;\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 667, $this->source); })()), "getPlanifierAgent", [], "any", false, false, false, 667)), "html", null, true);
                    yield "</div>
                                                    ";
                }
                // line 669
                yield "                                                    ";
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 669, $this->source); })()), "getAgent", [], "any", false, false, false, 669)) {
                    // line 670
                    yield "                                                        <div class=\"fw-600\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 670, $this->source); })()), "getAgent", [], "any", false, false, false, 670), "html", null, true);
                    yield "</div>
                                                    ";
                }
                // line 672
                yield "                                                    ";
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 672, $this->source); })()), "getEnvoyer2Agents", [], "any", false, false, false, 672)) {
                    // line 673
                    yield "                                                        <div class=\"color-vert fw-600\">Envoyer 2 agents</div>
                                                    ";
                }
                // line 675
                yield "                                                    ";
                if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["planification"]) || array_key_exists("planification", $context) ? $context["planification"] : (function () { throw new RuntimeError('Variable "planification" does not exist.', 675, $this->source); })()), "getEnvoyerRts", [], "any", false, false, false, 675)) {
                    // line 676
                    yield "                                                        <div class=\"color-vert fw-600\">Envoyer le RTS</div>
                                                    ";
                }
                // line 678
                yield "                                                </div>
                                            ";
            }
            // line 680
            yield "                                        ";
        } else {
            // line 681
            yield "                                            <div class=\"text-center color-grey-dark\">
                                                Aucune préference de planification définie
                                            </div>
                                        ";
        }
        // line 685
        yield "                                        <div class=\"my-3 bg-grey-dark\" style=\"padding:1px;\"></div>
                                        ";
        // line 686
        if (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.', 686, $this->source); })()), "getActif", [], "any", false, false, false, 686)) {
            // line 687
            yield "                                        <div class=\"d-flex justify-content-center\">
                                            <a  class=\"btn btn-md btn-block btn-outline-success me-2\"  data-disable-on-view=\"\" data-poppup-container=\"body\" data-popup-id=\"popup_pref_planification_";
            // line 688
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 688, $this->source); })()), "id", [], "any", false, false, false, 688), "html", null, true);
            yield "\" data-dxpopup=\"\" data-popup-title=\"Préférences de planification\" data-popup-width=\"auto\" style=\"width:85px\" type=\"button\">Définir</a>
                                            <button class=\"btn btn-md btn-block btn-outline-success\" data-disable-on-view=\"\" data-poppup-container=\"body\" data-popup-id=\"popup-preference-plannification\" data-dxpopup=\"\"  data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-popup-title=\"Gestion des préférences de planification\" data-popup-width=\"auto\">
                                                <i class=\"fa fa-clone\" aria-hidden=\"true\"></i>
                                            </button>
                                        </div>
                                        <div class=\"mt-3 bg-orange\" style=\"padding:1px;\"></div>
                                        ";
        }
        // line 700
        yield "                                        ";
        if (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.', 700, $this->source); })()), "getActif", [], "any", false, false, false, 700)) {
            // line 701
            yield "                                        <div class=\"d-flex justify-content-center mt-3 mb-2\">
                                            <button id=\"\" class=\"btn btn-md btn-block bg-outline-bleu\" style=\"width:123px;\" ";
            // line 702
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 702, $this->source); })()), "html", null, true);
            yield "><i class=\"fa fa-calendar-alt me-2 \" ></i>Planifier</button>
                                        </div>
                                        ";
        }
        // line 705
        yield "                                    </div>
                                    ";
        // line 706
        if (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.', 706, $this->source); })()), "getActif", [], "any", false, false, false, 706)) {
            // line 707
            yield "                                    <div class=\"px-2 py-2 mt-2 ";
            yield (((isset($context["my_lock"]) || array_key_exists("my_lock", $context) ? $context["my_lock"] : (function () { throw new RuntimeError('Variable "my_lock" does not exist.', 707, $this->source); })())) ? ("bg-white color-white") : ("bg-orange color-primary"));
            yield " w-100 h-100 block-infos-container d-flex flex-column align-items-center \">
                                        <div id=\"form-actions-row\" class=\"d-flex flex-column justify-content-center\">
                                            ";
            // line 709
            if ((isset($context["my_lock"]) || array_key_exists("my_lock", $context) ? $context["my_lock"] : (function () { throw new RuntimeError('Variable "my_lock" does not exist.', 709, $this->source); })())) {
                // line 710
                yield "                                                <button id=\"btn-save-client\" class=\"btn btn-md btn-block btn-outline-success d-flex\" type=\"button\" form=\"form_client_update\" style=\"height:48px;\" >
                                                    <i class=\"fa fa-save me-3 align-self-center fa-lg\"></i>
                                                    <span style=\"text-align: left\">Enregistrer et continuer l'édition</span>
                                                </button>
                                                <button id=\"btn-save-client\" class=\"btn btn-md btn-block btn-outline-danger mt-2 d-flex\" onclick=\"\$('#process_update').val('close');\" type=\"button\" form=\"form_client_update\" style=\"height:48px;\" >
                                                    <i class=\"fa fa-save me-3 align-self-center fa-lg\"></i>
                                                    <span style=\"text-align: left\">Enregistrer et fermer la fiche</span>
                                                </button>
                                            ";
            } elseif (            // line 718
array_key_exists("lock", $context)) {
                // line 719
                yield "                                                <div class=\"text-center  color-white\" style=\"font-size: 12px;\">
                                                    <div class=\"pt-1\">Fiche client en lecture seule</div>
                                                    <div>Modification par ";
                // line 721
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lock"]) || array_key_exists("lock", $context) ? $context["lock"] : (function () { throw new RuntimeError('Variable "lock" does not exist.', 721, $this->source); })()), "getUtilisateur", [], "any", false, false, false, 721), "html", null, true);
                yield "</div>
                                                    <div class=\"pb-1\">";
                // line 722
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["lock"]) || array_key_exists("lock", $context) ? $context["lock"] : (function () { throw new RuntimeError('Variable "lock" does not exist.', 722, $this->source); })()), "getDateDebut", [], "any", false, false, false, 722), "d/m/Y H:i"), "html", null, true);
                yield "</div>
                                                </div>
                                            ";
            }
            // line 725
            yield "                                        </div>
                                    </div>
                                    ";
        }
        // line 728
        yield "                                </div>
                        </div>
                    </div>
                </div>
        </div>
    </div>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 735
    public function block_popup($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(), "block", "popup"));

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

        // line 737
        yield "        ";
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_pref_planification.html.twig");
        yield "
        ";
        // line 738
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_list_equipements.html.twig");
        yield "
        ";
        // line 739
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/localisation/_popup_complement_adresse.html.twig");
        yield "
        ";
        // line 740
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/contrat/_popup_resilier_contrat.html.twig");
        yield "
        ";
        // line 741
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_details_installation.html.twig");
        yield "
        ";
        // line 742
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/contrat/_popup_history_contrats.html.twig");
        yield "
        ";
        // line 743
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/informations_technique/_popup_history_equipement_local.html.twig");
        yield "
        ";
        // line 744
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/informations_technique/_popup_history_equipement_options.html.twig");
        yield "
        ";
        // line 745
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_history_equipement_utilisateur.html.twig");
        yield "
        ";
        // line 746
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/contrat/_popup_groupe_contrat.html.twig");
        yield "
        ";
        // line 747
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_gestion_preferences_planification.html.twig");
        yield "
        ";
        // line 748
        if (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.', 748, $this->source); })()), "getLastPrivilege", [], "any", false, false, false, 748)) {
            // line 749
            yield "            ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/contrat/_popup_privileges.html.twig");
            yield "
        ";
        }
        // line 751
        yield "        ";
        if (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.', 751, $this->source); })()), "getContratAvenir", [], "any", false, false, false, 751)) {
            // line 752
            yield "            ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/contrat/_popup_contrat_a_venir.html.twig");
            yield "
        ";
        }
        // line 754
        yield "        ";
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/contrat/_popup_simulateur_tarifs.html.twig");
        yield "
        ";
        // line 755
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_equipement_inactif.html.twig");
        yield "
        ";
        // line 756
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/informations_technique/_popup_bloc_note.html.twig");
        yield "
        ";
        // line 757
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_lock_expired.html.twig");
        yield "
        ";
        // line 758
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_add_utilisateur.html.twig");
        yield "
        ";
        // line 759
        if ((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.', 759, $this->source); })()), "clientUtilisateur", [], "any", false, false, false, 759) && (0 !== CoreExtension::compare(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.', 759, $this->source); })()), "clientUtilisateur", [], "any", false, false, false, 759), 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.', 759, $this->source); })()), "clientSouscripteur", [], "any", false, false, false, 759))))) {
            // line 760
            yield "            ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_utilisateur_to_souscripteur.html.twig");
            yield "
        ";
        }
        // line 763
        yield "    ";
        if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 763, $this->source); })()), "equipements", [], "any", false, false, false, 763)), 1))) {
            // line 764
            yield "        ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_lier_equipement.html.twig");
            yield "
    ";
        }
        // line 766
        yield "    ";
        if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 766, $this->source); })()), "porteOuvertes", [], "any", false, false, false, 766))) {
            // line 767
            yield "        ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/contrat/_popup_porte_ouvertes.html.twig");
            yield "
    ";
        }
        // line 769
        yield "    ";
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_add_equipement.html.twig");
        yield "
    ";
        // line 770
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_changement_souscripteur.html.twig");
        yield "
    ";
        // line 771
        if ((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.', 771, $this->source); })()), "getClientSouscripteur", [], "any", false, false, false, 771) && CoreExtension::getAttribute($this->env, $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.', 771, $this->source); })()), "getClientSouscripteur", [], "any", false, false, false, 771), "getClientTutelle", [], "any", false, false, false, 771))) {
            // line 772
            yield "        ";
            $context["tuteur"] = CoreExtension::getAttribute($this->env, $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.', 772, $this->source); })()), "getClientSouscripteur", [], "any", false, false, false, 772), "getClientTutelle", [], "any", false, false, false, 772);
            // line 773
            yield "        ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_tuteur.html.twig");
            yield "
    ";
        }
        // line 775
        yield "    ";
        if ((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.', 775, $this->source); })()), "getClientUtilisateur", [], "any", false, false, false, 775) && CoreExtension::getAttribute($this->env, $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.', 775, $this->source); })()), "getClientUtilisateur", [], "any", false, false, false, 775), "getClientTutelle", [], "any", false, false, false, 775))) {
            // line 776
            yield "        ";
            $context["tuteur"] = CoreExtension::getAttribute($this->env, $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.', 776, $this->source); })()), "getClientUtilisateur", [], "any", false, false, false, 776), "getClientTutelle", [], "any", false, false, false, 776);
            // line 777
            yield "        ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_tuteur.html.twig");
            yield "
    ";
        }
        // line 779
        yield "    ";
        if ((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.', 779, $this->source); })()), "getClientSouscripteur", [], "any", false, false, false, 779) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $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.', 779, $this->source); })()), "getClientSouscripteur", [], "any", false, false, false, 779), "typeClient", [], "any", false, false, false, 779), "id", [], "any", false, false, false, 779), 2)))) {
            // line 780
            yield "        ";
            $context["pro"] = 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.', 780, $this->source); })()), "getClientSouscripteur", [], "any", false, false, false, 780);
            // line 781
            yield "        ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_impot.html.twig");
            yield "
    ";
        }
        // line 783
        yield "    ";
        if ((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.', 783, $this->source); })()), "getClientUtilisateur", [], "any", false, false, false, 783) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $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.', 783, $this->source); })()), "getClientUtilisateur", [], "any", false, false, false, 783), "typeClient", [], "any", false, false, false, 783), "id", [], "any", false, false, false, 783), 2)))) {
            // line 784
            yield "        ";
            $context["pro"] = 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.', 784, $this->source); })()), "getClientUtilisateur", [], "any", false, false, false, 784);
            // line 785
            yield "        ";
            yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/_popup_impot.html.twig");
            yield "
    ";
        }
        // line 787
        yield "    <div id=\"popup-detail-client\" style=\"display:none;\"></div>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 789
    public function block_javascripts($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(), "block", "javascripts"));

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

        // line 790
        yield "     <script>
         var page = '";
        // line 791
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("page", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 791, $this->source); })()), null)) : (null)), "html", null, true);
        yield "';

     </script>
     ";
        // line 794
        yield from $this->yieldParentBlock("javascripts", $context, $blocks);
        yield "
     ";
        // line 795
        yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("client");
        yield "
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  1926 => 795,  1922 => 794,  1916 => 791,  1913 => 790,  1903 => 789,  1891 => 787,  1885 => 785,  1882 => 784,  1879 => 783,  1873 => 781,  1870 => 780,  1867 => 779,  1861 => 777,  1858 => 776,  1855 => 775,  1849 => 773,  1846 => 772,  1844 => 771,  1840 => 770,  1835 => 769,  1829 => 767,  1826 => 766,  1820 => 764,  1817 => 763,  1811 => 760,  1809 => 759,  1805 => 758,  1801 => 757,  1797 => 756,  1793 => 755,  1788 => 754,  1782 => 752,  1779 => 751,  1773 => 749,  1771 => 748,  1767 => 747,  1763 => 746,  1759 => 745,  1755 => 744,  1751 => 743,  1747 => 742,  1743 => 741,  1739 => 740,  1735 => 739,  1731 => 738,  1726 => 737,  1716 => 735,  1699 => 728,  1694 => 725,  1688 => 722,  1684 => 721,  1680 => 719,  1678 => 718,  1668 => 710,  1666 => 709,  1660 => 707,  1658 => 706,  1655 => 705,  1649 => 702,  1646 => 701,  1643 => 700,  1633 => 688,  1630 => 687,  1628 => 686,  1625 => 685,  1619 => 681,  1616 => 680,  1612 => 678,  1608 => 676,  1605 => 675,  1601 => 673,  1598 => 672,  1592 => 670,  1589 => 669,  1583 => 667,  1581 => 666,  1577 => 664,  1574 => 663,  1570 => 661,  1564 => 658,  1560 => 656,  1557 => 655,  1553 => 653,  1550 => 652,  1544 => 650,  1542 => 649,  1538 => 647,  1536 => 645,  1534 => 644,  1530 => 642,  1527 => 641,  1518 => 639,  1513 => 638,  1510 => 637,  1504 => 635,  1502 => 634,  1498 => 632,  1495 => 631,  1491 => 629,  1485 => 626,  1481 => 624,  1478 => 623,  1472 => 620,  1468 => 618,  1466 => 617,  1463 => 616,  1460 => 615,  1454 => 611,  1451 => 610,  1448 => 609,  1444 => 607,  1438 => 604,  1434 => 602,  1431 => 601,  1425 => 598,  1421 => 596,  1419 => 595,  1416 => 594,  1414 => 593,  1411 => 592,  1408 => 591,  1405 => 590,  1403 => 589,  1400 => 588,  1373 => 562,  1369 => 560,  1364 => 557,  1355 => 554,  1351 => 552,  1345 => 550,  1342 => 549,  1336 => 547,  1334 => 546,  1328 => 543,  1324 => 542,  1319 => 541,  1315 => 540,  1309 => 536,  1302 => 530,  1300 => 529,  1289 => 520,  1286 => 519,  1280 => 516,  1276 => 514,  1274 => 513,  1267 => 512,  1264 => 511,  1260 => 509,  1257 => 508,  1254 => 507,  1252 => 506,  1247 => 503,  1240 => 499,  1232 => 494,  1228 => 493,  1224 => 492,  1220 => 491,  1215 => 489,  1201 => 478,  1194 => 473,  1192 => 472,  1188 => 470,  1182 => 468,  1176 => 466,  1174 => 465,  1167 => 461,  1163 => 460,  1157 => 459,  1148 => 452,  1144 => 450,  1137 => 446,  1130 => 442,  1123 => 438,  1113 => 431,  1106 => 428,  1100 => 426,  1094 => 424,  1092 => 423,  1089 => 422,  1086 => 421,  1083 => 420,  1081 => 419,  1079 => 418,  1073 => 413,  1070 => 412,  1067 => 411,  1061 => 408,  1056 => 406,  1053 => 405,  1051 => 404,  1047 => 402,  1041 => 399,  1036 => 398,  1033 => 397,  1027 => 394,  1022 => 393,  1019 => 392,  1017 => 391,  1012 => 390,  1009 => 389,  1007 => 388,  1004 => 387,  1001 => 386,  993 => 377,  990 => 376,  987 => 375,  985 => 374,  974 => 365,  972 => 364,  970 => 363,  968 => 362,  966 => 361,  964 => 360,  962 => 359,  960 => 358,  958 => 357,  956 => 356,  952 => 354,  948 => 353,  935 => 343,  926 => 337,  917 => 331,  908 => 325,  899 => 319,  894 => 317,  881 => 314,  878 => 313,  876 => 312,  873 => 311,  870 => 310,  867 => 309,  864 => 308,  862 => 307,  859 => 306,  857 => 305,  851 => 301,  835 => 274,  829 => 272,  826 => 271,  820 => 269,  817 => 268,  811 => 265,  807 => 264,  804 => 263,  801 => 262,  795 => 260,  792 => 259,  786 => 256,  782 => 255,  779 => 254,  776 => 253,  770 => 251,  767 => 250,  761 => 248,  759 => 247,  752 => 244,  746 => 242,  744 => 241,  740 => 240,  732 => 235,  727 => 233,  721 => 230,  717 => 229,  712 => 226,  706 => 223,  701 => 222,  698 => 221,  694 => 219,  688 => 217,  686 => 216,  675 => 214,  664 => 206,  657 => 202,  653 => 201,  637 => 187,  629 => 185,  627 => 184,  624 => 183,  618 => 180,  613 => 179,  610 => 178,  604 => 175,  599 => 174,  596 => 173,  594 => 172,  591 => 171,  587 => 169,  583 => 167,  581 => 166,  578 => 165,  576 => 164,  564 => 156,  561 => 155,  558 => 154,  555 => 153,  552 => 152,  549 => 151,  546 => 150,  543 => 149,  540 => 148,  538 => 147,  533 => 145,  527 => 141,  524 => 139,  506 => 136,  503 => 135,  500 => 134,  497 => 133,  494 => 132,  491 => 131,  488 => 130,  485 => 129,  482 => 128,  479 => 127,  476 => 126,  473 => 125,  470 => 124,  467 => 123,  464 => 122,  461 => 121,  459 => 120,  456 => 119,  439 => 118,  435 => 117,  431 => 116,  413 => 105,  403 => 98,  391 => 93,  382 => 89,  376 => 85,  363 => 83,  360 => 82,  356 => 81,  352 => 80,  338 => 73,  332 => 69,  319 => 67,  316 => 66,  312 => 65,  305 => 63,  299 => 59,  286 => 57,  283 => 56,  279 => 55,  275 => 54,  264 => 46,  258 => 42,  251 => 37,  246 => 35,  242 => 34,  233 => 33,  230 => 32,  227 => 31,  224 => 30,  214 => 29,  190 => 8,  179 => 0,  169 => 6,  158 => 0,  148 => 5,  128 => 4,  117 => 0,  107 => 3,  96 => 1,  94 => 28,  92 => 27,  90 => 26,  88 => 25,  85 => 23,  83 => 22,  81 => 21,  73 => 17,  71 => 16,  67 => 15,  64 => 13,  62 => 12,  60 => 11,  58 => 10,  56 => 9,  43 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'admin/layout.html.twig' %}

{% block body_id 'admin_post_index' %}
{% block style_container %}padding:0;{% endblock %}
{% block body_class ' bg-white' %}
{% block header_style ' margin-bottom:0 !important;' %}

{% block title %} Client :  {{ client.nom }}  - N°{{ client.getFormattedNumeroClient }} {% endblock %}
{% set id_equipement = app.request.query.get('id_equipement')|default('null')  %}
{% set equipement = null %}
{%  if id_equipement is null or id_equipement==\"null\" %}
    {% set equipement = client.getEquipementsActif[0] is defined ? client.getEquipementsActif[0] : client.getEquipementsInactif[0] %}
    {% set id_equipement = ((id_equipement is null or id_equipement==\"null\")) ? equipement.id : id_equipement %}
{%  else %}
    {% for equipementc in client.getEquipements %}
        {% if equipementc.id == id_equipement %}
            {% set equipement = equipementc %}
        {% endif %}
    {% endfor %}
{% endif %}
{%  if equipement is null %}
   {% set equipement = client.getEquipementsActif[0] is defined ? client.getEquipementsActif[0] : client.getEquipementsInactif[0] %}
   {% set id_equipement = equipement.id %}
{%  endif %}
{% set is_pac = equipement.equipementFamille and  equipement.equipementFamille.id == 10 %}
{% set contrat = equipement and equipement.getLastContrat ? equipement.getLastContrat : null %}
 {% set disabled =  (equipement.getActif == false) ? 'disabled' : '' %}
 {% set affichage = 'client' %}
{% block main %}
    {% set my_lock = (lock.utilisateur == app.user and lock.getIdEntite == equipement.id) ? true : false %}
    {% set type_affichage = my_lock ? 'edit' : 'view'  %}
    {% set defaultEditorGridOption = '{\"mode\":\"row\",\"allowUpdating\":false,\"allowDeleting\":false,\"allowAdding\":false}' %}
    <form id=\"form_client_update\" method=\"post\" data-affichage=\"{{ type_affichage }}\" action=\"{{ path('equipement_maj') }}\" data-turbo=\"true\" data-changed=\"false\"  style=\"height: {{ equipement.adresse and equipement.adresse.getEtagePorteComplement ? '131.9px' : '113.5px' }}\">
        <input type=\"hidden\" name=\"id_equipement_update\" id=\"id_equipement_update\" value=\"{{ equipement.id }}\" form=\"form_client_update\">
        <input type=\"hidden\" name=\"id_client\" value=\"{{ client.id }}\" form=\"form_client_update\">
        <input type=\"hidden\" name=\"process\" id=\"process_update\" value=\"\" form=\"form_client_update\">
        <input type=\"hidden\" id=\"lock-id\" value=\"{{ lock.utilisateur == app.user ? lock.id : '' }}\">
        <div class=\"d-flex position-fixed bg-white\" style=\"z-index: 1000; border-top:5px solid white;\">
            <div class=\"d-flex bg-primary position-relative  pt-2 ps-2 ms-1 pe-2  \" style=\"flex-grow:1;margin-right: 7px\">
                <div style=\"margin-right:2.3rem;  width:156px\">
                    {#                <div  class=\"mb-2 title-700\">Souscripteur {{ client.getArraySites ? '(' ~ client.getArraySites|join(',') ~ ')' }}</div>#}
                    <div  class=\"mb-2 title-700\">Souscripteur</div>
                    <div class=\"d-flex align-items-center\">
                        <label class=\" white me-2 col-form-label control-label\" for=\"agent_site\">N°client</label>
                        <span class=\"color-vert-link fw-600\" style=\"font-size:14px;margin-left: auto\">
                            {{ client.getFormattedNumeroClient }}
                        </span>
                    </div>
                </div>
                <div style=\"margin-right:2.3rem;width: 232px;\">
                        <div class=\"d-flex flex-column justify-content-end pb-2\">
                            <div class=\"input-group form-group\">
                                <label class=\"white me-2 col-form-label control-label\" style=\"width: 55px;\">Type</label>
                                <select name=\"type_client\" style=\"width: 118px !important;flex: 0 1 auto;\" class=\"form-control\" id=\"type_client\" {{ client.typeClient ? 'disabled' : '' }}>
                                    {% for type in typesClient %}
                                        {% set selected =  (client.typeClient and client.typeClient.id == type.id) ? 'selected' : '' %}
                                        <option value=\"{{ type.id }}\" {{ selected }}>{{ type.libelle }}</option>
                                    {% endfor %}
                                </select>
                            </div>
                            <div class=\"input-group form-group  pb-2 d-flex\">
                                <label class=\"white me-2 control-label align-self-center\" style=\"width:55px\">Catégorie</label>
                                <select name=\"categorie_pro\" class=\"form-control\"  {{ disabled }} id=\"categorie_pro\" style=\"width: 167px !important;flex:inherit\" {{ client.categoriePro ? 'disabled' : '' }}>
                                    <option value=\"\"></option>
                                    {% for categorie_p in categoriesPro %}
                                        {% set selected =  (client.categoriePro and client.categoriePro.id == categorie_p.id) ? 'selected' : '' %}
                                        <option value=\"{{ categorie_p.id }}\" {{ selected }}>{{ categorie_p.libelle }}</option>
                                    {% endfor %}
                                </select>
                            </div>
                            <div class=\"input-group form-group d-flex\" style=\"line-height: 14px;\">
                                <label class=\"white control-label\" for=\"client_entreprise\" style=\"width:64px\">Nom<br>entreprise</label>
                                <input type=\"text\" id=\"client_entreprise\"  {{ disabled }} name=\"client_entreprise\" class=\"form-control bg-white\"  value=\"{{ client.nomEntreprise }}\" {{ client.nomEntreprise ? 'disabled' : '' }}>
                            </div>
                        </div>
                </div>
                <div class=\"d-flex flex-column\" style=\"width: 223px;margin-right: 2.3rem;\">
                    <div class=\"input-group form-group pb-2 d-flex\" >
                        <label class=\"white me-3 control-label align-self-center\">Civilité</label>
                        <select name=\"etat_civil\" class=\"form-control\" id=\"etat_civil\" style=\"width: 90px !important;flex: 0 1 auto;\" {{ client.etatCivil ? 'disabled' : '' }}>
                            {% for civilite in civilites %}
                                {% set selected =  (client.etatCivil and client.etatCivil.id == civilite.id) ? 'selected' : '' %}
                                <option value=\"{{ civilite.id }}\" {{ selected }}>{{ civilite.libelleCourt }}</option>
                            {% endfor %}
                        </select>
                    </div>
                    <div class=\"input-group form-group pb-2 d-flex\">
                        <label class=\"white me-2  control-label align-self-center\" for=\"agent_nom\" style=\"width:48px;\">Nom</label>
                        <input type=\"text\" id=\"agent_nom\" name=\"souscripteur_nom\" style=\"max-width:166px;\" class=\"form-control bg-white\" value=\"{{ client.nom }}\" {{ client.nom ? 'disabled' : '' }}>
                    </div>
                    <div class=\"input-group form-group d-flex\">
                        <label class=\"white me-2  control-label align-self-center\" for=\"agent_prenom\"  style=\"width:48px;\">Prénom</label>
                        <input type=\"text\" id=\"agent_prenom\"  {{ disabled }} name=\"souscripteur_prenom\" style=\"max-width:166px;\" class=\"form-control bg-white\" value=\"{{ client.prenom }}\" {{ client.prenom  ? 'disabled' : '' }}>
                    </div>
                </div>
                <div style=\"width: 510px;margin-right: 2.3rem;\">
                    <div  class=\"input-group form-group pb-2\">
                        <form id=\"form_agent_adresse\" action=\"{{ path('patch_agent_adresse', {id: client.id}) }}\" method=\"post\" class=\"form-ajax\">
                            <div class=\"d-flex\">
                                <i class=\"fa fa-lg fa-2x fa-home align-self-center\" style=\"margin-left: -0.2rem;  margin-right: 0.8rem;\"></i>
                                <div class=\"input-icons me-3\" style=\"width:466px\">
                                    <button type=\"submit\" form=\"form_agent_adresse\" style=\"background: transparent;border: 0;right:0\">
                                        <i class=\"fa fa-lg icon color-primary\"></i>
                                    </button>
                                    <input type=\"text\" id=\"client_adresse_auto\"  {{ disabled }} name=\"client_adresse_auto\" data-prefix=\"equipement\" data-disable-on-view=\"\" class=\"form-control bg-white input-field\" value=\"{{ client.adresse }}\" data-idsite=\"{{ client.getEquipementPrincipal and client.getEquipementPrincipal.getSecteur() ? client.getEquipementPrincipal.getSecteur.getSectorisationVersion().getSite().id : '' }}\">
                                    <div class=\"adresse_auto_error\" style=\"display: none;height:30px;margin-bottom:0\"></div>
                                    <input type=\"hidden\" name=\"souscripteur_code_postal\" form=\"form_client_update\">
                                    <input type=\"hidden\" name=\"souscripteur_ville\" form=\"form_client_update\">
                                    <input type=\"hidden\" name=\"souscripteur_adresse\" form=\"form_client_update\">
                                    <input type=\"hidden\" name=\"souscripteur_coordinates\" form=\"form_client_update\">
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class=\"\" style=\"position:relative\">
                        <span class=\"icon-phone-rotary white\" style=\"position: absolute;\">{{ source('@public_path'~asset('build/images/phone-rotary.svg')) }}</span>
                        <ul class=\"collection d-flex \" id=\"collection-tel\" style=\"margin-bottom: 0rem;margin-left:7px;gap: 0.6rem;\" data-index=\"{{ client.clientTels|length +1 }}\" data-prototype=\"#prototype-client-tel\">
                            {% for i in 1..3 %}
                                <li >
                                    {% set name_input_1 = 'client[clientTels][' ~ i ~'][numTel]' %}
                                    {% set value_1 =  (client.clientTels.get(i-1)) ? client.clientTels.get(i-1).numTel :'' %}
                                    {% set type_1 = 'text' %}
                                    {% set fr =  client.clientTels.get(i-1) ? client.clientTels.get(i-1).fr : 1 %}
                                    {% set pattern = (fr) ? 'pattern=[0-9]{2}.[0-9]{2}.[0-9]{2}.[0-9]{2}.[0-9]{2}' : '9999999999' %}
                                    {% set minlength =  (fr) ? 'minlength=14' : '' %}
                                    {% set maxlength = 'maxlength=14' %}
                                    {% set class_sup = (fr) ? 'input_tel' : 'input_tel not_fr' %}
                                    {% set name_input_2 = 'client[clientTels][' ~ i ~'][commentaireTel]' %}
                                    {% set value_2  = (client.clientTels.get(i-1)) ? client.clientTels.get(i-1).commentaireTel :'' %}
                                    {% set name_input_3 = 'client[clientTels][' ~ i ~'][id]' %}
                                    {% set value_3  = (client.clientTels.get(i-1)) ? client.clientTels.get(i-1).id :'' %}
                                    {% set name_input_fr = 'client[clientTels][' ~ i ~'][fr]' %}
                                    {% set popup_id = 'popup-client-commentaireTel-' ~ i %}
                                    {% set width = \"width:150px\" %}
                                    {% set data_disable = 'data-disable-on-view' %}
                                    {{ include('clients/_prototype_collection.html.twig') }}
                                </li>
                            {% endfor %}
                        </ul>
                        {#                        <a class=\"add_item_link\" data-collection-holder-id=\"collection-tel\"><i class=\"fa fa-plus add-icon\" style=\"right: 31px;\"></i></a>#}
                    </div>
                    <div class=\"d-flex\">
                        <div><i class=\"fa fa-envelope align-self-center\" style=\"font-size: 1.7em;\"></i></div>
                        <div>
                            <ul class=\"collection\" id=\"collection-email\" style=\"margin-bottom: 0;width:481px;padding-left:11px;\" data-index=\"{{ client.ClientEmails|length +1}}\" data-prototype=\"#prototype-client-mail\">
                                <li style=\"position:relative;width:310px;\">
                                    {% set name_input_1 = 'client[clientEmails][1][email]' %}
                                    {% set value_1 =  (client.ClientEmails.get(0) ) ? client.ClientEmails.get(0).email :'' %}
                                    {% set type_1 = 'email' %}
                                    {% set name_input_2 = 'client[clientEmails][1][commentaireEmail]' %}
                                    {% set value_2  = (client.ClientEmails.get(0)) ? client.ClientEmails.get(0).commentaireEmail :'' %}
                                    {% set name_input_3 = 'client[clientEmails][1][id]' %}
                                    {% set value_3  = (client.ClientEmails.get(0)) ? client.ClientEmails.get(0).id :'' %}
                                    {% set popup_id = 'popup-client-commentaireEmail-1' %}
                                    {% set data_disable = 'data-disable-on-view' %}
                                    {{ include('clients/_prototype_collection.html.twig') }}
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class=\" d-flex flex-column\">
                    <div  class=\"input-group form-group pb-2\">
                        {%  if client.getEquipementsActif %}
                            <div class=\"align-self-start\" style=\"min-width:143.4px\">
                                {% if equipement.getActif %}
                                <a class=\"btn btn-success px-2\" id=\"btn-open-change-souscripteur\" data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-popup-offset =\"0 275\"  data-popup-id=\"popup-changement-souscripteur\" data-scrollview-height=\"300px\" data-popup-scrollview=\"#changement-souscripteur-tab-equipement\" data-disable-on-view=\"\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Changement de souscripteur\" data-popup-width=\"auto\" style=\"height: 28px;line-height: 13px;\">Nouveau souscripteur</a>
                                {% endif %}
                            </div>
                        {% endif %}
                    </div>
                    {% set margin_top_picto = true %}
                    {% if client.typeClient.id == 2 %}
                        <a data-popup-position-of=\"center\" class=\"ms-auto\" data-popup-position-at=\"top\" data-disable-on-view data-poppup-container=\"body\" data-popup-id=\"popup-impot-{{ client.id }}\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-title=\"Identification fiscale\" data-popup-width=\"auto\">
                            {{ include('clients/_picto_impot.html.twig') }}
                        </a>
                    {% endif %}
                    {% if client.getClientTutelle %}
                        <a data-popup-position-of=\"center\" class=\"ms-auto\" data-popup-position-at=\"top\" data-disable-on-view data-poppup-container=\"body\" data-popup-id=\"popup-tuteur-{{ client.getClientTutelle.id }}\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-title=\"Tuteur\" data-popup-width=\"auto\" style=\"width:28px;height:28px;\">
                            {{ include('clients/_picto_tutelle.html.twig') }}
                        </a>
                    {% endif %}
                </div>
                {% if equipement and equipement.getClientAncienSouscripteur %}
                    <div class=\"mt-1 position-absolute\" style=\"font-size:12px;bottom: 0;font-style:italic;left:200px;\">Ancien souscripteur: {{ equipement.getClientAncienSouscripteur }} ({{ equipement.getDateAncienSouscripteur|date('d/m/Y') }})</div>
                {% endif %}
            </div>
            <div class=\"d-flex bg-primary pt-2 px-2 \"  style=\"flex-grow:1;max-width:466px;\">
                <div class=\"d-flex flex-column align-items-end me-2\">
                    <div>
                        <p class=\"mt-0 mb-0 title-700\" id=\"sidebar-client-container-title--text\" style=\"font-size: 1.4em;\">Equipements </p>
                    </div>
                    <div class=\"d-flex flex-column mt-auto\">
                        <div class=\"mb-1 ms-auto\">
                            <a class=\"\" data-poppup-container=\"body\" style=\"align-self:center;margin-left: auto;\" data-popup-id=\"popup-add-equipement\" data-popup-closeoutside=\"false\" data-dxpopup=\"\" data-popup-title=\"Ajouter un équipement\" data-popup-width=\"auto\">
                                <i class=\"fa fa-plus add-icon me-0\" style=\";position:relative; right:0;border-radius:4px;\"></i>
                            </a>
                        </div>
                        <div class=\"d-flex\">
                            <div class=\"d-flex flex-column\">
                                <span class=\"color-vert me-2\" >{{ client.getEquipementsActif|length }} actifs</span>
                                <span class=\"color-orange\">{{ client.getEquipementsInactif|length }} inactif</span>
                            </div>
                            <div>
                                <a class=\"position:relative bg-vert text-decoration-none d-flex flex-column align-items-center\" id=\"show-equipements\" style=\"align-self:center;margin-left: auto; height:38px;width:32px;border-radius:4px;display:block\" >
                                    <span class=\" me-0 d-block w-100 text-center pt-1\" style=\";position:relative; font-size: 0.8125rem; font-weight: 700;\">{{ client.getEquipementsActif|length }}</span>
                                    <span class=\"mt-1\" style=\"width: 0; height: 0;border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid white;\"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
                <div style=\"min-width:335px\">
                    <div class=\" bg-white w-100 text-start d-flex justify-content-between mb-1 flex-column {{ id_equipement and id_equipement == equipement.id ? 'active' : '' }}\" data-idequipement=\"{{ equipement.id }}\" id=\"{{ equipement.id }}-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tabdata-{{ equipement.id }}\" type=\"button\" role=\"tab\"  aria-selected=\"true\">
                        <div class=\"d-flex px-2 bg-grey-table\" style=\"padding-top:0.15rem;\">
                            {% if equipement.clientUtilisateur %}
                                <span class=\"w-100 color-orange\">{{ equipement.clientUtilisateur }}</span><br>
                            {% else %}
                                <span class=\"w-100 color-orange\">----</span><br>
                            {% endif %}
                            {%  if equipement.getActif %}
                            <a class=\"d-flex\" data-popup-id=\"popup-equipement-inactif-{{ equipement.id }}\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Confirmation équipement inactif\" data-popup-width=\"auto\">
                                <img width=\"16\"  height=\"16\" src=\"{{ asset('build/images/picto-equipement-inactif.png') }} \" style=\"vertical-align: baseline\">
                            </a>
                            {% endif %}
                        </div>
                        <div class=\"px-2 w-100 pt-1\" style=\"line-height: 18.3px;\">
                            <div class=\"d-flex justify-content-between\">
                                <span class=\"bg-primary me-1\" style=\"padding: 1px 2px;border-radius: 3px;\"> {{ equipement.EquipementFamilleContrat ? equipement.EquipementFamilleContrat.libelle }}</span>
                                <span>{{ equipement.numSerieprincipal ?  equipement.numSerieprincipal|slice(0, 4) ~ ' ' ~ equipement.numSerieprincipal|slice(4, 6) ~ ' ' ~ equipement.numSerieprincipal|slice(10, 4) : '<i>serie en attente</i>' }}</span>
                            </div>
                            <div class=\"d-flex color-vert w-100\">
                                <div class=\"d-inline-block\">{{ equipement.EquipementFamille ? equipement.EquipementFamille.libelle : '' }}</div>
                                <div class=\"ms-auto\">
                                    {{ equipement.EquipementTypePuissance ? equipement.EquipementTypePuissance.EquipementType.type : '' }}
                                </div>
                            </div>
                           <div class=\"d-flex justify-content-between\">
                               <div class=\"d-flex flex-column me-2\">
                                   <div>{{ equipement.adresse ? equipement.adresse.adresse|lower : '' }}</div>
                                   {% if equipement.adresse and equipement.adresse.getEtagePorteComplement %}
                                       <div>{{ equipement.adresse.getEtagePorteComplement }}</div>
                                   {% endif %}
                                   <div>{{ equipement.adresse ? equipement.adresse.codePostal ~ ' ' ~ equipement.adresse.ville : ''}}</div>
                               </div>
                               <div class=\"d-flex mt-1\">
                                   {% if equipement.isEligiblePrivilege %}
                                       <span class=\"me-1\"><img width=\"28\"  height=\"28\" src=\"{{ asset('build/images/picto-privileges.png') }} \" class=\"\" style=\"vertical-align: baseline\"></span>
                                   {% endif %}
                                   {% if equipement.equipementGroupes is not empty %}
                                       <span class=\"me-1\"><img width=\"28\"  height=\"28\" src=\"{{ asset('build/images/picto-equipement-lies.png') }} \" class=\"\" style=\"vertical-align: baseline\"></span>
                                   {% endif %}
                                   {%  if equipement.getLastContrat and equipement.getLastContrat.groupe %}
                                       <div class=\"me-1\" >
                                           <img width=\"28\"  height=\"28\" src=\"{{ asset('build/images/picto-groupe-contrat.png') }} \" class=\"popper\" style=\"vertical-align: baseline;\">
                                           <div class=\"info-tooltip bg-vert\">N°{{ equipement.getLastContrat.groupe }}</div>
                                       </div>
                                   {% endif %}
                                   {% if equipement.getSalarieFrisquet %}
                                       <span class=\"me-1\"><img width=\"28\"  height=\"28\" src=\"{{ asset('build/images/salarie-frisquet-actif.png') }} \" class=\"\" style=\"vertical-align: baseline;\"></span>
                                   {% endif %}
                                   {% if equipement.getChantier is not null %}
                                       <div class=\"me-1\">
                                           <img width=\"28\"  height=\"28\" src=\"{{ asset('build/images/picto-chantier.png') }} \" class=\"popper0\" style=\"vertical-align: baseline;\">
                                           <div class=\"info-tooltip bg-grey-dark\">N°{{ equipement.getChantier }}</div>
                                       </div>
                                   {% endif %}
                                   {% if client.getPorteOuvertes is not empty %}
                                       <img width=\"28\"  height=\"28\" class=\"popper me-1\" src=\"{{ asset('build/images/picto-po.png') }} \" style=\"vertical-align: sub\" />
                                   {% endif %}
                                   {% if equipement.getClientUtilisateur and equipement.getClientUtilisateur.getClientTutelle %}
                                       <img width=\"28\" height=\"28\" src=\"{{ asset('build/images/picto-tutelle.png') }} \" >
                                   {% endif %}
                               </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


        </div>
        <div class=\"my-custom-class-for-errors\">
        </div>


        <div class=\"d-flex justify-content-between flex-wrap\" style=\"gap:0.8rem;\">
{#            {% if client.clientSites is empty %}#}
{#                {% set utilisateurSites = app.user.getUtilisateurSites %}#}
{#                {% if utilisateurSites|length > 1 %}#}
{#                    <div class=\"input-group form-group\">#}
{#                        <label class=\" white me-2 col-form-label control-label\">Site</label>#}
{#                        <select name=\"souscripteur_site\" style=\"width:auto\" class=\"form-control bg-grey\"  required>#}
{#                            {% for utilisateurSite in utilisateurSites %}#}
{#                                <option value=\"{{ utilisateurSite.site.id }}\">{{ utilisateurSite.site.nom }}</option>#}
{#                            {% endfor %}#}
{#                        </select>#}
{#                    </div>#}
{#                {% endif %}#}
{#            {% endif %}#}

        </div>
    </form>
    <div class=\"row mx-0 pt-1 mt-1\">
        {% set nbEquipementsActif = client.getEquipementsActif|length %}
        <div class=\" bg-grey tab-content px-0\" id=\"body-client\" >
                {% set  contrat_en_cours = contrat and contrat.getDateFinContrat|date('Y-m-d') > 'now'|date('Y-m-d') %}
                {% set paiement = contrat and contrat.facture and contrat.facture.paiements[0] ? contrat.facture.paiements[0] : null %}
                {% set lien_paiement = contrat and contrat.dateAvisEcheance and not contrat.datePaiement and client.getClientEmails[0] %}
                {% set envoi_avis_echeance = contrat_en_cours and not contrat.dateAvisEcheance %}

                {% set isGU = (contrat is null  and equipement.datePremierAllumage and  equipement.datePremierAllumage|date_modify(\"+1 year\")|date('U') >= \"now\"|date('U')) ? true : false %}
                {% set utilisateur = equipement.clientUtilisateur %}
                <div class=\"tab-pane fade show  {{ equipement.getActif == false ? 'disabled' : '' }} {{ id_equipement and id_equipement == equipement.id ? 'active' : '' }}\" id=\"tabdata-{{ equipement.id }}\" role=\"tabpanel\" aria-labelledby=\"{{ equipement.id }}-tab\">
                    <div class=\"d-flex flex-row position-relative\">
                        <div class=\"position-fixed d-flex justify-content-center \" style=\"z-index: 1000;\">
                            <ul class=\"nav nav-tabs pt-1 nav-primary d-flex flex-column \" role=\"tablist\" id=\"show_tab-{{ equipement.id }}\" data-tabs=\"tabs\" style=\"position:relative;margin-left:14px\">
                                <li class=\"nav-item sticky-links__element\" role=\"presentation\">
                                    <a class=\"nav-link bg-white active rounded-circle-40 p-0 border-primary\"  href=\"#tab-1-{{ equipement.id }}\"  role=\"tab\"  aria-selected=\"true\">
                                        <i class=\"fa fa-fire fa-lg ms-1\" aria-hidden=\"true\"></i>
                                        <span class=\"nav-title\">EQUIPEMENT</span>
                                    </a>
                                </li>
                                <li class=\"nav-item sticky-links__element\" role=\"presentation\">
                                    <a class=\"nav-link  bg-grey rounded-circle-40 p-0 border-primary\"  href=\"#tab-2-{{ equipement.id }}\"  role=\"tab\"  aria-selected=\"false\">
                                        <i class=\"fa fa-tools ms-1 fa-lg\" aria-hidden=\"true\"></i>
                                        <span class=\"nav-title\">INTERVENTIONS</span>
                                    </a>
                                </li>
                                <li class=\"nav-item sticky-links__element\" role=\"presentation\">
                                    <a class=\"nav-link  bg-grey rounded-circle-40 p-0 border-primary\"   href=\"#tab-3-{{ equipement.id }}\" role=\"tab\"  aria-selected=\"false\">
                                        <i class=\"fa fa-euro ms-1 fa-lg\" aria-hidden=\"true\"></i>
                                        <span class=\"nav-title\">FACTURATION</span>
                                    </a>
                                </li>
                                <li class=\"nav-item sticky-links__element\" role=\"presentation\">
                                    <a class=\"nav-link  bg-grey rounded-circle-40 p-0 border-primary\"   href=\"#tab-4-{{ equipement.id }}\" role=\"tab\"  aria-selected=\"false\">
                                        <i class=\"fa fa-envelope ms-1 fa-lg\" aria-hidden=\"true\"></i>
                                        <span class=\"nav-title\">CONTACT</span>
                                    </a>
                                </li>
                                <li class=\"nav-item sticky-links__element\" role=\"presentation\">
                                    <a class=\"nav-link  bg-grey rounded-circle-40 p-0 border-primary\"   href=\"#tab-5-{{ equipement.id }}\" role=\"tab\"  aria-selected=\"false\">
                                        <i class=\"fa fa-exclamation-triangle ms-1 fa-lg\" aria-hidden=\"true\"></i>
                                        <span class=\"nav-title\">AIDE TECHNIQUE</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                        <div class=\"d-flex flex-column\" style=\"width:72px;\">
                        </div>
                        <div>
                            <div class=\" pb-3  \"  style=\"height:870px; position:relative;\" data-bs-spy=\"scroll\" data-bs-target=\"#show_tab-{{ equipement.id }}\"  >
                                <div class=\"tab-pane fade show tab-client\" id=\"tab-1-{{ equipement.id }}\" role=\"tabpanel\">
                                    {#                            <div class=\"d-flex \">#}
                                    {#                                <div class=\"d-flex bg-primary flex-column h-auto bloc_picto  {{ nbEquipementsActif == 1 ? '' : 'hide' }} \" style=\"width:7%\">#}
                                    {#                                    <div class=\"text-center py-1\" style=\"color:white\">Pictos</div>#}
                                    {#                                    {{ include('clients/_pictos.html.twig') }}#}
                                    {#                                </div>#}
                                    {#                                <div class=\"d-flex bg-primary flex-column h-auto bloc_fiche_pref\" style=\"width:49.5%\">#}
                                    {#                                    <div class=\"text-center py-1\" style=\"color:white\">Préférences de planification</div>#}
                                    {#                                    {{ include('clients/_equipement_preference_planification.html.twig') }}#}
                                    {#                                </div>#}
                                    {#                            </div>#}

                                    <div class=\"d-flex flex-wrap \">
                                        <div class=\"d-flex flex-wrap justify-content-between me-1 \" style=\"width: 1051px;\">
                                            <div class=\"d-flex bg-primary flex-column bloc_fiche_2 me-1\" style=\"height:266px;width:535px;\">
                                                <div class=\"text-center py-1 position-relative\" style=\"color:white;\">
                                                    Utilisateur
                                                    <a data-popup-id=\"popup-history-equipement-utilisateur\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Historique Utilisateur\" data-popup-width=\"auto\"><i class=\"fa fa-lg fa-history custom-history\"></i></a>
                                                </div>
                                                <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex\" style=\"flex-direction: column\">
                                                    {% if equipement.getActif %}
                                                        {% if  not utilisateur or utilisateur == equipement.clientSouscripteur or equipement.logementVide %}
                                                            {% if equipement.getActif == true %}
                                                                <div class=\"d-flex w-100 h-100 justify-content-center align-items-end\">
                                                                    <a class=\"btn btn-block  btn-outline-success me-1\" style=\"width:146px;\"  data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-disable-on-view data-poppup-container=\"body\" data-popup-id=\"popup-add-utilisateur\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-title=\"Ajouter un utilisateur\" data-popup-width=\"auto\">
                                                                        {#                                                                {% if equipement.logementVide %}#}
                                                                        {#                                                                    <span class=\"mb-2\">Le logement est vide.<br>Pour ajouter un utilisateur, cliquer sur le bouton ajouter ci dessous.</span>#}
                                                                        {#                                                                {% endif %}#}
                                                                        <i class=\"fa fa-plus\" style=\"position:relative !important;;\"></i>Nouvel utilisateur
                                                                    </a>
                                                                </div>
                                                            {% endif %}
                                                        {% else %}
                                                            <div class=\"d-flex flex-wrap\" style=\"gap:0.5rem;\">
                                                                    {% set client_affiche = utilisateur%}
                                                                    {% set nom_reference = 'utilisateur' %}
                                                                    {{ include('clients/_affichage_utilisateur_tuteur.html.twig') }}
                                                                    {% set margin_top_picto = false %}
                                                                    {% if utilisateur.getClientTutelle %}
                                                                        <a data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-disable-on-view 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\">
                                                                            {{ include('clients/_picto_tutelle.html.twig') }}
                                                                        </a>
                                                                    {% endif %}
                                                                    {% if utilisateur.typeClient.id == 2 %}
                                                                        <a data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-disable-on-view 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\">
                                                                            {{ include('clients/_picto_impot.html.twig') }}
                                                                        </a>
                                                                    {% endif %}
                                                                </div>
                                                            </div>
                                                            {% if utilisateur != equipement.clientSouscripteur %}
                                                                <div class=\"d-flex pt-2\" style=\"margin-top:auto;\">
                                                                    <a class=\"btn btn-md btn-block btn-outline-danger me-1\" data-message = \"Confirmez vous que ce logement est vide?\" data-href=\"{{ path('equipement_logement_vide', {id: equipement.id}) }}\" data-disable-on-view=\"\"  data-confirm=\"1\">Logement vide</a>
                                                                    <a class=\"btn btn-md btn-block btn-outline-success me-1\" data-disable-on-view data-poppup-container=\"body\" data-popup-id=\"popup-add-utilisateur\" data-dxpopup=\"\" data-popup-title=\"Ajouter un utilisateur\" data-popup-position-of=\"center\"  data-scrollview-height=\"300px\" data-popup-position-at=\"top\" data-popup-offset =\"0 275\" data-popup-width=\"auto\"> Nouvel utilisateur</a>
                                                                    <a class=\"btn btn-md btn-block btn-outline-success me-1\" data-poppup-container=\"body\" data-popup-id=\"popup-transformer-souscripteur-{{ equipement.id }}\" data-disable-on-view=\"\" data-dxpopup=\"\" data-popup-title=\"Confirmation de transformation utilisateur en souscripteur\" data-popup-width=\"auto\">Transformer en souscripteur</a>
                                                                </div>
                                                            {% endif %}
                                                        {% endif %}
                                                {% endif %}
                                                </div>
                                            </div>
                                            <div class=\"d-flex bg-primary flex-column  bloc_fiche_2 me-auto\"   style=\"height:266px;width:512px\">
                                                <div class=\"text-center py-1 position-relative\" style=\"color:white\">
                                                    {# si sous contrat mais retard de paiement de 4 mois on affiche retard de paiement #}
                                                    {# si contrat résilié et date >= à date du jour on affiche contrat resilié le #}
                                                    {# sinon on affiche infos contrat standard #}
                                                    {% set contratResiliation = contrat.contratResiliations[0] is defined and contrat.contratResiliations[0].getDate|date(\"Y-m-d\") >= \"now\"|date(\"Y-m-d\")  ? 'Contrat résilité le ' ~ contrat.contratResiliations[0].date|date(\"d/m/Y\") : '' %}
                                                    {% if contrat is defined and contrat is not null and contrat.isContratEchu() %}
                                                        Contrat échu pour défaut de paiement
                                                    {% elseif contrat.contratResiliations[0] is defined and contrat.contratResiliations[0].getDate|date(\"Y-m-d\") >= \"now\"|date(\"Y-m-d\") %}
                                                       Contrat résilié le {{ contrat.contratResiliations[0].getDate|date(\"d/m/Y\") }}
                                                    {% else %}
                                                        {{ equipement and equipement.equipementFamilleContrat ? equipement.equipementFamilleContrat.libelle : 'Hors Contrat' }}
                                                    {% endif %}
                                                    <a data-popup-id=\"popup-history-contrats-{{ equipement.id }}\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Historique Contrat\" data-popup-width=\"auto\"><i class=\"fa fa-lg fa-history custom-history\"></i></a>
                                                </div>
                                                <div class=\"px-2 py-1 bg-white color-primary w-100 h-100 block-infos-container\">
                                                    {{ include('clients/contrat/contrat.html.twig') }}
                                                </div>
                                            </div>
                                            <div class=\"d-flex w-100\" >
                                                <div class=\"d-flex bg-primary flex-column h-auto mt-0 flex-grow-1 \" style=\"margin-right: 4px;\">
                                                    <div class=\"text-center py-1\" style=\"color:white\">Localisation</div>
                                                    <div class=\"px-2 py-2 bg-white color-primary   h-100 block-infos-container\">
                                                        {{ include('clients/localisation/localisation.html.twig') }}
                                                    </div>
                                                </div>
                                                <div class=\"d-flex bg-primary flex-column h-auto mt-0 ms-auto\" style=\"width:311px !important;\" >
                                                    <div class=\"text-center py-1\" style=\"color:white\">Secteur n°{{ equipement.getSecteur is not null ? equipement.getSecteur  }}</div>
                                                    <div class=\"px-2 py-2 bg-white color-primary  h-100 block-infos-container\">
                                                        <div class=\"d-flex align-items-center mb-2\">
                                                            <label  style=\"width:112px;\">Agent de planning</label>
                                                            <input type=\"text\" class=\"form-control\" disabled value=\"{{ equipement.getSecteur and equipement.getSecteur.getUtilisateurPlanning ? equipement.getSecteur.getUtilisateurPlanning.getCodeNom : '' }}\" style=\"width: 183px;\" >
                                                        </div>
                                                        <div class=\"d-flex align-items-center\">
                                                            <label style=\"width:112px;\">Agent de terrain</label>
                                                            <input type=\"text\" name=\"equipement_chantier\"   class=\"form-control\"  disabled value=\"{{ equipement.getSecteur and equipement.getSecteur.getAgentPrincipal ? equipement.getSecteur.getAgentPrincipal.getCodeNom : '' }}\" style=\"width: 183px;\" >
                                                            {#                                                            <span class=\"fst-italic\" id=\"text-numero-chantier\" style=\"display:none;\">N° généré automatiquement</span>#}
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class=\"d-flex bg-primary flex-column h-auto bloc_fiche_3 bloc_fiche_technique\" id=\"bloc_infos_tech\" >
                                            <div class=\"text-center py-1\" style=\"color:white\">Informations technique</div>
                                            <form id=\"form-change-infos-technique-{{ equipement.id }}\" class=\"form form-ajax\" method=\"post\" action=\"{{ path('equipement_maj_infos_technique', {'id': equipement.id}) }}\">
                                                <input type=\"hidden\" name=\"type_change\" form=\"form-change-infos-technique-{{ equipement.id }}\" value=\"\">
                                                <input type=\"hidden\" name=\"data_value\" value=\"\" form=\"form-change-infos-technique-{{ equipement.id }}\" >
                                            </form>
                                            <div  class=\"px-2 py-1 d-flex bg-white color-primary w-100 h-100 block-infos-container flex-column client-infostech\">
                                                <div class=\"client-infostech-infos d-flex flex-wrap mb-2\" style=\"gap:0.5rem;\" id=\"result-infos-tech\">
                                                    {% if is_pac %}
                                                        {{ include('clients/informations_technique/infostec_pac.html.twig') }}
                                                    {% else %}
                                                        {{ include('clients/informations_technique/infostec_chaudiere.html.twig') }}
                                                    {% endif %}
                                                </div>
                                                <div class=\"client-infostech-options position-relative\">
                                                    {% if equipement.getActif %}
                                                        <div>Options
                                                            <i class=\"fa fa-info-circle popper color-grey-dark\" style=\"font-size:1.1rem;\"></i>
                                                            <div class=\"info-tooltip bg-primary\">L'ajout/suppression d'options seront pris en compte dans le tarif lors du renouvellement du contrat.</div>
                                                        </div>
                                                        <div class=\"d-flex \" style=\"position: absolute;top:inherit;right:0;\">
                                                            <i  class=\"fa fa-lg fa-plus bg-vert add_complement_adresse button-add me-0\" data-disable-on-view=\"\" data-target-grid=\"#equipement-option-grid-{{ equipement.id }}\" style=\"position:relative;border-color: #14a085 !important;top:inherit;right:inherit\"></i>
                                                        </div>
                                                        <a class=\"position-absolute text-decoration-none\" style=\"right:0; top:54px;\" data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-disable-on-view=\"\" data-popup-id=\"popup-history-equipement-options\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Historique options\" data-popup-width=\"auto\" data-popup-offset=\"0 275\" >
                                                            <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\">
                                                                <i class=\"fa fa-lg fa-history custom-history color-primary\" style=\"position:relative;right:-2px;top:0px;\" ></i>
                                                            </div>
                                                        </a>
                                                        <div
                                                                style=\"padding-right: 38px;min-height:133px;max-height:133px;\"
                                                                class=\"grid grid-condensed table-inverse-color small-icon-grid\"
                                                                data-style=\"tab\"
                                                                id=\"equipement-option-grid-{{ equipement.id }}\"
                                                                data-page=\"EquipementOption\"
                                                                data-columns=\"{{ equipementOptionGrid.columns|json_encode() }}\"
                                                                data-getpath=\"{{ equipementOptionGrid.get_path ~ equipement.id}}\"
                                                                data-createpath=\"{{ equipementOptionGrid.create_path ~ equipement.id}}\"
                                                                data-deletepath=\"{{ equipementOptionGrid.delete_path }}\"
                                                                data-searchpanel='{\"visible\":false}'
                                                                data-pagination='{\"visible\":false}'
                                                                data-toolbarinvisible=\"true\"
                                                                data-gridClass=\"small-icon-grid\"
                                                                data-editing=\"{{ equipementOptionGrid.editing is defined   ? equipementOptionGrid.editing|json_encode() : defaultEditorGridOption }}\"
                                                        >
                                                        </div>
                                                    {% endif %}
                                                </div>

                                                <div class=\"d-flex justify-content-center pt-2 client-infostech-actions\">
                                                    {% if equipement.getActif %}
                                                        {% if client.equipements|length > 1 %}
                                                            {% if equipement.equipementGroupes is empty %}
                                                                <a class=\"btn btn-md btn-block btn-outline-success me-1\" style=\"height: 31px;\" data-disable-on-view=\"\" data-popup-id=\"popup-lier-equipement\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Lier équipement\" data-popup-width=\"auto\"><i class=\"fa fa-link\"></i>Lier équipement</a>
                                                            {% endif %}
                                                        {% endif %}
                                                        <a class=\"btn btn-md btn-block btn-outline-success ms-auto\" style=\"height: 31px\"  data-poppup-container=\"body\" data-popup-id=\"popup-details-installation-{{ equipement.id }}\" data-dxpopup=\"\" data-popup-title=\"Détails installation\" data-popup-width=\"{{ is_pac ? '1110' : '1623' }}px\" data-popup-height=\"auto\">Détails installation</a>
                                                        {% if equipement.equipementGroupes is not empty %}
                                                            <a class=\"btn btn-md btn-block btn-outline-success d-flex align-items-center justify-content-center ms-2\" style=\"height: 31px;width:31px;\" data-disable-on-view=\"\" data-popup-id=\"popup-lier-equipement\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Lier équipement\" data-popup-width=\"auto\"><i class=\"fa fa-link color-vert me-0\" style=\"font-size: 0.9rem;vertical-align: middle\"></i></a>
                                                        {% endif %}
                                                        <a class=\"btn btn-md btn-block color-bleu d-flex align-items-center justify-content-center ms-2\" style=\"height: 31px;width:31px;\" data-popup-id=\"popup-blocnote\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-position-at=\"center\" data-popup-title=\"Bloc note\"  data-popup-width=\"500px\" data-popup-height=\"auto\"><img width=\"31\"  height=\"31\" src=\"{{ asset('build/images/picto-blocnote.png') }} \" style=\"vertical-align: sub\"></a>

{#                                                        <a class=\"btn btn-md btn-block color-bleu d-flex align-items-center justify-content-center ms-2\" style=\"height: 31px;width:31px;\" data-popup-id=\"popup-blocnote\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-position-at=\"top\" data-popup-title=\"Bloc note\" data-scrollview-height=\"300px\" data-popup-scrollview=\"#popup-blocnote--content\" data-popup-offset =\"0 275\" data-popup-width=\"auto\"><img width=\"31\"  height=\"31\" src=\"{{ asset('build/images/picto-blocnote.png') }} \" style=\"vertical-align: sub\"></a>#}
                                                    {% endif %}
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class=\"border-top-orange\" style=\"margin:4px 0;\"></div>
                                    <div class=\"d-flex\">
                                        <div class=\"d-flex bg-primary flex-column h-auto bloc_fiche_3 bloc_fiche_technique\" style=\"width:308px;margin-right: 5px;\" >
                                            <div class=\"text-center py-1\" style=\"color:white\">Liste des interventions</div>
                                            <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex\" style=\"flex-direction: column\">
                                                {% if equipement.interventions|length > 1 %}
                                                    <table class=\"table table-responsive table-sm table-inverse-color-datagrid mb-0 \">
                                                        <thead>
                                                        <tr>
                                                            <th style=\"width: 80px !important;\">Date</th>
                                                            <th style=\"width:40px !important;\">Type</th>
                                                            <th style=\"width:30px !important;\"></th> {# Colonne pour les pictos #}
                                                            <th style=\"width: 140px !important;\">Agent</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        {% for intervention in equipement.interventions|sort((a, b) => b.planning.date <=> a.planning.date) %}
                                                            <tr class=\"intervention_client cursor-pointer\" data-id=\"{{ intervention.id }}\">
                                                                <td class=\"align-middle\">{{ intervention.planning.date|date('d/m/Y') }}</td>
                                                                <td class=\"text-center align-middle\">{{ intervention.getTypePlanification ? intervention.getTypePlanification.codeCourt }}</td>
                                                                <td class=\"text-center align-middle\">
                                                                    <div class=\"d-flex justify-content-center align-items-center w-100 h-100\">
                                                                        {% if intervention.interventionAnomalies|length > 0 %}
                                                                            <img src=\"{{ asset('build/images/triangle-anomalie.png') }}\"  width=\"12\" height=\"12\" style=\"height:12px;vertical-align:middle;\">
                                                                        {% endif %}
                                                                        {% if intervention.getObservations %}
                                                                            <img src=\"{{ asset('build/images/loupe-observation.png') }}\" width=\"12\" height=\"12\" style=\"vertical-align:middle;\">
                                                                        {% endif %}
                                                                    </div>
                                                                </td>
                                                                <td>{{ intervention.planning and intervention.planning.utilisateurAgent ? intervention.planning.utilisateurAgent.getCodeNom }}</td>
                                                            </tr>
                                                        {% endfor %}
                                                        </tbody>
                                                    </table>
                                                {% else %}
                                                    <div class=\"text-center\">Aucune intervention</div>
                                                {% endif %}
                                            </div>
                                        </div>
                                        <div class=\"d-flex bg-primary flex-column h-auto bloc_fiche_3 bloc_fiche_technique\" style=\"width:591px;margin-right: 5px\" >
                                            <div class=\"text-center py-1\" style=\"color:white\">Intervention</div>
                                            <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex\" style=\"flex-direction: column\">
                                                <div id=\"result_intervention_client\">

                                                </div>
                                            </div>
                                        </div>
                                        <div class=\"d-flex bg-primary flex-column h-auto bloc_fiche_3 bloc_fiche_technique\" style=\"width:734px;\" >
                                            <div class=\"text-center py-1\" style=\"color:white\">Facturation</div>
                                            <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex\" style=\"flex-direction: column\">
                                                <div id=\"result_intervention_client_facturation\">

                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div style=\"width:185px;margin-left:4px;margin-right: 1px\">
                            <div class=\"d-flex  flex-column h-auto bloc_fiche_pref position-fixed\" style=\"width:185px\">
                                <div class=\"text-center py-1 bg-primary\" style=\"color:white\">Préférences de planification</div>
{#                                {{ include('clients/_equipement_preference_planification.html.twig') }}#}
                                    <div class=\"px-1 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex flex-column \">
                                        {% if equipement.getEquipementPreferencesPlanification %}
                                            {% set planification = equipement.getEquipementPreferencesPlanification %}
                                            {% if planification.getDateEntreDebut or planification.getDateEntreFin or planification.getDateAvantLe or planification.getDateAPartirDu %}
                                                <div class=\"title_preferences_planifications bg-grey-light fw-600 color-orange px-2\">Dates</div>
                                                {% if planification.getDateEntreDebut or planification.getDateEntreFin %}
                                                <div class=\"d-flex my-2 flex-column\" style=\"gap:0.5rem\">
                                                    {% if planification.getDateEntreDebut %}
                                                        <div class=\"d-flex ps-2 align-items-center\">
                                                            <div class=\"me-2\">Entre le</div>
                                                            <input type=\"text\" disabled  style=\"width:91px\"   value=\"{{ planification.getInclusionRecurrente ? planification.getDateEntreDebut|format_datetime(locale='fr',pattern=\"dd MMMM\") : planification.getDateEntreDebut|date('d/m/Y') }}\"   class=\"form-control ps-1\" >
                                                        </div>
                                                    {% endif %}
                                                    {% if planification.getDateEntreFin %}
                                                        <div class=\"d-flex ps-2 align-items-center\">
                                                            <div style=\"margin-right: 1.7rem;\">Et le</div>
                                                            <input type=\"text\" disabled  style=\"width:91px\"   value=\"{{ planification.getInclusionRecurrente ? planification.getDateEntreFin|format_datetime(locale='fr',pattern=\"dd MMMM\") : planification.getDateEntreFin|date('d/m/Y') }}\"   class=\"form-control ps-1\" >
                                                        </div>
                                                    {% endif %}
                                                </div>
                                                {% endif %}
                                            {% endif %}
                                            {% if planification.getUniquementScolaire %}
                                                <div class=\"d-flex mt-2 mb-1 flex-column justify-content-center align-items-center\" style=\"gap:0.5rem\">
                                                    <div class=\"color-vert fw-600 text-center\">Pendant les vacances scolaires uniquement</div>
                                                </div>
                                            {% endif %}
                                                {%  if planification.getDateAvantLe or planification.getDateAPartirDu %}
                                                <div class=\"d-flex my-2 flex-column\" style=\"gap:0.5rem\">
                                                    {% if planification.getDateAvantLe %}
                                                        <div class=\"d-flex ps-2 align-items-center\">
                                                            <div class=\"me-2\">Avant le</div>
                                                            <input type=\"text\" disabled  style=\"width:91px\"   value=\"{{ planification.getAvantRecurrente ? planification.getDateAvantLe|format_datetime(locale='fr',pattern=\"dd MMMM\") : planification.getDateAvantLe|date('d/m/Y') }}\"   class=\"form-control ps-1\" >
                                                        </div>
                                                        {% endif %}
                                                    {% if planification.getDateAPartirDu %}
                                                        <div class=\"d-flex ps-2 align-items-center\">
                                                            <div class=\"me-2\">Après le</div>
                                                            <input type=\"text\" disabled  style=\"width:91px\"   value=\"{{ planification.getApresRecurrente ? planification.getDateAPartirDu|format_datetime(locale='fr',pattern=\"dd MMMM\") :  planification.getDateAPartirDu|date('d/m/Y') }}\"   class=\"form-control  ps-1\" >
                                                        </div>
                                                    {% endif %}
                                                </div>
                                                {% endif %}
                                            {% if planification.getPlanifierPreference and planification.getPlanifierJour %}
                                                <div class=\"title_preferences_planifications bg-grey-light fw-600 color-orange px-2\">Jour de planification</div>
                                                <div class=\"d-flex my-2 flex-column justify-content-center align-items-center\">
                                                    {% if planification.getPlanifierPreference %}
                                                        <div style=\"font-size: 14px;\">{{ planification.getPlanifierPreference|capitalize }}</div>
                                                    {% endif %}
                                                    {% if planification.getPlanifierJour %}
                                                        {% for jour in planification.getPlanifierJour |split(',')  %}
                                                            <div class=\"fw-600\">{{ jour }}</div>
                                                        {% endfor %}
                                                    {% endif %}
                                                </div>
                                            {% endif %}
                                            {% if (planification.getPlanifierPartieJournee and planification.getPlanifierPartieJournee != 'Indifférent')
                                                or planification.getHorairePassage != ''
                                            %}
                                                <div class=\"title_preferences_planifications bg-grey-light fw-600 color-orange px-2\">Moment</div>
                                                <div class=\"d-flex my-2 flex-column justify-content-center align-items-center\">
                                                    {% if (planification.getPlanifierPartieJournee and planification.getPlanifierPartieJournee != 'Indifférent')   %}
                                                        <div style=\"font-size: 14px;\">{{ planification.getPlanifierPartieJournee|capitalize }}</div>
                                                    {% endif %}
                                                    {% if planification.getPremiereVisite %}
                                                        <div class=\"color-vert fw-600\">Première visite</div>
                                                    {% endif %}
                                                    {% if planification.getHorairePassage %}
                                                        <div class=\"d-flex ps-2 align-items-center\">
                                                            <div class=\"me-2\">Horaire</div>
                                                            <input type=\"text\" disabled  style=\"width:100px\"   value=\"{{ planification.getHorairePassage.getLisibleHoraires }}\"   class=\"form-control ps-1 pe-0\" >
                                                        </div>
                                                    {% endif %}
                                                </div>
                                            {% endif %}
                                            {% if planification.getPlanifierAgent or planification.getEnvoyer2Agents or planification.getEnvoyerRts %}
                                                <div class=\"title_preferences_planifications bg-grey-light fw-600 color-orange px-2\">Agent</div>
                                                <div class=\"d-flex my-2 flex-column justify-content-center align-items-center\">
                                                    {% if planification.getPlanifierAgent %}
                                                        <div style=\"font-size: 14px;\">{{ planification.getPlanifierAgent|capitalize }}</div>
                                                    {% endif %}
                                                    {% if planification.getAgent %}
                                                        <div class=\"fw-600\">{{planification.getAgent}}</div>
                                                    {% endif %}
                                                    {% if planification.getEnvoyer2Agents %}
                                                        <div class=\"color-vert fw-600\">Envoyer 2 agents</div>
                                                    {% endif %}
                                                    {% if planification.getEnvoyerRts %}
                                                        <div class=\"color-vert fw-600\">Envoyer le RTS</div>
                                                    {% endif %}
                                                </div>
                                            {% endif %}
                                        {% else %}
                                            <div class=\"text-center color-grey-dark\">
                                                Aucune préference de planification définie
                                            </div>
                                        {% endif %}
                                        <div class=\"my-3 bg-grey-dark\" style=\"padding:1px;\"></div>
                                        {%  if equipement.getActif %}
                                        <div class=\"d-flex justify-content-center\">
                                            <a  class=\"btn btn-md btn-block btn-outline-success me-2\"  data-disable-on-view=\"\" data-poppup-container=\"body\" data-popup-id=\"popup_pref_planification_{{ equipement.id }}\" data-dxpopup=\"\" data-popup-title=\"Préférences de planification\" data-popup-width=\"auto\" style=\"width:85px\" type=\"button\">Définir</a>
                                            <button class=\"btn btn-md btn-block btn-outline-success\" data-disable-on-view=\"\" data-poppup-container=\"body\" data-popup-id=\"popup-preference-plannification\" data-dxpopup=\"\"  data-popup-position-of=\"center\" data-popup-position-at=\"top\" data-popup-title=\"Gestion des préférences de planification\" data-popup-width=\"auto\">
                                                <i class=\"fa fa-clone\" aria-hidden=\"true\"></i>
                                            </button>
                                        </div>
                                        <div class=\"mt-3 bg-orange\" style=\"padding:1px;\"></div>
                                        {% endif %}
{#                                        <div class=\"d-flex flex-column\">#}
{#                                            {% set agent_principal = equipement.getSecteur ? equipement.getSecteur.getAgentPrincipal : null %}#}
{#                                            <label class=\"me-1\">Agent principal</label>#}
{#                                            <input type=\"text\" name=\"secteur_agent_principal\"  disabled class=\"form-control bg-grey\" value=\"{{ agent_principal ? agent_principal.id ~ ' : '  ~ agent_principal.getNomComplet : '' }}\">#}
{#                                        </div>#}
                                        {% if equipement.getActif %}
                                        <div class=\"d-flex justify-content-center mt-3 mb-2\">
                                            <button id=\"\" class=\"btn btn-md btn-block bg-outline-bleu\" style=\"width:123px;\" {{ disabled }}><i class=\"fa fa-calendar-alt me-2 \" ></i>Planifier</button>
                                        </div>
                                        {% endif %}
                                    </div>
                                    {% if equipement.getActif %}
                                    <div class=\"px-2 py-2 mt-2 {{ my_lock ? 'bg-white color-white' : 'bg-orange color-primary' }} w-100 h-100 block-infos-container d-flex flex-column align-items-center \">
                                        <div id=\"form-actions-row\" class=\"d-flex flex-column justify-content-center\">
                                            {% if my_lock %}
                                                <button id=\"btn-save-client\" class=\"btn btn-md btn-block btn-outline-success d-flex\" type=\"button\" form=\"form_client_update\" style=\"height:48px;\" >
                                                    <i class=\"fa fa-save me-3 align-self-center fa-lg\"></i>
                                                    <span style=\"text-align: left\">Enregistrer et continuer l'édition</span>
                                                </button>
                                                <button id=\"btn-save-client\" class=\"btn btn-md btn-block btn-outline-danger mt-2 d-flex\" onclick=\"\$('#process_update').val('close');\" type=\"button\" form=\"form_client_update\" style=\"height:48px;\" >
                                                    <i class=\"fa fa-save me-3 align-self-center fa-lg\"></i>
                                                    <span style=\"text-align: left\">Enregistrer et fermer la fiche</span>
                                                </button>
                                            {% elseif lock is defined %}
                                                <div class=\"text-center  color-white\" style=\"font-size: 12px;\">
                                                    <div class=\"pt-1\">Fiche client en lecture seule</div>
                                                    <div>Modification par {{ lock.getUtilisateur }}</div>
                                                    <div class=\"pb-1\">{{ lock.getDateDebut|date('d/m/Y H:i') }}</div>
                                                </div>
                                            {% endif %}
                                        </div>
                                    </div>
                                    {% endif %}
                                </div>
                        </div>
                    </div>
                </div>
        </div>
    </div>
{% endblock %}
{% block popup %}
{#    {% for equipement in client.equipements %}#}
        {{ include('clients/_popup_pref_planification.html.twig') }}
        {{ include('clients/_list_equipements.html.twig') }}
        {{ include('clients/localisation/_popup_complement_adresse.html.twig') }}
        {{ include('clients/contrat/_popup_resilier_contrat.html.twig') }}
        {{  include('clients/_popup_details_installation.html.twig') }}
        {{  include('clients/contrat/_popup_history_contrats.html.twig') }}
        {{  include('clients/informations_technique/_popup_history_equipement_local.html.twig') }}
        {{  include('clients/informations_technique/_popup_history_equipement_options.html.twig') }}
        {{  include('clients/_popup_history_equipement_utilisateur.html.twig') }}
        {{  include('clients/contrat/_popup_groupe_contrat.html.twig') }}
        {{ include('clients/_popup_gestion_preferences_planification.html.twig') }}
        {% if equipement.getLastPrivilege %}
            {{ include('clients/contrat/_popup_privileges.html.twig') }}
        {% endif %}
        {% if (equipement.getContratAvenir) %}
            {{ include('clients/contrat/_popup_contrat_a_venir.html.twig') }}
        {% endif %}
        {{ include('clients/contrat/_popup_simulateur_tarifs.html.twig') }}
        {{ include('clients/_popup_equipement_inactif.html.twig') }}
        {{ include('clients/informations_technique/_popup_bloc_note.html.twig') }}
        {{ include('clients/_popup_lock_expired.html.twig') }}
        {{ include('clients/_popup_add_utilisateur.html.twig') }}
        {% if equipement.clientUtilisateur and equipement.clientUtilisateur != equipement.clientSouscripteur %}
            {{ include('clients/_popup_utilisateur_to_souscripteur.html.twig') }}
        {% endif %}
{#    {% endfor %}#}
    {% if client.equipements|length > 1 %}
        {{ include('clients/_popup_lier_equipement.html.twig') }}
    {% endif %}
    {% if client.porteOuvertes is not empty %}
        {{ include('clients/contrat/_popup_porte_ouvertes.html.twig') }}
    {% endif %}
    {{ include('clients/_popup_add_equipement.html.twig') }}
    {{ include('clients/_popup_changement_souscripteur.html.twig') }}
    {% if equipement.getClientSouscripteur and equipement.getClientSouscripteur.getClientTutelle %}
        {% set tuteur = equipement.getClientSouscripteur.getClientTutelle %}
        {{ include('clients/_popup_tuteur.html.twig') }}
    {% endif %}
    {% if equipement.getClientUtilisateur and equipement.getClientUtilisateur.getClientTutelle %}
        {% set tuteur = equipement.getClientUtilisateur.getClientTutelle %}
        {{ include('clients/_popup_tuteur.html.twig') }}
    {% endif %}
    {% if equipement.getClientSouscripteur and equipement.getClientSouscripteur.typeClient.id == 2 %}
        {% set pro = equipement.getClientSouscripteur %}
        {{ include('clients/_popup_impot.html.twig') }}
    {% endif %}
    {% if equipement.getClientUtilisateur and equipement.getClientUtilisateur.typeClient.id == 2 %}
        {% set pro = equipement.getClientUtilisateur %}
        {{ include('clients/_popup_impot.html.twig') }}
    {% endif %}
    <div id=\"popup-detail-client\" style=\"display:none;\"></div>
{% endblock %}
 {% block javascripts %}
     <script>
         var page = '{{ page|default(null) }}';

     </script>
     {{ parent() }}
     {{ encore_entry_script_tags('client') }}
{% endblock %}


", "clients/client_show.html.twig", "/builds/dev/refonte_sav/templates/clients/client_show.html.twig");
    }
}
