<?php

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

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

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

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

        $this->parent = false;

        $this->blocks = [
        ];
    }

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

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

        // line 1
        yield "<div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container\">
    <div class=\"d-flex mb-2 align-items-center\">
        ";
        // line 3
        yield Twig\Extension\CoreExtension::include($this->env, $context, "contrat/_prise_contrat.html.twig");
        yield "
        <div class=\"d-flex align-items-center me-3\">
            <label style=\"width:57px\">Type</label>
            <select name=\"contrat_type\" ";
        // line 6
        yield (((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 6, $this->source); })()), "technique"))) ? ("disabled") : (""));
        yield "  style=\"width:70px\"  class=\"form-control\" id=\"contrat_type\" form=\"form_validation_intervention\">
                <option value=\"\" ";
        // line 7
        yield ((((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 7, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 7, $this->source); })()), "ContratType", [], "any", false, false, false, 7))) ? ("") : ("selected"));
        yield "></option>
                ";
        // line 8
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["typesContrat"]) || array_key_exists("typesContrat", $context) ? $context["typesContrat"] : (function () { throw new RuntimeError('Variable "typesContrat" does not exist.', 8, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["type"]) {
            // line 9
            yield "                    ";
            $context["selected"] = (((((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["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 9, $this->source); })()), "ContratType", [], "any", false, false, false, 9)) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 9, $this->source); })()), "ContratType", [], "any", false, false, false, 9), "id", [], "any", false, false, false, 9), CoreExtension::getAttribute($this->env, $this->source, $context["type"], "id", [], "any", false, false, false, 9))))) ? ("selected") : (""));
            // line 10
            yield "                    <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["type"], "id", [], "any", false, false, false, 10), "html", null, true);
            yield "\" ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 10, $this->source); })()), "html", null, true);
            yield ">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["type"], "libelleCourt", [], "any", false, false, false, 10), "html", null, true);
            yield "</option>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['type'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 12
        yield "            </select>
        </div>
        ";
        // line 14
        $context["format_date"] = (((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 14, $this->source); })()), "technique"))) ? ("d/m/Y") : ("Y-m-d"));
        // line 15
        yield "        <div class=\"d-flex align-items-center me-3 \">
            <label style=\"width:41px\" >Début</label>
            <input type=\"";
        // line 17
        yield (((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 17, $this->source); })()), "technique"))) ? ("text") : ("date"));
        yield " \" name=\"date_debut_contrat\" style=\"width:100px;\" ";
        yield (((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 17, $this->source); })()), "technique"))) ? ("disabled") : (""));
        yield "  class=\"form-control \" value=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 17, $this->source); })()) && $this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 17, $this->source); })()), "dateDebutContrat", [], "any", false, false, false, 17), (isset($context["format_date"]) || array_key_exists("format_date", $context) ? $context["format_date"] : (function () { throw new RuntimeError('Variable "format_date" does not exist.', 17, $this->source); })())))) ? ($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 17, $this->source); })()), "dateDebutContrat", [], "any", false, false, false, 17), (isset($context["format_date"]) || array_key_exists("format_date", $context) ? $context["format_date"] : (function () { throw new RuntimeError('Variable "format_date" does not exist.', 17, $this->source); })()))) : ((((isset($context["isGU"]) || array_key_exists("isGU", $context) ? $context["isGU"] : (function () { throw new RuntimeError('Variable "isGU" does not exist.', 17, $this->source); })())) ? ($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 17, $this->source); })()), "datePremierAllumage", [], "any", false, false, false, 17), (isset($context["format_date"]) || array_key_exists("format_date", $context) ? $context["format_date"] : (function () { throw new RuntimeError('Variable "format_date" does not exist.', 17, $this->source); })()))) : ("")))), "html", null, true);
        yield "\" form=\"form_validation_intervention\">
        </div>
        <div class=\"d-flex align-items-center\">
            <label style=\"width:23px;\" >Fin</label>
            <input  type=\"";
        // line 21
        yield (((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 21, $this->source); })()), "technique"))) ? ("text") : ("date"));
        yield " \"  style=\"width:100px;\" disabled  form=\"form_validation_intervention\" name=\"date_fin_contrat\"  class=\"form-control ";
        yield (((isset($context["contrat_echu"]) || array_key_exists("contrat_echu", $context) ? $context["contrat_echu"] : (function () { throw new RuntimeError('Variable "contrat_echu" does not exist.', 21, $this->source); })())) ? ("bg-orange-input border-orange") : (""));
        yield "\" value=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 21, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 21, $this->source); })()), "dateFinContrat", [], "any", false, false, false, 21))) ? ($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 21, $this->source); })()), "dateFinContrat", [], "any", false, false, false, 21), (isset($context["format_date"]) || array_key_exists("format_date", $context) ? $context["format_date"] : (function () { throw new RuntimeError('Variable "format_date" does not exist.', 21, $this->source); })()))) : ((((isset($context["isGU"]) || array_key_exists("isGU", $context) ? $context["isGU"] : (function () { throw new RuntimeError('Variable "isGU" does not exist.', 21, $this->source); })())) ? ($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.', 21, $this->source); })()), "datePremierAllumage", [], "any", false, false, false, 21), "+1 year"), (isset($context["format_date"]) || array_key_exists("format_date", $context) ? $context["format_date"] : (function () { throw new RuntimeError('Variable "format_date" does not exist.', 21, $this->source); })()))) : ("")))), "html", null, true);
        yield "\">
        </div>
    </div>
    <div class=\"d-flex\">
        ";
        // line 25
        yield Twig\Extension\CoreExtension::include($this->env, $context, "contrat/_logement_plus_deux_ans.html.twig");
        yield "
        <div class=\"d-flex align-items-center\" style=\"margin-right: 17px;\">
            <label class=\"me-2\">Total HT</label>
            <input type=\"text\"  style=\"width:70px\"  name=\"contrat_tarif\" disabled class=\"form-control bg-grey pe-0\" value=\"";
        // line 28
        ((((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 28, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 28, $this->source); })()), "facture", [], "any", false, false, false, 28))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 28, $this->source); })()), "facture", [], "any", false, false, false, 28), "montantHt", [], "any", false, false, false, 28), "html", null, true)) : (yield ""));
        yield "€\">
        </div>
        <div class=\"d-flex align-items-center\" style=\"margin-right: 40px;\">
            <label style=\"width:39px;\">TVA</label>
            <select name=\"tva\" style=\"width:70px\" ";
        // line 32
        yield (((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 32, $this->source); })()), "technique"))) ? ("disabled") : (""));
        yield " form=\"form_validation_intervention\" class=\"form-control\" id=\"equipement_tva\">
                <option value=\"\"></option>
                ";
        // line 34
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["tauxTva"]) || array_key_exists("tauxTva", $context) ? $context["tauxTva"] : (function () { throw new RuntimeError('Variable "tauxTva" does not exist.', 34, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["taux"]) {
            // line 35
            yield "                    ";
            if (CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "actif", [], "any", false, false, false, 35)) {
                // line 36
                yield "                        ";
                $context["selected"] = (((((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.', 36, $this->source); })()), "getTauxTva", [], "any", false, false, false, 36) && (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.', 36, $this->source); })()), "getTauxTva", [], "any", false, false, false, 36), "id", [], "any", false, false, false, 36), CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "id", [], "any", false, false, false, 36)))) || (( !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.', 36, $this->source); })()), "getTauxTva", [], "any", false, false, false, 36) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 36, $this->source); })()), "getTypeClient", [], "any", false, false, false, 36), "id", [], "any", false, false, false, 36), 1))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "taux", [], "any", false, false, false, 36), 10)))) || (( !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.', 36, $this->source); })()), "getTauxTva", [], "any", false, false, false, 36) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 36, $this->source); })()), "getTypeClient", [], "any", false, false, false, 36), "id", [], "any", false, false, false, 36), 2))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "taux", [], "any", false, false, false, 36), 20))))) ? ("selected") : (""));
                // line 37
                yield "                        <option value=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "id", [], "any", false, false, false, 37), "html", null, true);
                yield "\" ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 37, $this->source); })()), "html", null, true);
                yield " >";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "taux", [], "any", false, false, false, 37), "html", null, true);
                yield "%</option>
                    ";
            }
            // line 39
            yield "                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taux'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 40
        yield "            </select>
        </div>
        <div class=\"d-flex align-items-center\">
            <label class=\"me-2\">Total TTC</label>
            <input type=\"text\"  style=\"width:68px\"  name=\"contrat_tarif\" disabled class=\"form-control bg-grey pe-0\" value=\"";
        // line 44
        ((((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 44, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 44, $this->source); })()), "facture", [], "any", false, false, false, 44))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 44, $this->source); })()), "facture", [], "any", false, false, false, 44), "montantTtc", [], "any", false, false, false, 44), "html", null, true)) : (yield ""));
        yield "€\">
        </div>
    </div>
    <div style=\"max-height: 122px; overflow: auto;border-bottom: 1px solid #ccc\" class=\"mt-2\">
        <table class=\"table table-responsive table-bordered  table-sm table-inverse-color-datagrid mb-0\">
            <thead  align=\"center\" style=\"vertical-align: middle!important;\">
            <th style=\"text-align: left\">Type</th>
            <th></th>
            <th>Date</th>
            <th>Date d'effet</th>
            <th>Tarif HT</th>
            <th>TVA</th>
            </thead>
            <tbody style=\"max-height: 99px\">
            ";
        // line 58
        if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["equipementOptionsFormatted"]) || array_key_exists("equipementOptionsFormatted", $context) ? $context["equipementOptionsFormatted"] : (function () { throw new RuntimeError('Variable "equipementOptionsFormatted" does not exist.', 58, $this->source); })())), 0))) {
            // line 59
            yield "                ";
            $context["nb_line"] = 0;
            // line 60
            yield "                ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable((isset($context["equipementOptionsFormatted"]) || array_key_exists("equipementOptionsFormatted", $context) ? $context["equipementOptionsFormatted"] : (function () { throw new RuntimeError('Variable "equipementOptionsFormatted" does not exist.', 60, $this->source); })()));
            foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
                // line 61
                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.', 61, $this->source); })()) + 1);
                // line 62
                yield "                    <tr style=\"height:25px !important;\">
                        <td>";
                // line 63
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["option"], "option_libelle", [], "any", false, false, false, 63), "html", null, true);
                yield "</td>
                        <td>";
                // line 64
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["option"], "etat", [], "any", false, false, false, 64), "html", null, true);
                yield "</td>
                        <td class=\"text-center\">";
                // line 65
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["option"], "date_souscription", [], "any", false, false, false, 65), "d/m/Y"), "html", null, true);
                yield "</td>
                        <td class=\"text-center\">";
                // line 66
                ((CoreExtension::getAttribute($this->env, $this->source, $context["option"], "date_debut", [], "any", false, false, false, 66)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["option"], "date_debut", [], "any", false, false, false, 66), "d/m/Y"), "html", null, true)) : (yield ""));
                yield "</td>
                        <td class=\"text-center\">";
                // line 67
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["option"], "prix_ht", [], "any", false, false, false, 67), "html", null, true);
                yield "</td>
                        <td class=\"text-center\">";
                // line 68
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["option"], "tva", [], "any", false, false, false, 68), "html", null, true);
                yield "</td>
                    </tr>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 71
            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.', 71, $this->source); })()));
            // line 72
            yield "                ";
            if ((1 === CoreExtension::compare((isset($context["emptyRows"]) || array_key_exists("emptyRows", $context) ? $context["emptyRows"] : (function () { throw new RuntimeError('Variable "emptyRows" does not exist.', 72, $this->source); })()), 0))) {
                // line 73
                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.', 73, $this->source); })())));
                foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                    // line 74
                    yield "                        <tr style=\"height: 25px\"><td colspan=\"6\"></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 76
                yield "                ";
            }
            // line 77
            yield "            ";
        } else {
            // line 78
            yield "                <tr style=\"height: 25px\"><td colspan=\"6\" ></td></tr>
                <tr style=\"height: 25px\"><td colspan=\"6\" ></td></tr>
                <tr style=\"height: 25px\"><td colspan=\"6\" ></td></tr>
            ";
        }
        // line 82
        yield "            </tbody>
        </table>

    </div>
</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  256 => 82,  250 => 78,  247 => 77,  244 => 76,  237 => 74,  232 => 73,  229 => 72,  226 => 71,  217 => 68,  213 => 67,  209 => 66,  205 => 65,  201 => 64,  197 => 63,  194 => 62,  191 => 61,  186 => 60,  183 => 59,  181 => 58,  164 => 44,  158 => 40,  152 => 39,  142 => 37,  139 => 36,  136 => 35,  132 => 34,  127 => 32,  120 => 28,  114 => 25,  103 => 21,  92 => 17,  88 => 15,  86 => 14,  82 => 12,  69 => 10,  66 => 9,  62 => 8,  58 => 7,  54 => 6,  48 => 3,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"px-2 py-2 bg-white color-primary w-100 h-100 block-infos-container\">
    <div class=\"d-flex mb-2 align-items-center\">
        {{ include('contrat/_prise_contrat.html.twig') }}
        <div class=\"d-flex align-items-center me-3\">
            <label style=\"width:57px\">Type</label>
            <select name=\"contrat_type\" {{ type == 'technique' ? 'disabled'}}  style=\"width:70px\"  class=\"form-control\" id=\"contrat_type\" form=\"form_validation_intervention\">
                <option value=\"\" {{contrat and contrat.ContratType ? '' : 'selected' }}></option>
                {% for type in typesContrat %}
                    {% set selected =  (contrat and contrat.ContratType and contrat.ContratType.id == type.id) ? 'selected' : '' %}
                    <option value=\"{{ type.id }}\" {{ selected }}>{{ type.libelleCourt }}</option>
                {% endfor %}
            </select>
        </div>
        {% set format_date = (type == 'technique') ? 'd/m/Y' : 'Y-m-d' %}
        <div class=\"d-flex align-items-center me-3 \">
            <label style=\"width:41px\" >Début</label>
            <input type=\"{{ type == 'technique' ? 'text' : 'date'}} \" name=\"date_debut_contrat\" style=\"width:100px;\" {{ type == 'technique' ? 'disabled'}}  class=\"form-control \" value=\"{{contrat and contrat.dateDebutContrat|date(format_date) ? contrat.dateDebutContrat|date(format_date) : (isGU ? equipement.datePremierAllumage|date(format_date) : '') }}\" form=\"form_validation_intervention\">
        </div>
        <div class=\"d-flex align-items-center\">
            <label style=\"width:23px;\" >Fin</label>
            <input  type=\"{{ type == 'technique' ? 'text' : 'date'}} \"  style=\"width:100px;\" disabled  form=\"form_validation_intervention\" name=\"date_fin_contrat\"  class=\"form-control {{ contrat_echu ? 'bg-orange-input border-orange' : ''}}\" value=\"{{contrat and contrat.dateFinContrat ? contrat.dateFinContrat|date(format_date) : (isGU ? equipement.datePremierAllumage|date_modify(\"+1 year\")|date(format_date) : '') }}\">
        </div>
    </div>
    <div class=\"d-flex\">
        {{ include('contrat/_logement_plus_deux_ans.html.twig') }}
        <div class=\"d-flex align-items-center\" style=\"margin-right: 17px;\">
            <label class=\"me-2\">Total HT</label>
            <input type=\"text\"  style=\"width:70px\"  name=\"contrat_tarif\" disabled class=\"form-control bg-grey pe-0\" value=\"{{ contrat and contrat.facture ? contrat.facture.montantHt }}€\">
        </div>
        <div class=\"d-flex align-items-center\" style=\"margin-right: 40px;\">
            <label style=\"width:39px;\">TVA</label>
            <select name=\"tva\" style=\"width:70px\" {{ type == 'technique' ? 'disabled'}} form=\"form_validation_intervention\" class=\"form-control\" id=\"equipement_tva\">
                <option value=\"\"></option>
                {% for taux in tauxTva %}
                    {% if taux.actif %}
                        {% set selected =  ((equipement.getTauxTva and equipement.getTauxTva.id == taux.id) or (not equipement.getTauxTva and client.getTypeClient.id == 1 and taux.taux == 10) or (not equipement.getTauxTva and client.getTypeClient.id == 2 and taux.taux == 20)) ? 'selected' : '' %}
                        <option value=\"{{ taux.id }}\" {{ selected }} >{{ taux.taux }}%</option>
                    {% endif %}
                {% endfor %}
            </select>
        </div>
        <div class=\"d-flex align-items-center\">
            <label class=\"me-2\">Total TTC</label>
            <input type=\"text\"  style=\"width:68px\"  name=\"contrat_tarif\" disabled class=\"form-control bg-grey pe-0\" value=\"{{ contrat and contrat.facture ? contrat.facture.montantTtc }}€\">
        </div>
    </div>
    <div style=\"max-height: 122px; overflow: auto;border-bottom: 1px solid #ccc\" class=\"mt-2\">
        <table class=\"table table-responsive table-bordered  table-sm table-inverse-color-datagrid mb-0\">
            <thead  align=\"center\" style=\"vertical-align: middle!important;\">
            <th style=\"text-align: left\">Type</th>
            <th></th>
            <th>Date</th>
            <th>Date d'effet</th>
            <th>Tarif HT</th>
            <th>TVA</th>
            </thead>
            <tbody style=\"max-height: 99px\">
            {% if equipementOptionsFormatted|length > 0 %}
                {% set nb_line = 0 %}
                {% for option in equipementOptionsFormatted %}
                    {% set nb_line = nb_line + 1 %}
                    <tr style=\"height:25px !important;\">
                        <td>{{ option.option_libelle }}</td>
                        <td>{{ option.etat }}</td>
                        <td class=\"text-center\">{{ option.date_souscription|date(\"d/m/Y\") }}</td>
                        <td class=\"text-center\">{{ option.date_debut ? option.date_debut|date(\"d/m/Y\") : '' }}</td>
                        <td class=\"text-center\">{{ option.prix_ht }}</td>
                        <td class=\"text-center\">{{ option.tva }}</td>
                    </tr>
                {% endfor %}
                {% set emptyRows = 3 - nb_line %}
                {% if emptyRows > 0 %}
                    {% for i in 1..emptyRows %}
                        <tr style=\"height: 25px\"><td colspan=\"6\"></td></tr>
                    {% endfor %}
                {% endif %}
            {% else %}
                <tr style=\"height: 25px\"><td colspan=\"6\" ></td></tr>
                <tr style=\"height: 25px\"><td colspan=\"6\" ></td></tr>
                <tr style=\"height: 25px\"><td colspan=\"6\" ></td></tr>
            {% endif %}
            </tbody>
        </table>

    </div>
</div>", "intervention/bloc_contrat.html.twig", "/builds/dev/refonte_sav/templates/intervention/bloc_contrat.html.twig");
    }
}
