<?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/_get_intervention_validation.html.twig */
class __TwigTemplate_c1df7b3605e2476ce946df5722ce80afe04421a510e25f4f30465c3f90c5df87 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/_get_intervention_validation.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/_get_intervention_validation.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"] = ((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"] = (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 5
        $context["disabled"] = "disabled";
        // line 6
        $context["souscripteur"] = 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.', 6, $this->source); })()), "getClientSouscripteur", [], "any", false, false, false, 6);
        // line 7
        $context["pac_id"] = Twig\Extension\CoreExtension::constant("App\\Entity\\EquipementFamille::FAMILLE_PAC_ID");
        // line 8
        $context["contrat"] = 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); })()), "getLastContrat", [], "any", false, false, false, 8);
        // line 9
        $context["isGU"] = (((((null === (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 9, $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.', 9, $this->source); })()), "datePremierAllumage", [], "any", false, false, false, 9)) && (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.', 9, $this->source); })()), "datePremierAllumage", [], "any", false, false, false, 9), "+1 year"), "U"), $this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "U"))))) ? (true) : (false));
        // line 10
        $context["contrat_echu"] = (((((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 10, $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.', 10, $this->source); })()), "dateFinContrat", [], "any", false, false, false, 10), $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.', 10, $this->source); })()))) ? (true) : (false));
        // line 11
        $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.', 11, $this->source); })()), "estPriseContrat", [], "any", false, false, false, 11);
        // line 12
        $context["hors_contrat"] = ( !(isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 12, $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.', 12, $this->source); })()));
        // line 13
        $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.', 13, $this->source); })()), "planning", [], "any", false, false, false, 13), "getUtilisateurAgent", [], "any", false, false, false, 13);
        // line 14
        $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.', 14, $this->source); })()), "getTypePlanification", [], "any", false, false, false, 14) && 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.', 14, $this->source); })()), "getTypePlanification", [], "any", false, false, false, 14), "getCategoriePlanification", [], "any", false, false, false, 14), "isInterne", [], "any", false, false, false, 14)) &&  !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.', 14, $this->source); })()), "getActiveUtilisateurAffectation", [], "any", false, false, false, 14), "getUtilisateurBinome", [], "any", false, false, false, 14));
        // line 15
        $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.', 15, $this->source); })()), "planning", [], "any", false, false, false, 15), "getTypePlanificationInit", [], "any", false, false, false, 15), "getCategoriePlanification", [], "any", false, false, false, 15), "isInterne", [], "any", false, false, false, 15) &&  !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.', 15, $this->source); })()), "getActiveUtilisateurAffectation", [], "any", false, false, false, 15), "getUtilisateurBinome", [], "any", false, false, false, 15));
        // line 16
        $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.', 16, $this->source); })()), "getFactures", [], "any", false, false, false, 16)) && 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.', 16, $this->source); })()), "getFactures", [], "any", false, false, false, 16)), "getPaiements", [], "any", false, false, false, 16))) && 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.', 16, $this->source); })()), "getFactures", [], "any", false, false, false, 16)), "getPaiements", [], "any", false, false, false, 16)), "getMoyenPaiement", [], "any", false, false, false, 16))) ? (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.', 16, $this->source); })()), "getFactures", [], "any", false, false, false, 16)), "getPaiements", [], "any", false, false, false, 16))) : (null));
        // line 17
        $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.', 17, $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.', 17, $this->source); })()), "getMoyenPaiement", [], "any", false, false, false, 17), "getLibelleLong", [], "any", false, false, false, 17)) : (""));
        // line 18
        $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.', 18, $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.', 18, $this->source); })()));
        // line 19
        $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.', 19, $this->source); })()), "getLigneMO", [], "any", false, false, false, 19);
        // line 20
        $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.', 20, $this->source); })()), "getLigneDeplacement", [], "any", false, false, false, 20);
        // line 21
        $context["total_paiement"] = 0;
        // line 22
        $context["total_accompte"] = 0;
        // line 23
        $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.', 23, $this->source); })()), "getClientPayeurTiers", [], "any", false, false, false, 23);
        // line 24
        $context["id_paiement_acompte"] = "";
        // line 25
        $context["liste_paiement"] = [];
        // line 26
        $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.', 26, $this->source); })()), "factures", [], "any", false, false, false, 26));
        foreach ($context['_seq'] as $context["_key"] => $context["facture"]) {
            // line 27
            yield "    ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["facture"], "getPaiements", [], "any", false, false, false, 27));
            foreach ($context['_seq'] as $context["_key"] => $context["paiement"]) {
                // line 28
                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.', 28, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "montantTTC", [], "any", false, false, false, 28));
                // line 29
                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.', 29, $this->source); })()), [$context["paiement"]]);
                // line 30
                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 31
            yield "    ";
            if (CoreExtension::getAttribute($this->env, $this->source, $context["facture"], "getFactureAcompte", [], "any", false, false, false, 31)) {
                // line 32
                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, 32), "getPaiements", [], "any", false, false, false, 32));
                foreach ($context['_seq'] as $context["_key"] => $context["paiement"]) {
                    // line 33
                    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.', 33, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "montantTTC", [], "any", false, false, false, 33));
                    // line 34
                    yield "            ";
                    $context["id_paiement_acompte"] = CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "id", [], "any", false, false, false, 34);
                    // line 35
                    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.', 35, $this->source); })()), [$context["paiement"]]);
                    // line 36
                    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 37
                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 39
        yield "
<form id=\"form_validation_intervention\" class=\"form form-ajax\" method=\"post\" action=\"";
        // line 40
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("intervention_validation", ["id" => 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.', 40, $this->source); })()), "id", [], "any", false, false, false, 40)]), "html", null, true);
        yield "\" data-target-html=\"#target-show-intervention\">
    <input type=\"hidden\" name=\"type_validation\" value=\"administrative\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_intervention\" value=\"";
        // line 42
        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.', 42, $this->source); })()), "id", [], "any", false, false, false, 42), "html", null, true);
        yield "\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_facture_ligne_mo\" value=\"";
        // line 43
        (((isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 43, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 43, $this->source); })()), "id", [], "any", false, false, false, 43), "html", null, true)) : (yield ""));
        yield "\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_facture_ligne_deplacement\" value=\"";
        // line 44
        (((isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 44, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 44, $this->source); })()), "id", [], "any", false, false, false, 44), "html", null, true)) : (yield ""));
        yield "\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_paiement_acompte\" value=\"";
        // line 45
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id_paiement_acompte"]) || array_key_exists("id_paiement_acompte", $context) ? $context["id_paiement_acompte"] : (function () { throw new RuntimeError('Variable "id_paiement_acompte" does not exist.', 45, $this->source); })()), "html", null, true);
        yield "\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_contrat\" value=\"";
        // line 46
        (((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 46, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 46, $this->source); })()), "id", [], "any", false, false, false, 46), "html", null, true)) : (yield ""));
        yield "\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_paiement_ref\" value=\"";
        // line 47
        (((isset($context["paiement_ref"]) || array_key_exists("paiement_ref", $context) ? $context["paiement_ref"] : (function () { throw new RuntimeError('Variable "paiement_ref" does not exist.', 47, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 47, $this->source); })()), "id", [], "any", false, false, false, 47), "html", null, true)) : (yield ""));
        yield "\" form=\"form_validation_intervention\">
    <div class=\"d-flex flex-column\">
        <div class=\"d-flex\">
            <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\"  >Equipement</div>
                    ";
        // line 53
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_equipement.html.twig");
        yield "
                </div>
                <div class=\"d-flex bg-primary flex-column \" >
                    <div class=\"text-center py-1 position-relative color-white\">";
        // line 56
        yield (((isset($context["contrat_echu"]) || array_key_exists("contrat_echu", $context) ? $context["contrat_echu"] : (function () { throw new RuntimeError('Variable "contrat_echu" does not exist.', 56, $this->source); })())) ? ("Contrat échu") : ("Contrat"));
        yield "</div>
                    ";
        // line 57
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_contrat.html.twig");
        yield "
                </div>
                <div class=\"d-flex bg-primary flex-column \" >
                    <div class=\"text-center py-1 position-relative color-white\">Documents</div>
                    ";
        // line 61
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_documents.html.twig");
        yield "
                </div>
            </div>
            <div class=\"d-flex flex-column\" style=\"width:968px;\">
                <div class=\"d-flex bg-primary flex-column\" style=\"margin-bottom: 0.3rem;\">
                    <div class=\"text-center py-1 position-relative color-white\"  >Client</div>
                    ";
        // line 67
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_client.html.twig");
        yield "
                </div>
                <div class=\"d-flex bg-primary flex-column \" >
                    <div class=\"text-center py-1 position-relative color-white\">Intervention</div>
                    ";
        // line 71
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_intervention.html.twig");
        yield "
                </div>
            </div>
        </div>
        <div class=\"d-flex \">
            <div class=\"d-flex bg-primary flex-column w-100 \" style=\"margin-bottom: 0.3rem;\">
                <div class=\"text-center py-1 position-relative color-white\"  >Facturation</div>
                <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container\">
                    ";
        // line 79
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/bloc_facturation.html.twig");
        yield "
                </div>
            </div>
        </div>
        <div class=\"d-flex flex-grow-1\">
            <div class=\"d-flex flex-column flex-grow-1\" style=\"margin-bottom: 0.3rem;margin-right: 0.3rem;\">
                <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>
                    ";
        // line 87
        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.', 87, $this->source); })()), "getDateValidationTechnique", [], "any", false, false, false, 87) || 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.', 87, $this->source); })()), "getDatePreValidationTechnique", [], "any", false, false, false, 87))) {
            // line 88
            yield "                    <div><a data-popup-id=\"popup-history-validation-technique\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Historique validation\" data-popup-width=\"auto\">
                            <img src=\"";
            // line 89
            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\" class=\"me-1\">
                        </a>
                    </div>
                    ";
        }
        // line 93
        yield "                </div>
                <div class=\"px-2 bg-white color-primary w-100  block-infos-container d-flex justify-content-center\" style=\"min-height: 109px; height: 100%;\">
                    ";
        // line 95
        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.', 95, $this->source); })()), "typeValidationTechnique", [], "any", false, false, false, 95) &&  !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.', 95, $this->source); })()), "typePreValidationTechnique", [], "any", false, false, false, 95))) {
            // line 96
            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 98
            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>
                            ";
            // line 101
            if ((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 101, $this->source); })()), "technique"))) {
                // line 102
                yield "                                <a class=\"btn btn-md btn-block btn-outline-success mt-1\"  style=\"width:135px;margin-left: 15px;\" data-dxpopup=\"\" data-poppup-container=\"body\"  data-popup-position-of=\"center\" data-popup-position-at=\"center\" data-popup-offset=\"0 20\"  data-popup-id=\"popup-validation-technique\" data-popup-title=\"Validation de la fiche\" data-popup-width=\"auto\">Valider la fiche</a>
                            ";
            }
            // line 104
            yield "                        </div>
                    ";
        } else {
            // line 106
            yield "                        ";
            $context["type_validation_effective"] = ((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); })()), "typeValidationTechnique", [], "any", false, false, false, 106)) ?: (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); })()), "typePreValidationTechnique", [], "any", false, false, false, 106)));
            // line 107
            yield "                        ";
            $context["date_validation_effective"] = ((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.', 107, $this->source); })()), "dateValidationTechnique", [], "any", false, false, false, 107)) ?: (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.', 107, $this->source); })()), "datePreValidationTechnique", [], "any", false, false, false, 107)));
            // line 108
            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.', 108, $this->source); })()), "dateValidationTechnique", [], "any", false, false, false, 108)) ? (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.', 108, $this->source); })()), "utilisateurValidationTechnique", [], "any", false, false, false, 108)) : (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.', 108, $this->source); })()), "utilisateurPreValidationTechnique", [], "any", false, false, false, 108)));
            // line 109
            yield "                        <div class=\"w-100 d-flex\" style=\"padding:12px 24px\">
                            <div class=\"d-flex flex-column\">
                                ";
            // line 111
            if ((isset($context["date_validation_effective"]) || array_key_exists("date_validation_effective", $context) ? $context["date_validation_effective"] : (function () { throw new RuntimeError('Variable "date_validation_effective" does not exist.', 111, $this->source); })())) {
                // line 112
                yield "                                <div style=\"font-size: 15px;\">Fiche contrôlée le <span class=\"color-vert fw-bold\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate((isset($context["date_validation_effective"]) || array_key_exists("date_validation_effective", $context) ? $context["date_validation_effective"] : (function () { throw new RuntimeError('Variable "date_validation_effective" does not exist.', 112, $this->source); })()), "d/m/Y à H:i"), "html", null, true);
                yield "</span> par <span class=\"color-vert fw-bold\">
                                        ";
                // line 113
                if (((isset($context["type_validation_effective"]) || array_key_exists("type_validation_effective", $context) ? $context["type_validation_effective"] : (function () { throw new RuntimeError('Variable "type_validation_effective" does not exist.', 113, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["type_validation_effective"]) || array_key_exists("type_validation_effective", $context) ? $context["type_validation_effective"] : (function () { throw new RuntimeError('Variable "type_validation_effective" does not exist.', 113, $this->source); })()), "isValidationAutomatique", [], "any", false, false, false, 113))) {
                    // line 114
                    yield "                                            Validation automatique
                                        ";
                } elseif (                // line 115
(isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 115, $this->source); })())) {
                    // line 116
                    yield "                                            ";
                    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.', 116, $this->source); })()), "prenom", [], "any", false, false, false, 116), 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.', 116, $this->source); })()), "nom", [], "any", false, false, false, 116))), "html", null, true);
                    yield "
                                        ";
                }
                // line 118
                yield "                                    </span></div>
                                ";
            }
            // line 120
            yield "                                <div class=\"d-flex align-items-center mt-3\">
                                    <label style=\"width:112px;\">Type de validation</label>
                                    ";
            // line 122
            $context["lib_type"] = (((isset($context["type_validation_effective"]) || array_key_exists("type_validation_effective", $context) ? $context["type_validation_effective"] : (function () { throw new RuntimeError('Variable "type_validation_effective" does not exist.', 122, $this->source); })())) ? ((((CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelleTechnique", [], "any", true, true, false, 122) &&  !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelleTechnique", [], "any", false, false, false, 122)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelleTechnique", [], "any", false, false, false, 122)) : ((((CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelle", [], "any", true, true, false, 122) &&  !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelle", [], "any", false, false, false, 122)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelle", [], "any", false, false, false, 122)) : (""))))) : (""));
            // line 123
            yield "                                    <input type=\"text\" style=\"width:220px\"disabled class=\"form-control\" value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["lib_type"]) || array_key_exists("lib_type", $context) ? $context["lib_type"] : (function () { throw new RuntimeError('Variable "lib_type" does not exist.', 123, $this->source); })()), "html", null, true);
            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 129
            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.', 129, $this->source); })()), "commentaireTechnique", [], "any", false, false, false, 129)) {
                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.', 129, $this->source); })()), "commentaireTechnique", [], "any", false, false, false, 129)), "html", null, true);
            }
            // line 130
            if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ((array_key_exists("pointsControleCoches", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["pointsControleCoches"]) || array_key_exists("pointsControleCoches", $context) ? $context["pointsControleCoches"] : (function () { throw new RuntimeError('Variable "pointsControleCoches" does not exist.', 130, $this->source); })()), [])) : ([]))) && (isset($context["type_validation_effective"]) || array_key_exists("type_validation_effective", $context) ? $context["type_validation_effective"] : (function () { throw new RuntimeError('Variable "type_validation_effective" does not exist.', 130, $this->source); })()))) {
                // line 131
                $context["lib"] = (((CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelleTechnique", [], "any", true, true, false, 131) &&  !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelleTechnique", [], "any", false, false, false, 131)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelleTechnique", [], "any", false, false, false, 131)) : ((((CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelle", [], "any", true, true, false, 131) &&  !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelle", [], "any", false, false, false, 131)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["type_validation_effective"] ?? null), "libelle", [], "any", false, false, false, 131)) : (""))));
                // line 132
                if (CoreExtension::inFilter("Sensibilisation faite", (isset($context["lib"]) || array_key_exists("lib", $context) ? $context["lib"] : (function () { throw new RuntimeError('Variable "lib" does not exist.', 132, $this->source); })()))) {
                    // line 133
                    yield "
Agent sensibilisé :
";
                    // line 135
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable((isset($context["pointsControleCoches"]) || array_key_exists("pointsControleCoches", $context) ? $context["pointsControleCoches"] : (function () { throw new RuntimeError('Variable "pointsControleCoches" does not exist.', 135, $this->source); })()));
                    foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
                        yield "- ";
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["p"], "validationTechniquePdc", [], "any", false, false, false, 135), "annotation", [], "any", false, false, false, 135), "html", null, true);
                        yield "
";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                } elseif (CoreExtension::inFilter("Sensibilisation à faire",                 // line 137
(isset($context["lib"]) || array_key_exists("lib", $context) ? $context["lib"] : (function () { throw new RuntimeError('Variable "lib" does not exist.', 137, $this->source); })()))) {
                    // line 138
                    yield "
Transfert responsable :
";
                    // line 140
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable((isset($context["pointsControleCoches"]) || array_key_exists("pointsControleCoches", $context) ? $context["pointsControleCoches"] : (function () { throw new RuntimeError('Variable "pointsControleCoches" does not exist.', 140, $this->source); })()));
                    foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
                        yield "- ";
                        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["p"], "validationTechniquePdc", [], "any", false, false, false, 140), "annotation", [], "any", false, false, false, 140), "html", null, true);
                        yield "
";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                }
            }
            // line 144
            yield "</textarea>
                                </div>
                                ";
            // line 146
            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.', 146, $this->source); })()), "typePrevalidationTechnique", [], "any", false, false, false, 146) &&  !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.', 146, $this->source); })()), "getDateValidationTechnique", [], "any", false, false, false, 146))) {
                // line 147
                yield "                                    <button type=\"submit\" form=\"form_valider_technique_date\" class=\"btn btn-md btn-block btn-outline-success mt-2 ms-auto w-100\" style=\"width:135px !important;\">Valider la fiche</button>
                                ";
            }
            // line 149
            yield "                            </div>
                        </div>
                    ";
        }
        // line 152
        yield "                </div>
            </div>
            <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 159
        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.', 159, $this->source); })()), "getDateValidationAdm", [], "any", false, false, false, 159)) {
            // line 160
            yield "                            <div class=\"d-flex align-items-end\">
                                <img src=\"";
            // line 161
            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>
                            ";
            // line 164
            if ((0 !== CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 164, $this->source); })()), "technique"))) {
                // line 165
                yield "                            <button class=\"btn btn-md btn-block btn-outline-success\" id=\"button-valider-adm\" style=\"width:135px;margin-left: 15px;\" data-poppup-container=\"body\"  data-popup-position-of=\"center\" data-popup-position-at=\"center\" data-popup-offset=\"0 -100\"  data-popup-id=\"popup-validation-fiche-doc\" data-popup-title=\"Validation de la fiche\" data-popup-width=\"auto\">Valider la fiche</button>
                            ";
            }
            // line 167
            yield "                            ";
        } else {
            // line 168
            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.', 168, $this->source); })()), "getUtilisateurValidationAdm", [], "any", false, false, false, 168);
            // line 169
            yield "                            <div style=\"font-weight: 700;font-size: 15px;\">Fiche contrôlée le <span class=\"color-vert \">";
            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.', 169, $this->source); })()), "getDateValidationAdm", [], "any", false, false, false, 169), "d/m/Y à H:i"), "html", null, true);
            yield "</span> par <span class=\"color-vert\">";
            ((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.', 169, $this->source); })()), "getTypeValidationAdm", [], "any", false, false, false, 169)) ? (((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.', 169, $this->source); })()), "getTypeValidationAdm", [], "any", false, false, false, 169), "isValidationAutomatique", [], "any", false, false, false, 169)) ? (yield "Validation automatique") : ((((isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 169, $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.', 169, $this->source); })()), "prenom", [], "any", false, false, false, 169), 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.', 169, $this->source); })()), "nom", [], "any", false, false, false, 169))), "html", null, true)) : (yield ""))))) : (yield ""));
            yield "</span></div>
                            ";
            // line 170
            if ((0 !== CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 170, $this->source); })()), "technique"))) {
                // line 171
                yield "                            <button class=\"btn btn-md btn-block btn-outline-success\" style=\"width:135px;\">Modifier la fiche</button>
                            ";
            }
            // line 173
            yield "                        ";
        }
        // line 174
        yield "                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<form id=\"form_valider_technique_date\" method=\"post\" action=\"";
        // line 181
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("valider_technique_date");
        yield "\" class=\"form form-ajax d-none\" data-target-html=\"#target-show-intervention\" data-js=\"if(window.refreshAfterValidationTechnique)window.refreshAfterValidationTechnique();\">
    <input type=\"hidden\" name=\"intervention\" value=\"";
        // line 182
        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.', 182, $this->source); })()), "id", [], "any", false, false, false, 182), "html", null, true);
        yield "\">
    <input type=\"hidden\" name=\"utilisateur\" value=\"";
        // line 183
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 183, $this->source); })()), "user", [], "any", false, false, false, 183), "id", [], "any", false, false, false, 183), "html", null, true);
        yield "\">
</form>
";
        // line 185
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/popup_payeur_tiers.html.twig");
        yield "
";
        // line 186
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/popup_validation_fiche_doc.html.twig");
        yield "
";
        // line 187
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/popup_validation_technique.html.twig");
        yield "
";
        // line 188
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/popup_history_validation_technique.html.twig");
        yield "
";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  471 => 188,  467 => 187,  463 => 186,  459 => 185,  454 => 183,  450 => 182,  446 => 181,  437 => 174,  434 => 173,  430 => 171,  428 => 170,  421 => 169,  418 => 168,  415 => 167,  411 => 165,  409 => 164,  403 => 161,  400 => 160,  398 => 159,  389 => 152,  384 => 149,  380 => 147,  378 => 146,  374 => 144,  360 => 140,  356 => 138,  354 => 137,  342 => 135,  338 => 133,  336 => 132,  334 => 131,  332 => 130,  328 => 129,  318 => 123,  316 => 122,  312 => 120,  308 => 118,  302 => 116,  300 => 115,  297 => 114,  295 => 113,  290 => 112,  288 => 111,  284 => 109,  281 => 108,  278 => 107,  275 => 106,  271 => 104,  267 => 102,  265 => 101,  259 => 98,  255 => 96,  253 => 95,  249 => 93,  242 => 89,  239 => 88,  237 => 87,  226 => 79,  215 => 71,  208 => 67,  199 => 61,  192 => 57,  188 => 56,  182 => 53,  173 => 47,  169 => 46,  165 => 45,  161 => 44,  157 => 43,  153 => 42,  148 => 40,  145 => 39,  138 => 37,  132 => 36,  129 => 35,  126 => 34,  123 => 33,  118 => 32,  115 => 31,  109 => 30,  106 => 29,  103 => 28,  98 => 27,  94 => 26,  92 => 25,  90 => 24,  88 => 23,  86 => 22,  84 => 21,  82 => 20,  80 => 19,  78 => 18,  76 => 17,  74 => 16,  72 => 15,  70 => 14,  68 => 13,  66 => 12,  64 => 11,  62 => 10,  60 => 9,  58 => 8,  56 => 7,  54 => 6,  52 => 5,  50 => 4,  48 => 3,  46 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% set equipement = intervention.equipement %}
{% set equipementHauteur = equipement.getEquipementHauteurs[0] is defined ? equipement.getEquipementHauteurs[0] : null  %}
{% set is_pac = equipement.equipementFamille and  equipement.equipementFamille.id == 10 %}
{% set affichage = 'validation' %}
{% set disabled = 'disabled' %}
{% set souscripteur = equipement.getClientSouscripteur %}
{% set pac_id = constant('App\\\\Entity\\\\EquipementFamille::FAMILLE_PAC_ID') %}
{% set contrat = equipement.getLastContrat %}
{% set isGU = (contrat is null  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 %}

<form id=\"form_validation_intervention\" class=\"form form-ajax\" method=\"post\" action=\"{{ path('intervention_validation', {'id' : intervention.id}) }}\" data-target-html=\"#target-show-intervention\">
    <input type=\"hidden\" name=\"type_validation\" value=\"administrative\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_intervention\" value=\"{{ intervention.id }}\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_facture_ligne_mo\" value=\"{{ ligne_mo ? ligne_mo.id }}\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_facture_ligne_deplacement\" value=\"{{ ligne_deplacement ? ligne_deplacement.id }}\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_paiement_acompte\" value=\"{{ id_paiement_acompte }}\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_contrat\" value=\"{{ contrat ? contrat.id }}\" form=\"form_validation_intervention\">
    <input type=\"hidden\" name=\"id_paiement_ref\" value=\"{{ paiement_ref ? paiement_ref.id }}\" form=\"form_validation_intervention\">
    <div class=\"d-flex flex-column\">
        <div class=\"d-flex\">
            <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\"  >Equipement</div>
                    {{ include('intervention/bloc_equipement.html.twig') }}
                </div>
                <div class=\"d-flex bg-primary flex-column \" >
                    <div class=\"text-center py-1 position-relative color-white\">{{ contrat_echu ? 'Contrat échu' : 'Contrat' }}</div>
                    {{ include('intervention/bloc_contrat.html.twig') }}
                </div>
                <div class=\"d-flex bg-primary flex-column \" >
                    <div class=\"text-center py-1 position-relative color-white\">Documents</div>
                    {{ include('intervention/bloc_documents.html.twig') }}
                </div>
            </div>
            <div class=\"d-flex flex-column\" style=\"width:968px;\">
                <div class=\"d-flex bg-primary flex-column\" style=\"margin-bottom: 0.3rem;\">
                    <div class=\"text-center py-1 position-relative color-white\"  >Client</div>
                    {{ include('intervention/bloc_client.html.twig') }}
                </div>
                <div class=\"d-flex bg-primary flex-column \" >
                    <div class=\"text-center py-1 position-relative color-white\">Intervention</div>
                    {{ include('intervention/bloc_intervention.html.twig') }}
                </div>
            </div>
        </div>
        <div class=\"d-flex \">
            <div class=\"d-flex bg-primary flex-column w-100 \" style=\"margin-bottom: 0.3rem;\">
                <div class=\"text-center py-1 position-relative color-white\"  >Facturation</div>
                <div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container\">
                    {{ include('intervention/bloc_facturation.html.twig') }}
                </div>
            </div>
        </div>
        <div class=\"d-flex flex-grow-1\">
            <div class=\"d-flex flex-column flex-grow-1\" style=\"margin-bottom: 0.3rem;margin-right: 0.3rem;\">
                <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>
                    {%  if  intervention.getDateValidationTechnique or intervention.getDatePreValidationTechnique %}
                    <div><a data-popup-id=\"popup-history-validation-technique\" data-poppup-container=\"body\" data-dxpopup=\"\" data-popup-title=\"Historique validation\" data-popup-width=\"auto\">
                            <img src=\"{{ asset('build/images/picto-historique.png') }}\" width=\"20\" height=\"20\" class=\"me-1\">
                        </a>
                    </div>
                    {% endif %}
                </div>
                <div class=\"px-2 bg-white color-primary w-100  block-infos-container d-flex justify-content-center\" style=\"min-height: 109px; height: 100%;\">
                    {%  if not intervention.typeValidationTechnique and not intervention.typePreValidationTechnique %}
                        <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>
                            {% if type == 'technique' %}
                                <a class=\"btn btn-md btn-block btn-outline-success mt-1\"  style=\"width:135px;margin-left: 15px;\" data-dxpopup=\"\" data-poppup-container=\"body\"  data-popup-position-of=\"center\" data-popup-position-at=\"center\" data-popup-offset=\"0 20\"  data-popup-id=\"popup-validation-technique\" data-popup-title=\"Validation de la fiche\" data-popup-width=\"auto\">Valider la fiche</a>
                            {% endif %}
                        </div>
                    {% else %}
                        {% set type_validation_effective = intervention.typeValidationTechnique ?: intervention.typePreValidationTechnique %}
                        {% set date_validation_effective = intervention.dateValidationTechnique ?: intervention.datePreValidationTechnique %}
                        {% set utilisateur_valid = intervention.dateValidationTechnique ? intervention.utilisateurValidationTechnique : intervention.utilisateurPreValidationTechnique %}
                        <div class=\"w-100 d-flex\" style=\"padding:12px 24px\">
                            <div class=\"d-flex flex-column\">
                                {% if date_validation_effective %}
                                <div style=\"font-size: 15px;\">Fiche contrôlée le <span class=\"color-vert fw-bold\">{{ date_validation_effective|date('d/m/Y à H:i') }}</span> par <span class=\"color-vert fw-bold\">
                                        {% if type_validation_effective and type_validation_effective.isValidationAutomatique %}
                                            Validation automatique
                                        {% elseif utilisateur_valid %}
                                            {{ utilisateur_valid.prenom|slice(0,1)|upper ~'.'~utilisateur_valid.nom|upper }}
                                        {% endif %}
                                    </span></div>
                                {% endif %}
                                <div class=\"d-flex align-items-center mt-3\">
                                    <label style=\"width:112px;\">Type de validation</label>
                                    {% set lib_type = type_validation_effective ? (type_validation_effective.libelleTechnique ?? type_validation_effective.libelle ?? '') : '' %}
                                    <input type=\"text\" style=\"width:220px\"disabled class=\"form-control\" value=\"{{ lib_type }}\">
                                </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\">{% if intervention.commentaireTechnique %}{{ intervention.commentaireTechnique|trim }}{% endif %}
{% if pointsControleCoches|default([])|length and type_validation_effective %}
{% set lib = type_validation_effective.libelleTechnique ?? type_validation_effective.libelle ?? '' %}
{% if 'Sensibilisation faite' in lib %}

Agent sensibilisé :
{% for p in pointsControleCoches %}- {{ p.validationTechniquePdc.annotation }}
{% endfor %}
{% elseif 'Sensibilisation à faire' in lib %}

Transfert responsable :
{% for p in pointsControleCoches %}- {{ p.validationTechniquePdc.annotation }}
{% endfor %}
{% endif %}
{% endif %}
</textarea>
                                </div>
                                {% if intervention.typePrevalidationTechnique and not intervention.getDateValidationTechnique %}
                                    <button type=\"submit\" form=\"form_valider_technique_date\" class=\"btn btn-md btn-block btn-outline-success mt-2 ms-auto w-100\" style=\"width:135px !important;\">Valider la fiche</button>
                                {% endif %}
                            </div>
                        </div>
                    {% endif %}
                </div>
            </div>
            <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>
                            {% if type != 'technique' %}
                            <button class=\"btn btn-md btn-block btn-outline-success\" id=\"button-valider-adm\" style=\"width:135px;margin-left: 15px;\" data-poppup-container=\"body\"  data-popup-position-of=\"center\" data-popup-position-at=\"center\" data-popup-offset=\"0 -100\"  data-popup-id=\"popup-validation-fiche-doc\" data-popup-title=\"Validation de la fiche\" data-popup-width=\"auto\">Valider la fiche</button>
                            {% endif %}
                            {% 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>
                            {% if type != 'technique' %}
                            <button class=\"btn btn-md btn-block btn-outline-success\" style=\"width:135px;\">Modifier la fiche</button>
                            {% endif %}
                        {% endif %}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<form id=\"form_valider_technique_date\" method=\"post\" action=\"{{ path('valider_technique_date') }}\" class=\"form form-ajax d-none\" data-target-html=\"#target-show-intervention\" data-js=\"if(window.refreshAfterValidationTechnique)window.refreshAfterValidationTechnique();\">
    <input type=\"hidden\" name=\"intervention\" value=\"{{ intervention.id }}\">
    <input type=\"hidden\" name=\"utilisateur\" value=\"{{ app.user.id }}\">
</form>
{{ include('intervention/popup_payeur_tiers.html.twig') }}
{{ include('intervention/popup_validation_fiche_doc.html.twig') }}
{{ include('intervention/popup_validation_technique.html.twig') }}
{{ include('intervention/popup_history_validation_technique.html.twig') }}
{#{{ include('intervention/popup_devis.html.twig') }}#}", "intervention/_get_intervention_validation.html.twig", "/builds/dev/refonte_sav/templates/intervention/_get_intervention_validation.html.twig");
    }
}
