<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* intervention/_fiche_intervention_readonly.html.twig */
class __TwigTemplate_3258afd4d819828b9b8883ad91be956c08615a38eefae36acd3b051cdf49c720 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "intervention/_fiche_intervention_readonly.html.twig"));

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

        // line 1
        $context["equipement"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 1, $this->source); })()), "equipement", [], "any", false, false, false, 1);
        // line 2
        $context["equipementHauteur"] = ((((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 2, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["equipement"] ?? null), "getEquipementHauteurs", [], "any", false, true, false, 2), 0, [], "array", true, true, false, 2))) ? (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.', 2, $this->source); })()), "getEquipementHauteurs", [], "any", false, false, false, 2), 0, [], "array", false, false, false, 2)) : (null));
        // line 3
        $context["is_pac"] = (((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 3, $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.', 3, $this->source); })()), "equipementFamille", [], "any", false, false, false, 3)) && (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.', 3, $this->source); })()), "equipementFamille", [], "any", false, false, false, 3), "id", [], "any", false, false, false, 3), 10)));
        // line 4
        $context["affichage"] = "validation";
        // line 6
        $context["type"] = "technique";
        // line 7
        $context["disabled"] = "disabled";
        // line 8
        $context["souscripteur"] = (((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 8, $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.', 8, $this->source); })()), "getClientSouscripteur", [], "any", false, false, false, 8)) : (null));
        // line 9
        $context["pac_id"] = Twig\Extension\CoreExtension::constant("App\\Entity\\EquipementFamille::FAMILLE_PAC_ID");
        // line 10
        $context["contrat"] = (((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 10, $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.', 10, $this->source); })()), "getLastContrat", [], "any", false, false, false, 10)) : (null));
        // line 11
        $context["isGU"] = ((((((null === (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 11, $this->source); })())) && (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 11, $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.', 11, $this->source); })()), "datePremierAllumage", [], "any", false, false, false, 11)) && (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.', 11, $this->source); })()), "datePremierAllumage", [], "any", false, false, false, 11), "+1 year"), "U"), $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "U"))))) ? (true) : (false));
        // line 12
        $context["contrat_echu"] = (((((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 12, $this->source); })()) && (-1 === CoreExtension::compare(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.', 12, $this->source); })()), "dateFinContrat", [], "any", false, false, false, 12), $this->extensions['Twig\Extension\CoreExtension']->formatDate("now")))) &&  !(isset($context["isGU"]) || array_key_exists("isGU", $context) ? $context["isGU"] : (function () { throw new RuntimeError('Variable "isGU" does not exist.', 12, $this->source); })()))) ? (true) : (false));
        // line 13
        $context["prise_contrat"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 13, $this->source); })()), "estPriseContrat", [], "any", false, false, false, 13);
        // line 14
        $context["hors_contrat"] = ( !(isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 14, $this->source); })()) || (isset($context["contrat_echu"]) || array_key_exists("contrat_echu", $context) ? $context["contrat_echu"] : (function () { throw new RuntimeError('Variable "contrat_echu" does not exist.', 14, $this->source); })()));
        // line 15
        $context["agent"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 15, $this->source); })()), "planning", [], "any", false, false, false, 15), "getUtilisateurAgent", [], "any", false, false, false, 15);
        // line 16
        $context["binome_manquant_init"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 16, $this->source); })()), "getTypePlanification", [], "any", false, false, false, 16) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 16, $this->source); })()), "getTypePlanification", [], "any", false, false, false, 16), "getCategoriePlanification", [], "any", false, false, false, 16), "isInterne", [], "any", false, false, false, 16)) &&  !CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 16, $this->source); })()), "getActiveUtilisateurAffectation", [], "any", false, false, false, 16), "getUtilisateurBinome", [], "any", false, false, false, 16));
        // line 17
        $context["binome_manquant_int"] = (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["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 17, $this->source); })()), "planning", [], "any", false, false, false, 17), "getTypePlanificationInit", [], "any", false, false, false, 17), "getCategoriePlanification", [], "any", false, false, false, 17), "isInterne", [], "any", false, false, false, 17) &&  !CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 17, $this->source); })()), "getActiveUtilisateurAffectation", [], "any", false, false, false, 17), "getUtilisateurBinome", [], "any", false, false, false, 17));
        // line 18
        $context["paiement_ref"] = ((((Twig\Extension\CoreExtension::first($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 18, $this->source); })()), "getFactures", [], "any", false, false, false, 18)) && Twig\Extension\CoreExtension::first($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::first($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 18, $this->source); })()), "getFactures", [], "any", false, false, false, 18)), "getPaiements", [], "any", false, false, false, 18))) && CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::first($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::first($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 18, $this->source); })()), "getFactures", [], "any", false, false, false, 18)), "getPaiements", [], "any", false, false, false, 18)), "getMoyenPaiement", [], "any", false, false, false, 18))) ? (Twig\Extension\CoreExtension::first($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::first($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 18, $this->source); })()), "getFactures", [], "any", false, false, false, 18)), "getPaiements", [], "any", false, false, false, 18))) : (null));
        // line 19
        $context["moyen_paiement"] = (((isset($context["paiement_ref"]) || array_key_exists("paiement_ref", $context) ? $context["paiement_ref"] : (function () { throw new RuntimeError('Variable "paiement_ref" does not exist.', 19, $this->source); })())) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["paiement_ref"]) || array_key_exists("paiement_ref", $context) ? $context["paiement_ref"] : (function () { throw new RuntimeError('Variable "paiement_ref" does not exist.', 19, $this->source); })()), "getMoyenPaiement", [], "any", false, false, false, 19), "getLibelleLong", [], "any", false, false, false, 19)) : (""));
        // line 20
        $context["mode_paiement_warning"] = ((isset($context["hors_contrat"]) || array_key_exists("hors_contrat", $context) ? $context["hors_contrat"] : (function () { throw new RuntimeError('Variable "hors_contrat" does not exist.', 20, $this->source); })()) &&  !(isset($context["moyen_paiement"]) || array_key_exists("moyen_paiement", $context) ? $context["moyen_paiement"] : (function () { throw new RuntimeError('Variable "moyen_paiement" does not exist.', 20, $this->source); })()));
        // line 21
        $context["ligne_mo"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 21, $this->source); })()), "getLigneMO", [], "any", false, false, false, 21);
        // line 22
        $context["ligne_deplacement"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 22, $this->source); })()), "getLigneDeplacement", [], "any", false, false, false, 22);
        // line 23
        $context["total_paiement"] = 0;
        // line 24
        $context["total_accompte"] = 0;
        // line 25
        $context["payeur_tiers"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 25, $this->source); })()), "getClientPayeurTiers", [], "any", false, false, false, 25);
        // line 26
        $context["id_paiement_acompte"] = "";
        // line 27
        $context["liste_paiement"] = [];
        // line 28
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 28, $this->source); })()), "factures", [], "any", false, false, false, 28));
        foreach ($context['_seq'] as $context["_key"] => $context["facture"]) {
            // line 29
            yield "    ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["facture"], "getPaiements", [], "any", false, false, false, 29));
            foreach ($context['_seq'] as $context["_key"] => $context["paiement"]) {
                // line 30
                yield "        ";
                $context["total_paiement"] = ((isset($context["total_paiement"]) || array_key_exists("total_paiement", $context) ? $context["total_paiement"] : (function () { throw new RuntimeError('Variable "total_paiement" does not exist.', 30, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "montantTTC", [], "any", false, false, false, 30));
                // line 31
                yield "        ";
                $context["liste_paiement"] = Twig\Extension\CoreExtension::merge((isset($context["liste_paiement"]) || array_key_exists("liste_paiement", $context) ? $context["liste_paiement"] : (function () { throw new RuntimeError('Variable "liste_paiement" does not exist.', 31, $this->source); })()), [$context["paiement"]]);
                // line 32
                yield "    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['paiement'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 33
            yield "    ";
            if (CoreExtension::getAttribute($this->env, $this->source, $context["facture"], "getFactureAcompte", [], "any", false, false, false, 33)) {
                // line 34
                yield "        ";
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["facture"], "getFactureAcompte", [], "any", false, false, false, 34), "getPaiements", [], "any", false, false, false, 34));
                foreach ($context['_seq'] as $context["_key"] => $context["paiement"]) {
                    // line 35
                    yield "            ";
                    $context["total_accompte"] = ((isset($context["total_accompte"]) || array_key_exists("total_accompte", $context) ? $context["total_accompte"] : (function () { throw new RuntimeError('Variable "total_accompte" does not exist.', 35, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "montantTTC", [], "any", false, false, false, 35));
                    // line 36
                    yield "            ";
                    $context["id_paiement_acompte"] = CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "id", [], "any", false, false, false, 36);
                    // line 37
                    yield "            ";
                    $context["liste_paiement"] = Twig\Extension\CoreExtension::merge((isset($context["liste_paiement"]) || array_key_exists("liste_paiement", $context) ? $context["liste_paiement"] : (function () { throw new RuntimeError('Variable "liste_paiement" does not exist.', 37, $this->source); })()), [$context["paiement"]]);
                    // line 38
                    yield "        ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['paiement'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 39
                yield "    ";
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['facture'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 41
        yield "
";
        // line 47
        yield "
<div class=\"d-flex flex-column px-1\" style=\"background:#ffffff; max-width:100%; overflow-x:auto;\">
    ";
        // line 50
        yield "    <div class=\"d-flex w-100 bg-grey\">
        ";
        // line 52
        yield "        <div class=\"d-flex flex-column\" style=\"width:586px;margin-right: 0.3rem;margin-bottom: 0.3rem;\">
            <div class=\"d-flex bg-primary flex-column\" style=\"margin-bottom: 0.3rem;\">
                <div class=\"text-center py-1 position-relative color-white\">Utilisateur</div>
                ";
        // line 55
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_utilisateur_readonly.html.twig");
        yield "
            </div>
            <div class=\"d-flex bg-primary flex-column\" style=\"margin-bottom: 0.3rem;\">
                <div class=\"text-center py-1 position-relative color-white\">Équipement</div>
                ";
        // line 59
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_equipement.html.twig");
        yield "
            </div>
            <div class=\"d-flex bg-primary flex-column\" style=\"margin-bottom: 0.3rem;\">
                <div class=\"text-center py-1 position-relative color-white\">";
        // line 62
        yield (((isset($context["contrat_echu"]) || array_key_exists("contrat_echu", $context) ? $context["contrat_echu"] : (function () { throw new RuntimeError('Variable "contrat_echu" does not exist.', 62, $this->source); })())) ? ("Contrat échu") : ("Contrat"));
        yield "</div>
                ";
        // line 63
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_contrat.html.twig");
        yield "
            </div>
            ";
        // line 66
        yield "            <div class=\"d-flex bg-primary flex-column\">
                <div class=\"text-center py-1 position-relative color-white\">Payeur tiers</div>
                ";
        // line 68
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_payeur_tiers_readonly.html.twig");
        yield "
            </div>
        </div>

        ";
        // line 73
        yield "        <div class=\"d-flex flex-column flex-grow-1\" style=\"margin-bottom: 0.3rem;\">
            <div class=\"d-flex bg-primary flex-column\" style=\"margin-bottom: 0.3rem;\">
                <div class=\"text-center py-1 position-relative color-white\">Intervention</div>
                ";
        // line 76
        $context["is_readonly"] = true;
        // line 77
        yield "                ";
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_intervention.html.twig");
        yield "
            </div>

            <div class=\"d-flex\" style=\"gap:0.3rem; margin-bottom: 0.3rem;\">
                <div class=\"d-flex bg-primary flex-column flex-grow-1\">
                    <div class=\"text-center py-1 position-relative color-white\">Documents</div>
                    ";
        // line 83
        $context["is_readonly"] = true;
        // line 84
        yield "                    ";
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_documents.html.twig");
        yield "
                </div>
                <div class=\"d-flex bg-primary flex-column\" style=\"width: 311px;\">
                    <div class=\"text-center py-1 position-relative color-white\">Secteur n°";
        // line 87
        ((((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 87, $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.', 87, $this->source); })()), "getSecteur", [], "any", false, false, false, 87)))) ? (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.', 87, $this->source); })()), "getSecteur", [], "any", false, false, false, 87), "html", null, true)) : (yield ""));
        yield "</div>
                    <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex flex-column align-content-center justify-content-center\">
                        <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 92
        (((((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 92, $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.', 92, $this->source); })()), "getSecteur", [], "any", false, false, false, 92)) && 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.', 92, $this->source); })()), "getSecteur", [], "any", false, false, false, 92), "getUtilisateurPlanning", [], "any", false, false, false, 92))) ? (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.', 92, $this->source); })()), "getSecteur", [], "any", false, false, false, 92), "getUtilisateurPlanning", [], "any", false, false, false, 92), "getCodeNom", [], "any", false, false, false, 92), "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\" class=\"form-control\" disabled
                                   value=\"";
        // line 98
        (((((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 98, $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.', 98, $this->source); })()), "getSecteur", [], "any", false, false, false, 98)) && 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.', 98, $this->source); })()), "getSecteur", [], "any", false, false, false, 98), "getAgentPrincipal", [], "any", false, false, false, 98))) ? (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.', 98, $this->source); })()), "getSecteur", [], "any", false, false, false, 98), "getAgentPrincipal", [], "any", false, false, false, 98), "getCodeNom", [], "any", false, false, false, 98), "html", null, true)) : (yield ""));
        yield "\"
                                   style=\"width: 183px;\">
                        </div>
                    </div>
                </div>
                <div class=\"d-flex bg-primary flex-column\" style=\"width: 392px;\">
                    <div class=\"d-flex bg-primary py-1 position-relative color-white\">
                        <div class=\"text-center w-100\">Planification</div>
                        ";
        // line 106
        $context["last_modif"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 106, $this->source); })()), "planning", [], "any", false, false, false, 106)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 106, $this->source); })()), "planning", [], "any", false, false, false, 106), "getLastPlanningHistoriqueModification", [], "any", false, false, false, 106)) : (null));
        // line 107
        yield "                        ";
        if ((isset($context["last_modif"]) || array_key_exists("last_modif", $context) ? $context["last_modif"] : (function () { throw new RuntimeError('Variable "last_modif" does not exist.', 107, $this->source); })())) {
            // line 108
            yield "                            <div style=\"position: absolute; right: 8px; top: 50%; transform: translateY(-50%);\">
                                <a data-popup-id=\"popup-history-planification-";
            // line 109
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 109, $this->source); })()), "id", [], "any", false, false, false, 109), "html", null, true);
            yield "\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Historique planification\" data-popup-width=\"auto\">
                                    <img src=\"";
            // line 110
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-historique.png"), "html", null, true);
            yield "\" width=\"20\" height=\"20\">
                                </a>
                            </div>
                        ";
        }
        // line 114
        yield "                    </div>
                    <div class=\"px-2 py-1 bg-white color-primary w-100 h-100 block-infos-container\">
                        <div class=\"d-flex flex-column\" style=\"gap:0.3rem;\">
                            ";
        // line 118
        yield "                            <div class=\"d-flex align-items-end\" style=\"gap:1rem;\">
                                <div class=\"d-flex flex-column\">
                                    <span style=\"color:#e95b5b;font-size:12px;\">Planification</span>
                                    <div class=\"d-flex align-items-center\">
                                        <label class=\"me-1\">le</label>
                                        <input type=\"text\" class=\"form-control bg-grey\" disabled
                                               value=\"";
        // line 124
        (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 124, $this->source); })()), "planning", [], "any", false, false, false, 124) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 124, $this->source); })()), "planning", [], "any", false, false, false, 124), "dateCreation", [], "any", false, false, false, 124))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 124, $this->source); })()), "planning", [], "any", false, false, false, 124), "dateCreation", [], "any", false, false, false, 124), "d/m/Y"), "html", null, true)) : (yield ""));
        yield "\"
                                               style=\"width: 110px;\">
                                    </div>
                                </div>
                                <div class=\"d-flex align-items-center flex-grow-1\">
                                    <label class=\"me-1\">par</label>
                                    <input type=\"text\" class=\"form-control bg-grey\" disabled
                                           value=\"";
        // line 131
        (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 131, $this->source); })()), "planning", [], "any", false, false, false, 131) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 131, $this->source); })()), "planning", [], "any", false, false, false, 131), "utilisateurPlanning", [], "any", false, false, false, 131))) ? (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["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 131, $this->source); })()), "planning", [], "any", false, false, false, 131), "utilisateurPlanning", [], "any", false, false, false, 131), "getCodeNom", [], "any", false, false, false, 131), "html", null, true)) : (yield ""));
        yield "\">
                                </div>
                            </div>

                            ";
        // line 136
        yield "                            <div class=\"d-flex align-items-end\" style=\"gap:1rem;\">
                                <div class=\"d-flex flex-column\">
                                    <span style=\"color:#e95b5b;font-size:12px;\">Dernière modification</span>
                                    <div class=\"d-flex align-items-center\">
                                        <label class=\"me-1\">le</label>
                                        <input type=\"text\" class=\"form-control bg-grey\" disabled
                                               value=\"";
        // line 142
        ((((isset($context["last_modif"]) || array_key_exists("last_modif", $context) ? $context["last_modif"] : (function () { throw new RuntimeError('Variable "last_modif" does not exist.', 142, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["last_modif"]) || array_key_exists("last_modif", $context) ? $context["last_modif"] : (function () { throw new RuntimeError('Variable "last_modif" does not exist.', 142, $this->source); })()), "date", [], "any", false, false, false, 142))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["last_modif"]) || array_key_exists("last_modif", $context) ? $context["last_modif"] : (function () { throw new RuntimeError('Variable "last_modif" does not exist.', 142, $this->source); })()), "date", [], "any", false, false, false, 142), "d/m/Y"), "html", null, true)) : (yield ""));
        yield "\"
                                               style=\"width: 110px;\">
                                    </div>
                                </div>
                                <div class=\"d-flex align-items-center flex-grow-1\">
                                    <label class=\"me-1\">par</label>
                                    <input type=\"text\" class=\"form-control bg-grey\" disabled
                                           value=\"";
        // line 149
        ((((isset($context["last_modif"]) || array_key_exists("last_modif", $context) ? $context["last_modif"] : (function () { throw new RuntimeError('Variable "last_modif" does not exist.', 149, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["last_modif"]) || array_key_exists("last_modif", $context) ? $context["last_modif"] : (function () { throw new RuntimeError('Variable "last_modif" does not exist.', 149, $this->source); })()), "utilisateurPlanning", [], "any", false, false, false, 149))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["last_modif"]) || array_key_exists("last_modif", $context) ? $context["last_modif"] : (function () { throw new RuntimeError('Variable "last_modif" does not exist.', 149, $this->source); })()), "utilisateurPlanning", [], "any", false, false, false, 149), "getCodeNom", [], "any", false, false, false, 149), "html", null, true)) : (yield ""));
        yield "\">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            ";
        // line 158
        yield "            <div class=\"d-flex bg-primary flex-column flex-grow-1\">
            <div class=\"text-center py-1 position-relative color-white\">Facturation</div>
            <div class=\"px-3 py-2 bg-white color-primary w-100 h-100 block-infos-container  \">
                ";
        // line 161
        $context["is_readonly"] = true;
        // line 162
        yield "                ";
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_facturation.html.twig");
        yield "
            </div>
        </div>
    </div>
    </div>
    ";
        // line 168
        yield "    <div class=\"d-flex w-100 mt-2\">
        ";
        // line 170
        yield "        <div class=\"d-flex flex-column\" style=\"margin-bottom: 0.3rem;margin-right: 0.3rem;width:1176px\">
            <div class=\"d-flex bg-primary py-1 position-relative color-white\">
                <div class=\"justify-content-center d-flex bg-primary w-100 align-items-center\">Validation technique</div>
            </div>
            <div class=\"px-2 bg-white color-primary w-100 block-infos-container d-flex justify-content-center\" style=\"min-height: 93px; height: 100%;\">
                ";
        // line 175
        if ( !CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 175, $this->source); })()), "getDateValidationTechnique", [], "any", false, false, false, 175)) {
            // line 176
            yield "                    <div class=\"d-flex flex-column justify-content-center align-items-center\">
                        <div class=\"d-flex\" style=\"align-items: self-end\">
                            <img src=\"";
            // line 178
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-intervention-warning.png"), "html", null, true);
            yield "\" width=\"24\" height=\"24\" class=\"me-2\">
                            <span class=\"color-rouge\" style=\"font-size: 15px;font-weight: 700\">En attente de validation</span>
                        </div>
                    </div>
                ";
        } else {
            // line 183
            yield "                    ";
            $context["utilisateur_valid"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 183, $this->source); })()), "getUtilisateurValidationTechnique", [], "any", false, false, false, 183);
            // line 184
            yield "                    <div class=\"w-100 d-flex\" style=\"padding:12px 24px\">
                        <div class=\"d-flex flex-column\">
                            <div style=\"font-size: 15px;\">
                                Fiche contrôlée le
                                <span class=\"color-vert fw-bold\">";
            // line 188
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 188, $this->source); })()), "getDateValidationTechnique", [], "any", false, false, false, 188), "d/m/Y à H:i"), "html", null, true);
            yield "</span>
                                par
                                <span class=\"color-vert fw-bold\">
                                    ";
            // line 193
            ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,             // line 191
(isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 191, $this->source); })()), "getTypeValidationTechnique", [], "any", false, false, false, 191), "isValidationAutomatique", [], "any", false, false, false, 191)) ? (yield "Validation automatique") : (((            // line 193
(isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 193, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((Twig\Extension\CoreExtension::upper($this->env->getCharset(), Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 193, $this->source); })()), "prenom", [], "any", false, false, false, 193), 0, 1)) . ".") . Twig\Extension\CoreExtension::upper($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 193, $this->source); })()), "nom", [], "any", false, false, false, 193))), "html", null, true)) : (yield ""))));
            yield "
                                </span>
                            </div>
                            <div class=\"d-flex align-items-center mt-3\">
                                <label style=\"width:112px;\">Type de validation</label>
                                <input type=\"text\" style=\"width:220px\" disabled class=\"form-control\"
                                       value=\"";
            // line 199
            ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 199, $this->source); })()), "typeValidationTechnique", [], "any", false, false, false, 199)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 199, $this->source); })()), "typeValidationTechnique", [], "any", false, false, false, 199), "libelleTechnique", [], "any", false, false, false, 199), "html", null, true)) : (yield ""));
            yield "\">
                            </div>
                        </div>
                        <div class=\"d-flex flex-column ms-auto\">
                            <div class=\"d-flex align-items-center\">
                                <label style=\"width:91px;\">Commentaires</label>
                                <textarea style=\"height:85px;width:514px;text-align: left\" disabled class=\"form-control\">
";
            // line 206
            ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 206, $this->source); })()), "commentaireTechnique", [], "any", false, false, false, 206)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::trim(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 206, $this->source); })()), "commentaireTechnique", [], "any", false, false, false, 206)), "html", null, true)) : (yield ""));
            yield "
                                </textarea>
                            </div>
                        </div>
                    </div>
                ";
        }
        // line 212
        yield "            </div>
        </div>

        ";
        // line 216
        yield "        <div class=\"d-flex flex-column flex-grow-1\" style=\"margin-bottom: 0.3rem;min-width: 512px;\">
            <div class=\"text-center py-1 position-relative color-white bg-primary\">Validation administrative</div>
            <div class=\"px-2 bg-white color-primary w-100 block-infos-container d-flex align-items-center justify-content-center\" style=\"padding-top: 25px; padding-bottom: 17px;height: 100%;\">
                <div class=\"d-flex justify-content-center align-items-center\">
                    <div class=\"d-flex flex-column justify-content-center align-items-center\" style=\"gap:7px;\">
                        ";
        // line 221
        if ( !CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 221, $this->source); })()), "getDateValidationAdm", [], "any", false, false, false, 221)) {
            // line 222
            yield "                            <div class=\"d-flex align-items-end\">
                                <img src=\"";
            // line 223
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-intervention-warning.png"), "html", null, true);
            yield "\" width=\"24\" height=\"24\" class=\"me-2\">
                                <span class=\"color-rouge\" style=\"font-size: 15px;font-weight: 700\">En attente de validation</span>
                            </div>
                        ";
        } else {
            // line 227
            yield "                            ";
            $context["utilisateur_valid"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 227, $this->source); })()), "getUtilisateurValidationAdm", [], "any", false, false, false, 227);
            // line 228
            yield "                            <div style=\"font-weight: 700;font-size: 15px;\">
                                Fiche contrôlée le
                                <span class=\"color-vert\">
                                    ";
            // line 231
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 231, $this->source); })()), "getDateValidationAdm", [], "any", false, false, false, 231), "d/m/Y à H:i"), "html", null, true);
            yield "
                                </span>
                                par
                                <span class=\"color-vert\">
                                    ";
            // line 239
            ((CoreExtension::getAttribute($this->env, $this->source,             // line 235
(isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 235, $this->source); })()), "getTypeValidationAdm", [], "any", false, false, false, 235)) ? (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,             // line 236
(isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 236, $this->source); })()), "getTypeValidationAdm", [], "any", false, false, false, 236), "isValidationAutomatique", [], "any", false, false, false, 236)) ? (yield "Validation automatique") : (((            // line 238
(isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 238, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((Twig\Extension\CoreExtension::upper($this->env->getCharset(), Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 238, $this->source); })()), "prenom", [], "any", false, false, false, 238), 0, 1)) . ".") . Twig\Extension\CoreExtension::upper($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 238, $this->source); })()), "nom", [], "any", false, false, false, 238))), "html", null, true)) : (yield ""))))) : (yield ""));
            // line 239
            yield "
                                </span>
                            </div>
                        ";
        }
        // line 243
        yield "                    </div>
                </div>
            </div>
        </div>
    </div>

    ";
        // line 250
        yield "    <div class=\"d-flex w-100 mt-2\" style=\"gap: 0.3rem;\">
        ";
        // line 252
        yield "        <div class=\"d-flex bg-primary flex-column \" style=\"width:1176px;\">
            <div class=\"text-center py-1 position-relative color-white\">Paiement</div>
            <div class=\"py-2 bg-white color-primary w-100 h-100 block-infos-container\" style=\"padding-left:40px;padding-right:40px;\">
                ";
        // line 256
        yield "                ";
        $context["total_ht_pieces"] = 0;
        // line 257
        yield "                ";
        $context["total_tva_pieces"] = 0;
        // line 258
        yield "                ";
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 258, $this->source); })()), "factures", [], "any", false, false, false, 258));
        foreach ($context['_seq'] as $context["_key"] => $context["facture"]) {
            // line 259
            yield "                    ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["facture"], "getFactureLignes", [], "any", false, false, false, 259));
            foreach ($context['_seq'] as $context["_key"] => $context["factureLigne"]) {
                // line 260
                yield "                        ";
                if (((CoreExtension::getAttribute($this->env, $this->source, $context["factureLigne"], "getProduit", [], "any", false, false, false, 260) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["factureLigne"], "getProduit", [], "any", false, false, false, 260), "getProduitType", [], "any", false, false, false, 260)) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["factureLigne"], "getProduit", [], "any", false, false, false, 260), "getProduitType", [], "any", false, false, false, 260), "id", [], "any", false, false, false, 260), 1)))) {
                    // line 261
                    yield "                            ";
                    $context["total_ht_pieces"] = ((isset($context["total_ht_pieces"]) || array_key_exists("total_ht_pieces", $context) ? $context["total_ht_pieces"] : (function () { throw new RuntimeError('Variable "total_ht_pieces" does not exist.', 261, $this->source); })()) + ((CoreExtension::getAttribute($this->env, $this->source, $context["factureLigne"], "getPrixTotalHt", [], "any", false, false, false, 261)) ? (CoreExtension::getAttribute($this->env, $this->source, $context["factureLigne"], "getPrixTotalHt", [], "any", false, false, false, 261)) : (0)));
                    // line 262
                    yield "                            ";
                    $context["tva"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["factureLigne"], "getTauxTva", [], "any", false, false, false, 262)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["factureLigne"], "getTauxTva", [], "any", false, false, false, 262), "taux", [], "any", false, false, false, 262)) : (0));
                    // line 263
                    yield "                            ";
                    $context["montant"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["factureLigne"], "getPrixTotalHt", [], "any", false, false, false, 263)) ? (CoreExtension::getAttribute($this->env, $this->source, $context["factureLigne"], "getPrixTotalHt", [], "any", false, false, false, 263)) : (0));
                    // line 264
                    yield "                            ";
                    $context["total_tva_pieces"] = ((isset($context["total_tva_pieces"]) || array_key_exists("total_tva_pieces", $context) ? $context["total_tva_pieces"] : (function () { throw new RuntimeError('Variable "total_tva_pieces" does not exist.', 264, $this->source); })()) + (((isset($context["montant"]) || array_key_exists("montant", $context) ? $context["montant"] : (function () { throw new RuntimeError('Variable "montant" does not exist.', 264, $this->source); })()) * (isset($context["tva"]) || array_key_exists("tva", $context) ? $context["tva"] : (function () { throw new RuntimeError('Variable "tva" does not exist.', 264, $this->source); })())) / 100));
                    // line 265
                    yield "                        ";
                }
                // line 266
                yield "                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['factureLigne'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 267
            yield "                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['facture'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 268
        yield "                ";
        $context["deplacement_ttc"] = 0;
        // line 269
        yield "                ";
        if ((isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 269, $this->source); })())) {
            // line 270
            yield "                    ";
            $context["tva"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 270, $this->source); })()), "getTauxTva", [], "any", false, false, false, 270)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 270, $this->source); })()), "getTauxTva", [], "any", false, false, false, 270), "taux", [], "any", false, false, false, 270)) : (0));
            // line 271
            yield "                    ";
            $context["montant"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 271, $this->source); })()), "getPrixTotalHt", [], "any", false, false, false, 271)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 271, $this->source); })()), "getPrixTotalHt", [], "any", false, false, false, 271)) : (0));
            // line 272
            yield "                    ";
            $context["deplacement_ttc"] = ((isset($context["montant"]) || array_key_exists("montant", $context) ? $context["montant"] : (function () { throw new RuntimeError('Variable "montant" does not exist.', 272, $this->source); })()) + (((isset($context["montant"]) || array_key_exists("montant", $context) ? $context["montant"] : (function () { throw new RuntimeError('Variable "montant" does not exist.', 272, $this->source); })()) * (isset($context["tva"]) || array_key_exists("tva", $context) ? $context["tva"] : (function () { throw new RuntimeError('Variable "tva" does not exist.', 272, $this->source); })())) / 100));
            // line 273
            yield "                ";
        }
        // line 274
        yield "                ";
        $context["mo_ttc"] = 0;
        // line 275
        yield "                ";
        if ((isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 275, $this->source); })())) {
            // line 276
            yield "                    ";
            $context["tva"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 276, $this->source); })()), "getTauxTva", [], "any", false, false, false, 276)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 276, $this->source); })()), "getTauxTva", [], "any", false, false, false, 276), "taux", [], "any", false, false, false, 276)) : (0));
            // line 277
            yield "                    ";
            $context["montant"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 277, $this->source); })()), "getPrixTotalHt", [], "any", false, false, false, 277)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 277, $this->source); })()), "getPrixTotalHt", [], "any", false, false, false, 277)) : (0));
            // line 278
            yield "                    ";
            $context["mo_ttc"] = ((isset($context["montant"]) || array_key_exists("montant", $context) ? $context["montant"] : (function () { throw new RuntimeError('Variable "montant" does not exist.', 278, $this->source); })()) + (((isset($context["montant"]) || array_key_exists("montant", $context) ? $context["montant"] : (function () { throw new RuntimeError('Variable "montant" does not exist.', 278, $this->source); })()) * (isset($context["tva"]) || array_key_exists("tva", $context) ? $context["tva"] : (function () { throw new RuntimeError('Variable "tva" does not exist.', 278, $this->source); })())) / 100));
            // line 279
            yield "                ";
        }
        // line 280
        yield "                <div class=\"d-flex justify-content-between\">
                    ";
        // line 282
        yield "                    <div style=\"max-height: 105.5px; overflow: auto;width: 660px;margin-right: 2rem;\">
                        <table class=\"table table-responsive table-sm table-inverse-color-datagrid mb-0\" style=\"border: 1px solid #E0E0E0;\">
                            <thead>
                                <th>Date</th>
                                <th>Montant</th>
                                <th>Date prévue enc.</th>
                                <th>Mode paiement</th>
                                <th>Date enc.</th>
                            </thead>
                            <tbody style=\"height: 74px\">
                                ";
        // line 292
        $context["nb_line"] = 0;
        // line 293
        yield "                                ";
        if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["liste_paiement"]) || array_key_exists("liste_paiement", $context) ? $context["liste_paiement"] : (function () { throw new RuntimeError('Variable "liste_paiement" does not exist.', 293, $this->source); })())), 0))) {
            // line 294
            yield "                                    ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable((isset($context["liste_paiement"]) || array_key_exists("liste_paiement", $context) ? $context["liste_paiement"] : (function () { throw new RuntimeError('Variable "liste_paiement" does not exist.', 294, $this->source); })()));
            foreach ($context['_seq'] as $context["_key"] => $context["paiement"]) {
                // line 295
                yield "                                        ";
                $context["nb_line"] = ((isset($context["nb_line"]) || array_key_exists("nb_line", $context) ? $context["nb_line"] : (function () { throw new RuntimeError('Variable "nb_line" does not exist.', 295, $this->source); })()) + 1);
                // line 296
                yield "                                        <tr>
                                            <td class=\"text-center\">";
                // line 297
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "date", [], "any", false, false, false, 297), "d/m/Y"), "html", null, true);
                yield "</td>
                                            <td class=\"text-center\">";
                // line 298
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "montantTtc", [], "any", false, false, false, 298), 2, ",", " "), "html", null, true);
                yield " €</td>
                                            <td class=\"text-center\">";
                // line 299
                ((CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "datePrevisionnelle", [], "any", false, false, false, 299)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "datePrevisionnelle", [], "any", false, false, false, 299), "d/m/Y"), "html", null, true)) : (yield ""));
                yield "</td>
                                            <td class=\"text-center\">";
                // line 300
                ((CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "moyenPaiement", [], "any", false, false, false, 300)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "moyenPaiement", [], "any", false, false, false, 300), "libelleCourt", [], "any", false, false, false, 300), "html", null, true)) : (yield ""));
                yield "</td>
                                            <td class=\"text-center\"></td>
                                        </tr>
                                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['paiement'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 304
            yield "                                    ";
            $context["emptyRows"] = (3 - (isset($context["nb_line"]) || array_key_exists("nb_line", $context) ? $context["nb_line"] : (function () { throw new RuntimeError('Variable "nb_line" does not exist.', 304, $this->source); })()));
            // line 305
            yield "                                    ";
            if ((1 === CoreExtension::compare((isset($context["emptyRows"]) || array_key_exists("emptyRows", $context) ? $context["emptyRows"] : (function () { throw new RuntimeError('Variable "emptyRows" does not exist.', 305, $this->source); })()), 0))) {
                // line 306
                yield "                                        ";
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(range(1, (isset($context["emptyRows"]) || array_key_exists("emptyRows", $context) ? $context["emptyRows"] : (function () { throw new RuntimeError('Variable "emptyRows" does not exist.', 306, $this->source); })())));
                foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                    // line 307
                    yield "                                            <tr style=\"height: 25px\"><td colspan=\"5\"></td></tr>
                                        ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 309
                yield "                                    ";
            }
            // line 310
            yield "                                ";
        } else {
            // line 311
            yield "                                    <tr style=\"height: 25px\"><td colspan=\"5\"></td></tr>
                                    <tr style=\"height: 25px\"><td colspan=\"5\"></td></tr>
                                    <tr style=\"height: 25px\"><td colspan=\"5\"></td></tr>
                                ";
        }
        // line 315
        yield "                            </tbody>
                        </table>
                    </div>
                    ";
        // line 319
        yield "                    <div class=\"d-flex flex-column justify-content-center ms-auto\">
                        ";
        // line 320
        $context["total_ht_global"] = (((isset($context["total_ht_pieces"]) || array_key_exists("total_ht_pieces", $context) ? $context["total_ht_pieces"] : (function () { throw new RuntimeError('Variable "total_ht_pieces" does not exist.', 320, $this->source); })()) + (((isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 320, $this->source); })())) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 320, $this->source); })()), "getPrixTotalHt", [], "any", false, false, false, 320)) : (0))) + (((isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 320, $this->source); })())) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 320, $this->source); })()), "getPrixTotalHt", [], "any", false, false, false, 320)) : (0)));
        // line 321
        yield "                        ";
        $context["total_tva_global"] = (((isset($context["total_tva_pieces"]) || array_key_exists("total_tva_pieces", $context) ? $context["total_tva_pieces"] : (function () { throw new RuntimeError('Variable "total_tva_pieces" does not exist.', 321, $this->source); })()) + ((isset($context["mo_ttc"]) || array_key_exists("mo_ttc", $context) ? $context["mo_ttc"] : (function () { throw new RuntimeError('Variable "mo_ttc" does not exist.', 321, $this->source); })()) - (((isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 321, $this->source); })())) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 321, $this->source); })()), "getPrixTotalHt", [], "any", false, false, false, 321)) : (0)))) + ((isset($context["deplacement_ttc"]) || array_key_exists("deplacement_ttc", $context) ? $context["deplacement_ttc"] : (function () { throw new RuntimeError('Variable "deplacement_ttc" does not exist.', 321, $this->source); })()) - (((isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 321, $this->source); })())) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 321, $this->source); })()), "getPrixTotalHt", [], "any", false, false, false, 321)) : (0))));
        // line 322
        yield "                        ";
        $context["total_ttc_global"] = ((isset($context["total_ht_global"]) || array_key_exists("total_ht_global", $context) ? $context["total_ht_global"] : (function () { throw new RuntimeError('Variable "total_ht_global" does not exist.', 322, $this->source); })()) + (isset($context["total_tva_global"]) || array_key_exists("total_tva_global", $context) ? $context["total_tva_global"] : (function () { throw new RuntimeError('Variable "total_tva_global" does not exist.', 322, $this->source); })()));
        // line 323
        yield "                        ";
        $context["total_facture"] = 0;
        // line 324
        yield "                        ";
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 324, $this->source); })()), "factures", [], "any", false, false, false, 324));
        foreach ($context['_seq'] as $context["_key"] => $context["facture"]) {
            // line 325
            yield "                            ";
            $context["total_facture"] = ((isset($context["total_facture"]) || array_key_exists("total_facture", $context) ? $context["total_facture"] : (function () { throw new RuntimeError('Variable "total_facture" does not exist.', 325, $this->source); })()) + ((CoreExtension::getAttribute($this->env, $this->source, $context["facture"], "montantTtc", [], "any", false, false, false, 325)) ? (CoreExtension::getAttribute($this->env, $this->source, $context["facture"], "montantTtc", [], "any", false, false, false, 325)) : (0)));
            // line 326
            yield "                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['facture'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 327
        yield "                        ";
        $context["ecart"] = ((isset($context["total_ttc_global"]) || array_key_exists("total_ttc_global", $context) ? $context["total_ttc_global"] : (function () { throw new RuntimeError('Variable "total_ttc_global" does not exist.', 327, $this->source); })()) - (isset($context["total_facture"]) || array_key_exists("total_facture", $context) ? $context["total_facture"] : (function () { throw new RuntimeError('Variable "total_facture" does not exist.', 327, $this->source); })()));
        // line 328
        yield "                        ";
        $context["restant_du"] = ((isset($context["total_ttc_global"]) || array_key_exists("total_ttc_global", $context) ? $context["total_ttc_global"] : (function () { throw new RuntimeError('Variable "total_ttc_global" does not exist.', 328, $this->source); })()) - (isset($context["total_paiement"]) || array_key_exists("total_paiement", $context) ? $context["total_paiement"] : (function () { throw new RuntimeError('Variable "total_paiement" does not exist.', 328, $this->source); })()));
        // line 329
        yield "                        ";
        // line 330
        yield "                        <div class=\"d-flex mb-3\" style=\"gap: 20px;\">
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange\">Total HT</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"";
        // line 333
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((isset($context["total_ht_global"]) || array_key_exists("total_ht_global", $context) ? $context["total_ht_global"] : (function () { throw new RuntimeError('Variable "total_ht_global" does not exist.', 333, $this->source); })()), 2, ",", " "), "html", null, true);
        yield "€\">
                            </div>
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange \">Total TVA</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"";
        // line 337
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((isset($context["total_tva_global"]) || array_key_exists("total_tva_global", $context) ? $context["total_tva_global"] : (function () { throw new RuntimeError('Variable "total_tva_global" does not exist.', 337, $this->source); })()), 2, ",", " "), "html", null, true);
        yield "€\">
                            </div>
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange\">Total TTC</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"";
        // line 341
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((isset($context["total_ttc_global"]) || array_key_exists("total_ttc_global", $context) ? $context["total_ttc_global"] : (function () { throw new RuntimeError('Variable "total_ttc_global" does not exist.', 341, $this->source); })()), 2, ",", " "), "html", null, true);
        yield "€\">
                            </div>
                        </div>
                        ";
        // line 345
        yield "                        <div class=\"d-flex\" style=\"gap: 20px;\">
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange \">Total perçu</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"";
        // line 348
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((isset($context["total_paiement"]) || array_key_exists("total_paiement", $context) ? $context["total_paiement"] : (function () { throw new RuntimeError('Variable "total_paiement" does not exist.', 348, $this->source); })()), 2, ",", " "), "html", null, true);
        yield "€\">
                            </div>
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange \">Restant dû</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"";
        // line 352
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((isset($context["restant_du"]) || array_key_exists("restant_du", $context) ? $context["restant_du"] : (function () { throw new RuntimeError('Variable "restant_du" does not exist.', 352, $this->source); })()), 2, ",", " "), "html", null, true);
        yield "€\">
                            </div>
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange \">Ecart</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"";
        // line 356
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((isset($context["ecart"]) || array_key_exists("ecart", $context) ? $context["ecart"] : (function () { throw new RuntimeError('Variable "ecart" does not exist.', 356, $this->source); })()), 2, ",", " "), "html", null, true);
        yield "€\">
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        ";
        // line 365
        yield "        <div class=\"d-flex bg-primary flex-column flex-grow-1\">
            <div class=\"text-center py-1 position-relative color-white\">
                Relances de paiement
                <i class=\"fa fa-refresh ms-2\" style=\"position: absolute; right: 8px; top: 50%; transform: translateY(-50%);\"></i>
            </div>
            <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex justify-content-center align-items-center\">
                <div class=\"text-center\">Aucune relance en cours</div>
            </div>
        </div>
    </div>
</div>


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

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  739 => 365,  728 => 356,  721 => 352,  714 => 348,  709 => 345,  703 => 341,  696 => 337,  689 => 333,  684 => 330,  682 => 329,  679 => 328,  676 => 327,  670 => 326,  667 => 325,  662 => 324,  659 => 323,  656 => 322,  653 => 321,  651 => 320,  648 => 319,  643 => 315,  637 => 311,  634 => 310,  631 => 309,  624 => 307,  619 => 306,  616 => 305,  613 => 304,  603 => 300,  599 => 299,  595 => 298,  591 => 297,  588 => 296,  585 => 295,  580 => 294,  577 => 293,  575 => 292,  563 => 282,  560 => 280,  557 => 279,  554 => 278,  551 => 277,  548 => 276,  545 => 275,  542 => 274,  539 => 273,  536 => 272,  533 => 271,  530 => 270,  527 => 269,  524 => 268,  518 => 267,  512 => 266,  509 => 265,  506 => 264,  503 => 263,  500 => 262,  497 => 261,  494 => 260,  489 => 259,  484 => 258,  481 => 257,  478 => 256,  473 => 252,  470 => 250,  462 => 243,  456 => 239,  454 => 238,  453 => 236,  452 => 235,  451 => 239,  444 => 231,  439 => 228,  436 => 227,  429 => 223,  426 => 222,  424 => 221,  417 => 216,  412 => 212,  403 => 206,  393 => 199,  384 => 193,  383 => 191,  382 => 193,  376 => 188,  370 => 184,  367 => 183,  359 => 178,  355 => 176,  353 => 175,  346 => 170,  343 => 168,  334 => 162,  332 => 161,  327 => 158,  316 => 149,  306 => 142,  298 => 136,  291 => 131,  281 => 124,  273 => 118,  268 => 114,  261 => 110,  257 => 109,  254 => 108,  251 => 107,  249 => 106,  238 => 98,  229 => 92,  221 => 87,  214 => 84,  212 => 83,  202 => 77,  200 => 76,  195 => 73,  188 => 68,  184 => 66,  179 => 63,  175 => 62,  169 => 59,  162 => 55,  157 => 52,  154 => 50,  150 => 47,  147 => 41,  140 => 39,  134 => 38,  131 => 37,  128 => 36,  125 => 35,  120 => 34,  117 => 33,  111 => 32,  108 => 31,  105 => 30,  100 => 29,  96 => 28,  94 => 27,  92 => 26,  90 => 25,  88 => 24,  86 => 23,  84 => 22,  82 => 21,  80 => 20,  78 => 19,  76 => 18,  74 => 17,  72 => 16,  70 => 15,  68 => 14,  66 => 13,  64 => 12,  62 => 11,  60 => 10,  58 => 9,  56 => 8,  54 => 7,  52 => 6,  50 => 4,  48 => 3,  46 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% set equipement = intervention.equipement %}
{% set equipementHauteur = equipement and equipement.getEquipementHauteurs[0] is defined ? equipement.getEquipementHauteurs[0] : null %}
{% set is_pac = equipement and equipement.equipementFamille and equipement.equipementFamille.id == 10 %}
{% set affichage = 'validation' %}
{# on force type à 'technique' pour que tous les champs soient désactivés (#type == 'technique' ? 'disabled') #}
{% set type = 'technique' %}
{% set disabled = 'disabled' %}
{% set souscripteur = equipement ? equipement.getClientSouscripteur : null %}
{% set pac_id = constant('App\\\\Entity\\\\EquipementFamille::FAMILLE_PAC_ID') %}
{% set contrat = equipement ? equipement.getLastContrat : null %}
{% set isGU = (contrat is null and equipement and equipement.datePremierAllumage and equipement.datePremierAllumage|date_modify(\"+1 year\")|date('U') >= \"now\"|date('U')) ? true : false %}
{% set contrat_echu = (contrat and contrat.dateFinContrat < 'now'|date and not isGU) ? true : false %}
{% set prise_contrat = intervention.estPriseContrat %}
{% set hors_contrat = not contrat or contrat_echu %}
{% set agent = intervention.planning.getUtilisateurAgent %}
{% set binome_manquant_init = (intervention.getTypePlanification and intervention.getTypePlanification.getCategoriePlanification.isInterne and not agent.getActiveUtilisateurAffectation.getUtilisateurBinome  ) %}
{% set binome_manquant_int = (intervention.planning.getTypePlanificationInit.getCategoriePlanification.isInterne and not agent.getActiveUtilisateurAffectation.getUtilisateurBinome  ) %}
{% set paiement_ref =  intervention.getFactures|first and intervention.getFactures|first.getPaiements|first  and intervention.getFactures|first.getPaiements|first.getMoyenPaiement ? intervention.getFactures|first.getPaiements|first : null %}
{% set moyen_paiement = paiement_ref ? paiement_ref.getMoyenPaiement.getLibelleLong : '' %}
{% set mode_paiement_warning = hors_contrat and not moyen_paiement %}
{% set ligne_mo = intervention.getLigneMO %}
{% set ligne_deplacement = intervention.getLigneDeplacement %}
{% set total_paiement = 0 %}
{% set total_accompte = 0 %}
{% set payeur_tiers = intervention.getClientPayeurTiers %}
{% set id_paiement_acompte = '' %}
{% set liste_paiement = [] %}
{% for facture in intervention.factures %}
    {% for paiement in facture.getPaiements %}
        {% set total_paiement = total_paiement + paiement.montantTTC %}
        {% set liste_paiement = liste_paiement|merge([paiement]) %}
    {% endfor %}
    {% if facture.getFactureAcompte %}
        {% for paiement in facture.getFactureAcompte.getPaiements %}
            {% set total_accompte = total_accompte + paiement.montantTTC %}
            {% set id_paiement_acompte = paiement.id %}
            {% set liste_paiement = liste_paiement|merge([paiement]) %}
        {% endfor %}
    {% endif %}
{% endfor %}

{# 
  Fiche intervention en lecture seule.
  On réutilise les mêmes blocs que la validation, mais sans formulaire ni actions.
  Les blocs utilisent déjà les variables définies ci-dessus.
#}

<div class=\"d-flex flex-column px-1\" style=\"background:#ffffff; max-width:100%; overflow-x:auto;\">
    {# Ligne 1 : colonne gauche + colonne droite #}
    <div class=\"d-flex w-100 bg-grey\">
        {# Colonne gauche : Client / Utilisateur, Equipement, Contrat, Payeur tiers #}
        <div class=\"d-flex flex-column\" style=\"width:586px;margin-right: 0.3rem;margin-bottom: 0.3rem;\">
            <div class=\"d-flex bg-primary flex-column\" style=\"margin-bottom: 0.3rem;\">
                <div class=\"text-center py-1 position-relative color-white\">Utilisateur</div>
                {{ include('intervention/bloc_utilisateur_readonly.html.twig') }}
            </div>
            <div class=\"d-flex bg-primary flex-column\" style=\"margin-bottom: 0.3rem;\">
                <div class=\"text-center py-1 position-relative color-white\">Équipement</div>
                {{ include('intervention/bloc_equipement.html.twig') }}
            </div>
            <div class=\"d-flex bg-primary flex-column\" style=\"margin-bottom: 0.3rem;\">
                <div class=\"text-center py-1 position-relative color-white\">{{ contrat_echu ? 'Contrat échu' : 'Contrat' }}</div>
                {{ include('intervention/bloc_contrat.html.twig') }}
            </div>
            {# Payeur tiers en dessous du contrat #}
            <div class=\"d-flex bg-primary flex-column\">
                <div class=\"text-center py-1 position-relative color-white\">Payeur tiers</div>
                {{ include('intervention/bloc_payeur_tiers_readonly.html.twig') }}
            </div>
        </div>

        {# Colonne droite : Intervention, puis Documents/Secteur/Planification, puis Facturation #}
        <div class=\"d-flex flex-column flex-grow-1\" style=\"margin-bottom: 0.3rem;\">
            <div class=\"d-flex bg-primary flex-column\" style=\"margin-bottom: 0.3rem;\">
                <div class=\"text-center py-1 position-relative color-white\">Intervention</div>
                {% set is_readonly = true %}
                {{ include('intervention/bloc_intervention.html.twig') }}
            </div>

            <div class=\"d-flex\" style=\"gap:0.3rem; margin-bottom: 0.3rem;\">
                <div class=\"d-flex bg-primary flex-column flex-grow-1\">
                    <div class=\"text-center py-1 position-relative color-white\">Documents</div>
                    {% set is_readonly = true %}
                    {{ include('intervention/bloc_documents.html.twig') }}
                </div>
                <div class=\"d-flex bg-primary flex-column\" style=\"width: 311px;\">
                    <div class=\"text-center py-1 position-relative color-white\">Secteur n°{{ equipement and equipement.getSecteur is not null ? equipement.getSecteur : '' }}</div>
                    <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex flex-column align-content-center justify-content-center\">
                        <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 and 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\" class=\"form-control\" disabled
                                   value=\"{{ (equipement and equipement.getSecteur and equipement.getSecteur.getAgentPrincipal) ? equipement.getSecteur.getAgentPrincipal.getCodeNom : '' }}\"
                                   style=\"width: 183px;\">
                        </div>
                    </div>
                </div>
                <div class=\"d-flex bg-primary flex-column\" style=\"width: 392px;\">
                    <div class=\"d-flex bg-primary py-1 position-relative color-white\">
                        <div class=\"text-center w-100\">Planification</div>
                        {% set last_modif = intervention.planning ? intervention.planning.getLastPlanningHistoriqueModification : null %}
                        {% if last_modif %}
                            <div style=\"position: absolute; right: 8px; top: 50%; transform: translateY(-50%);\">
                                <a data-popup-id=\"popup-history-planification-{{ intervention.id }}\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Historique planification\" data-popup-width=\"auto\">
                                    <img src=\"{{ asset('build/images/picto-historique.png') }}\" width=\"20\" height=\"20\">
                                </a>
                            </div>
                        {% endif %}
                    </div>
                    <div class=\"px-2 py-1 bg-white color-primary w-100 h-100 block-infos-container\">
                        <div class=\"d-flex flex-column\" style=\"gap:0.3rem;\">
                            {# Ligne 1 : Planification #}
                            <div class=\"d-flex align-items-end\" style=\"gap:1rem;\">
                                <div class=\"d-flex flex-column\">
                                    <span style=\"color:#e95b5b;font-size:12px;\">Planification</span>
                                    <div class=\"d-flex align-items-center\">
                                        <label class=\"me-1\">le</label>
                                        <input type=\"text\" class=\"form-control bg-grey\" disabled
                                               value=\"{{ intervention.planning and intervention.planning.dateCreation ? intervention.planning.dateCreation|date('d/m/Y') : '' }}\"
                                               style=\"width: 110px;\">
                                    </div>
                                </div>
                                <div class=\"d-flex align-items-center flex-grow-1\">
                                    <label class=\"me-1\">par</label>
                                    <input type=\"text\" class=\"form-control bg-grey\" disabled
                                           value=\"{{ intervention.planning and intervention.planning.utilisateurPlanning ? intervention.planning.utilisateurPlanning.getCodeNom : '' }}\">
                                </div>
                            </div>

                            {# Ligne 2 : Dernière modification #}
                            <div class=\"d-flex align-items-end\" style=\"gap:1rem;\">
                                <div class=\"d-flex flex-column\">
                                    <span style=\"color:#e95b5b;font-size:12px;\">Dernière modification</span>
                                    <div class=\"d-flex align-items-center\">
                                        <label class=\"me-1\">le</label>
                                        <input type=\"text\" class=\"form-control bg-grey\" disabled
                                               value=\"{{ last_modif and last_modif.date ? last_modif.date|date('d/m/Y') : '' }}\"
                                               style=\"width: 110px;\">
                                    </div>
                                </div>
                                <div class=\"d-flex align-items-center flex-grow-1\">
                                    <label class=\"me-1\">par</label>
                                    <input type=\"text\" class=\"form-control bg-grey\" disabled
                                           value=\"{{ last_modif and last_modif.utilisateurPlanning ? last_modif.utilisateurPlanning.getCodeNom : '' }}\">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            {# Facturation en bas à droite #}
            <div class=\"d-flex bg-primary flex-column flex-grow-1\">
            <div class=\"text-center py-1 position-relative color-white\">Facturation</div>
            <div class=\"px-3 py-2 bg-white color-primary w-100 h-100 block-infos-container  \">
                {% set is_readonly = true %}
                {{ include('intervention/bloc_facturation.html.twig') }}
            </div>
        </div>
    </div>
    </div>
    {# Ligne 2 : validations, toujours sous la ligne 1 #}
    <div class=\"d-flex w-100 mt-2\">
        {# Validation technique en lecture seule : on laisse les messages mais pas les boutons #}
        <div class=\"d-flex flex-column\" style=\"margin-bottom: 0.3rem;margin-right: 0.3rem;width:1176px\">
            <div class=\"d-flex bg-primary py-1 position-relative color-white\">
                <div class=\"justify-content-center d-flex bg-primary w-100 align-items-center\">Validation technique</div>
            </div>
            <div class=\"px-2 bg-white color-primary w-100 block-infos-container d-flex justify-content-center\" style=\"min-height: 93px; height: 100%;\">
                {% if not intervention.getDateValidationTechnique %}
                    <div class=\"d-flex flex-column justify-content-center align-items-center\">
                        <div class=\"d-flex\" style=\"align-items: self-end\">
                            <img src=\"{{ asset('build/images/picto-intervention-warning.png') }}\" width=\"24\" height=\"24\" class=\"me-2\">
                            <span class=\"color-rouge\" style=\"font-size: 15px;font-weight: 700\">En attente de validation</span>
                        </div>
                    </div>
                {% else %}
                    {% set utilisateur_valid = intervention.getUtilisateurValidationTechnique %}
                    <div class=\"w-100 d-flex\" style=\"padding:12px 24px\">
                        <div class=\"d-flex flex-column\">
                            <div style=\"font-size: 15px;\">
                                Fiche contrôlée le
                                <span class=\"color-vert fw-bold\">{{ intervention.getDateValidationTechnique|date('d/m/Y à H:i') }}</span>
                                par
                                <span class=\"color-vert fw-bold\">
                                    {{ intervention.getTypeValidationTechnique.isValidationAutomatique
                                        ? 'Validation automatique'
                                        : (utilisateur_valid ? utilisateur_valid.prenom|slice(0,1)|upper ~'.'~utilisateur_valid.nom|upper) }}
                                </span>
                            </div>
                            <div class=\"d-flex align-items-center mt-3\">
                                <label style=\"width:112px;\">Type de validation</label>
                                <input type=\"text\" style=\"width:220px\" disabled class=\"form-control\"
                                       value=\"{{ intervention.typeValidationTechnique ? intervention.typeValidationTechnique.libelleTechnique }}\">
                            </div>
                        </div>
                        <div class=\"d-flex flex-column ms-auto\">
                            <div class=\"d-flex align-items-center\">
                                <label style=\"width:91px;\">Commentaires</label>
                                <textarea style=\"height:85px;width:514px;text-align: left\" disabled class=\"form-control\">
{{ intervention.commentaireTechnique ? intervention.commentaireTechnique|trim }}
                                </textarea>
                            </div>
                        </div>
                    </div>
                {% endif %}
            </div>
        </div>

        {# Validation administrative en lecture seule #}
        <div class=\"d-flex flex-column flex-grow-1\" style=\"margin-bottom: 0.3rem;min-width: 512px;\">
            <div class=\"text-center py-1 position-relative color-white bg-primary\">Validation administrative</div>
            <div class=\"px-2 bg-white color-primary w-100 block-infos-container d-flex align-items-center justify-content-center\" style=\"padding-top: 25px; padding-bottom: 17px;height: 100%;\">
                <div class=\"d-flex justify-content-center align-items-center\">
                    <div class=\"d-flex flex-column justify-content-center align-items-center\" style=\"gap:7px;\">
                        {% if not intervention.getDateValidationAdm %}
                            <div class=\"d-flex align-items-end\">
                                <img src=\"{{ asset('build/images/picto-intervention-warning.png') }}\" width=\"24\" height=\"24\" class=\"me-2\">
                                <span class=\"color-rouge\" style=\"font-size: 15px;font-weight: 700\">En attente de validation</span>
                            </div>
                        {% else %}
                            {% set utilisateur_valid = intervention.getUtilisateurValidationAdm %}
                            <div style=\"font-weight: 700;font-size: 15px;\">
                                Fiche contrôlée le
                                <span class=\"color-vert\">
                                    {{ intervention.getDateValidationAdm|date('d/m/Y à H:i') }}
                                </span>
                                par
                                <span class=\"color-vert\">
                                    {{ intervention.getTypeValidationAdm
                                        ? (intervention.getTypeValidationAdm.isValidationAutomatique
                                            ? 'Validation automatique'
                                            : (utilisateur_valid ? utilisateur_valid.prenom|slice(0,1)|upper ~'.'~utilisateur_valid.nom|upper))
                                        : '' }}
                                </span>
                            </div>
                        {% endif %}
                    </div>
                </div>
            </div>
        </div>
    </div>

    {# Ligne 3 : Paiement et Relances de paiement #}
    <div class=\"d-flex w-100 mt-2\" style=\"gap: 0.3rem;\">
        {# Bloc Paiement #}
        <div class=\"d-flex bg-primary flex-column \" style=\"width:1176px;\">
            <div class=\"text-center py-1 position-relative color-white\">Paiement</div>
            <div class=\"py-2 bg-white color-primary w-100 h-100 block-infos-container\" style=\"padding-left:40px;padding-right:40px;\">
                {# Calcul des totaux nécessaires #}
                {% set total_ht_pieces = 0 %}
                {% set total_tva_pieces = 0 %}
                {% for facture in intervention.factures %}
                    {% for factureLigne in facture.getFactureLignes %}
                        {% if factureLigne.getProduit and factureLigne.getProduit.getProduitType and factureLigne.getProduit.getProduitType.id == 1 %}
                            {% set total_ht_pieces = total_ht_pieces + (factureLigne.getPrixTotalHt ? factureLigne.getPrixTotalHt : 0) %}
                            {% set tva = factureLigne.getTauxTva ? factureLigne.getTauxTva.taux : 0 %}
                            {% set montant = factureLigne.getPrixTotalHt ? factureLigne.getPrixTotalHt : 0 %}
                            {% set total_tva_pieces = total_tva_pieces + (montant * tva)/100 %}
                        {% endif %}
                    {% endfor %}
                {% endfor %}
                {% set deplacement_ttc = 0 %}
                {% if ligne_deplacement %}
                    {% set tva = ligne_deplacement.getTauxTva ? ligne_deplacement.getTauxTva.taux : 0 %}
                    {% set montant = ligne_deplacement.getPrixTotalHt ? ligne_deplacement.getPrixTotalHt : 0 %}
                    {% set deplacement_ttc = montant + (montant*tva)/100 %}
                {% endif %}
                {% set mo_ttc = 0 %}
                {% if ligne_mo %}
                    {% set tva = ligne_mo.getTauxTva ? ligne_mo.getTauxTva.taux : 0 %}
                    {% set montant = ligne_mo.getPrixTotalHt ? ligne_mo.getPrixTotalHt : 0 %}
                    {% set mo_ttc = montant + (montant*tva)/100 %}
                {% endif %}
                <div class=\"d-flex justify-content-between\">
                    {# Tableau des paiements #}
                    <div style=\"max-height: 105.5px; overflow: auto;width: 660px;margin-right: 2rem;\">
                        <table class=\"table table-responsive table-sm table-inverse-color-datagrid mb-0\" style=\"border: 1px solid #E0E0E0;\">
                            <thead>
                                <th>Date</th>
                                <th>Montant</th>
                                <th>Date prévue enc.</th>
                                <th>Mode paiement</th>
                                <th>Date enc.</th>
                            </thead>
                            <tbody style=\"height: 74px\">
                                {% set nb_line = 0 %}
                                {% if liste_paiement|length > 0 %}
                                    {% for paiement in liste_paiement %}
                                        {% set nb_line = nb_line + 1 %}
                                        <tr>
                                            <td class=\"text-center\">{{ paiement.date|date('d/m/Y') }}</td>
                                            <td class=\"text-center\">{{ paiement.montantTtc|number_format(2, ',', ' ') }} €</td>
                                            <td class=\"text-center\">{{ paiement.datePrevisionnelle ? paiement.datePrevisionnelle|date('d/m/Y') : '' }}</td>
                                            <td class=\"text-center\">{{ paiement.moyenPaiement ? paiement.moyenPaiement.libelleCourt : '' }}</td>
                                            <td class=\"text-center\"></td>
                                        </tr>
                                    {% endfor %}
                                    {% set emptyRows = 3 - nb_line %}
                                    {% if emptyRows > 0 %}
                                        {% for i in 1..emptyRows %}
                                            <tr style=\"height: 25px\"><td colspan=\"5\"></td></tr>
                                        {% endfor %}
                                    {% endif %}
                                {% else %}
                                    <tr style=\"height: 25px\"><td colspan=\"5\"></td></tr>
                                    <tr style=\"height: 25px\"><td colspan=\"5\"></td></tr>
                                    <tr style=\"height: 25px\"><td colspan=\"5\"></td></tr>
                                {% endif %}
                            </tbody>
                        </table>
                    </div>
                    {# Totaux à droite du tableau - Grille 2x3 #}
                    <div class=\"d-flex flex-column justify-content-center ms-auto\">
                        {% set total_ht_global = total_ht_pieces + (ligne_mo ? ligne_mo.getPrixTotalHt : 0) + (ligne_deplacement ? ligne_deplacement.getPrixTotalHt : 0) %}
                        {% set total_tva_global = total_tva_pieces + (mo_ttc - (ligne_mo ? ligne_mo.getPrixTotalHt : 0)) + (deplacement_ttc - (ligne_deplacement ? ligne_deplacement.getPrixTotalHt : 0)) %}
                        {% set total_ttc_global = total_ht_global + total_tva_global %}
                        {% set total_facture = 0 %}
                        {% for facture in intervention.factures %}
                            {% set total_facture = total_facture + (facture.montantTtc ? facture.montantTtc : 0) %}
                        {% endfor %}
                        {% set ecart = total_ttc_global - total_facture %}
                        {% set restant_du = total_ttc_global - total_paiement %}
                        {# Ligne 1 : Total HT, Total TVA, Total TTC #}
                        <div class=\"d-flex mb-3\" style=\"gap: 20px;\">
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange\">Total HT</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"{{ total_ht_global|number_format(2, ',', ' ') }}€\">
                            </div>
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange \">Total TVA</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"{{ total_tva_global|number_format(2, ',', ' ') }}€\">
                            </div>
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange\">Total TTC</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"{{ total_ttc_global|number_format(2, ',', ' ') }}€\">
                            </div>
                        </div>
                        {# Ligne 2 : Total perçu, Restant dû, Ecart #}
                        <div class=\"d-flex\" style=\"gap: 20px;\">
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange \">Total perçu</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"{{ total_paiement|number_format(2, ',', ' ') }}€\">
                            </div>
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange \">Restant dû</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"{{ restant_du|number_format(2, ',', ' ') }}€\">
                            </div>
                            <div class=\"d-flex flex-column\">
                                <label class=\"titre-small color-orange \">Ecart</label>
                                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control bg-grey\" value=\"{{ ecart|number_format(2, ',', ' ') }}€\">
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        {# Bloc Relances de paiement #}
        <div class=\"d-flex bg-primary flex-column flex-grow-1\">
            <div class=\"text-center py-1 position-relative color-white\">
                Relances de paiement
                <i class=\"fa fa-refresh ms-2\" style=\"position: absolute; right: 8px; top: 50%; transform: translateY(-50%);\"></i>
            </div>
            <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container d-flex justify-content-center align-items-center\">
                <div class=\"text-center\">Aucune relance en cours</div>
            </div>
        </div>
    </div>
</div>


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