<?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_facturation.html.twig */
class __TwigTemplate_8d29367cf81cccef7680dc268807ca6c5e518e5e8989dd696ecfb50c370d104f 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_facturation.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_facturation.html.twig"));

        // line 1
        yield "<div class=\"d-flex\">
    <div class=\"d-flex flex-column position-relative me-3\" style=\"width: 972px\">
        ";
        // line 3
        if ((0 !== CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 3, $this->source); })()), "technique"))) {
            // line 4
            yield "            <div class=\"d-flex \" style=\"position: absolute;top:inherit;right:13px;\">
                <i id=\"add_facture-piece\" data-disable-on-view=\"\" class=\"fa fa-lg fa-plus button-add custom-history bg-vert\" style=\"position:relative;border-color: #14a085;-webkit-text-stroke: 1px #14a085;top:inherit;right:inherit\"></i>
            </div>
        ";
        }
        // line 8
        yield "        <div class=\"d-flex flex-column\" style=\"width: 972px;\">
            <div
                    class=\"grid\"
                    data-style=\"tab\"
                    style=\"width:972px;min-height: 122px;max-height: 122px;overflow-y: auto\"
                    id=\"intervention-grid-facturation\"
                    data-columns=\"";
        // line 14
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(json_encode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["facturationGrid"]) || array_key_exists("facturationGrid", $context) ? $context["facturationGrid"] : (function () { throw new RuntimeError('Variable "facturationGrid" does not exist.', 14, $this->source); })()), "columns", [], "any", false, false, false, 14)), "html", null, true);
        yield "\"
                    data-getpath=\"";
        // line 15
        ((CoreExtension::getAttribute($this->env, $this->source, ($context["facturationGrid"] ?? null), "get_path", [], "any", true, true, false, 15)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["facturationGrid"]) || array_key_exists("facturationGrid", $context) ? $context["facturationGrid"] : (function () { throw new RuntimeError('Variable "facturationGrid" does not exist.', 15, $this->source); })()), "get_path", [], "any", false, false, false, 15), "html", null, true)) : (yield ""));
        yield "\"
                    data-createpath=\"";
        // line 16
        ((CoreExtension::getAttribute($this->env, $this->source, ($context["facturationGrid"] ?? null), "create_path", [], "any", true, true, false, 16)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["facturationGrid"]) || array_key_exists("facturationGrid", $context) ? $context["facturationGrid"] : (function () { throw new RuntimeError('Variable "facturationGrid" does not exist.', 16, $this->source); })()), "create_path", [], "any", false, false, false, 16), "html", null, true)) : (yield ""));
        yield "\"
                    data-editing=\"";
        // line 17
        ((((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")) && CoreExtension::getAttribute($this->env, $this->source, ($context["facturationGrid"] ?? null), "editing", [], "any", true, true, false, 17))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(json_encode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["facturationGrid"]) || array_key_exists("facturationGrid", $context) ? $context["facturationGrid"] : (function () { throw new RuntimeError('Variable "facturationGrid" does not exist.', 17, $this->source); })()), "editing", [], "any", false, false, false, 17)), "html", null, true)) : (yield "{}"));
        yield "\"
                    data-deletepath=\"";
        // line 18
        ((CoreExtension::getAttribute($this->env, $this->source, ($context["facturationGrid"] ?? null), "delete_path", [], "any", true, true, false, 18)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["facturationGrid"]) || array_key_exists("facturationGrid", $context) ? $context["facturationGrid"] : (function () { throw new RuntimeError('Variable "facturationGrid" does not exist.', 18, $this->source); })()), "delete_path", [], "any", false, false, false, 18), "html", null, true)) : (yield ""));
        yield "\"
                    data-patchpath=\"";
        // line 19
        ((CoreExtension::getAttribute($this->env, $this->source, ($context["facturationGrid"] ?? null), "patch_path", [], "any", true, true, false, 19)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["facturationGrid"]) || array_key_exists("facturationGrid", $context) ? $context["facturationGrid"] : (function () { throw new RuntimeError('Variable "facturationGrid" does not exist.', 19, $this->source); })()), "patch_path", [], "any", false, false, false, 19), "html", null, true)) : (yield ""));
        yield "\"
                    data-searchpanel='{\"visible\":false}'
                    data-pagination='{\"visible\":false}'
                    data-rowclass=\"function(item) { return item.affectation === 'S' ? 'bg-orange-input' : ''; }\"
                    data-tooltip-field=\"motif_service\"
                    data-toolbarinvisible=\"true\"
            ></div>
        </div>
        <div class=\"d-flex mt-1\">
            <div >
                <table class=\"table table-responsive  table-sm table-inverse-color-datagrid mb-0\" id=\"tab-recap-taux\" style=\"width: 230px;overflow-y: auto;border: 1px solid #E0E0E0;\" >
                    <thead  align=\"center\" style=\"vertical-align: middle!important;\"><th>Base HT</th><th>Taux</th><th>Montant</th></thead>
                    <tbody style=\"height: 75px\">
                        <tr style=\"height: 25px\"><td colspan=\"3\" ></td></tr>
                        <tr style=\"height: 25px\"><td colspan=\"3\" ></td></tr>
                        <tr style=\"height: 25px\"><td colspan=\"3\" ></td></tr>
                    </tbody>
                </table>
            </div>
            <div class=\"ms-auto\" style=\"width:570px;overflow-y: auto\">
                <table class=\"table table-responsive table-bordered  table-sm table-inverse-color-datagrid mb-0\" style=\"width: 570px\" >
                    <thead  align=\"center\" style=\"vertical-align: middle!important;\">
                        <th>Date</th>
                        <th>Montant</th>
                        <th>Date prévue enc.</th>
                        <th>Mode paiement</th>
                        <th>Date enc.</th>
                        <th>Perçu</th>
                    </thead>
                    <tbody style=\"height: 75px;\">
                    ";
        // line 49
        $context["nb_line"] = 0;
        // line 50
        yield "                    ";
        if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["liste_paiement"]) || array_key_exists("liste_paiement", $context) ? $context["liste_paiement"] : (function () { throw new RuntimeError('Variable "liste_paiement" does not exist.', 50, $this->source); })())), 0))) {
            // line 51
            yield "                        ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable((isset($context["liste_paiement"]) || array_key_exists("liste_paiement", $context) ? $context["liste_paiement"] : (function () { throw new RuntimeError('Variable "liste_paiement" does not exist.', 51, $this->source); })()));
            foreach ($context['_seq'] as $context["_key"] => $context["paiement"]) {
                // line 52
                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.', 52, $this->source); })()) + 1);
                // line 53
                yield "                            <tr style=\"height: 25px\">
                                <td>";
                // line 54
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf(CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "date", [], "any", false, false, false, 54), "d/m/Y"), "html", null, true);
                yield "</td>
                                <td>";
                // line 55
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "montantTtc", [], "any", false, false, false, 55), "html", null, true);
                yield "€</td>
                                <td>";
                // line 56
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf(CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "datePrevisionnelle", [], "any", false, false, false, 56), "d/m/Y"), "html", null, true);
                yield "</td>
                                <td>";
                // line 57
                ((CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "moyenPaiement", [], "any", false, false, false, 57)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["paiement"], "moyenPaiement", [], "any", false, false, false, 57), "libelleCourt", [], "any", false, false, false, 57), "html", null, true)) : (yield ""));
                yield "</td>
                                <td></td>
                                <td></td>
                            </tr>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['paiement'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 62
            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.', 62, $this->source); })()));
            // line 63
            yield "                        ";
            if ((1 === CoreExtension::compare((isset($context["emptyRows"]) || array_key_exists("emptyRows", $context) ? $context["emptyRows"] : (function () { throw new RuntimeError('Variable "emptyRows" does not exist.', 63, $this->source); })()), 0))) {
                // line 64
                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.', 64, $this->source); })())));
                foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                    // line 65
                    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 67
                yield "                        ";
            }
            // line 68
            yield "                    ";
        } else {
            // line 69
            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 73
        yield "                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class=\"flex-grow-1\" >
        <div class=\"d-flex\">
            <div class=\"d-flex flex-column\"  style=\"margin-right:30px;\">
                <div class=\"titre-small color-orange\">Déplacement</div>
                <div class=\"d-flex\">
                    <div class=\"d-flex align-items-center \" style=\"margin-right: 30px;\">
                        <label style=\"width: 33px;\">Qté</label>
                        <input type=\"text\" style=\"width:50px\" disabled class=\"form-control\" value=\"";
        // line 85
        (((isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 85, $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.', 85, $this->source); })()), "quantite", [], "any", false, false, false, 85), "html", null, true)) : (yield ""));
        yield "\">
                    </div>
                    <div class=\"d-flex align-items-center  \">
                        <label style=\"width: 58px;\">Prix HT</label>
                        <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" value=\"";
        // line 89
        (((isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 89, $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.', 89, $this->source); })()), "getPrixTotalHt", [], "any", false, false, false, 89) . "€"), "html", null, true)) : (yield ""));
        yield "\" >
                    </div>
                </div>
                <div class=\"d-flex mt-2\">
                    <div class=\"d-flex align-items-center  \" style=\"margin-right: 30px;\">
                        <label style=\"width: 33px;\">TVA</label>
                        <select name=\"deplacement_tva\" style=\"width:50px\" id=\"deplacement-tva\" ";
        // line 95
        yield (((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 95, $this->source); })()), "technique"))) ? ("disabled") : (""));
        yield "  data-group=\"deplacement\"  form=\"form_validation_intervention\" class=\"form-control tva-select\">
                            <option value=\"\"></option>
                            ";
        // line 97
        $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.', 97, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["taux"]) {
            // line 98
            yield "                                ";
            $context["selected"] = (((((isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 98, $this->source); })())) ? ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 98, $this->source); })()), "getTauxTva", [], "any", false, false, false, 98), "id", [], "any", false, false, false, 98), CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "id", [], "any", false, false, false, 98)))) : (""))) ? ("selected") : (""));
            // line 99
            yield "                                <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "id", [], "any", false, false, false, 99), "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.', 99, $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, 99), "html", null, true);
            yield "%</option>
                            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taux'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 101
        yield "                        </select>
                    </div>
                    <input type=\"hidden\"  id=\"deplacement-prix-ht\" value=\"";
        // line 103
        (((isset($context["ligne_deplacement"]) || array_key_exists("ligne_deplacement", $context) ? $context["ligne_deplacement"] : (function () { throw new RuntimeError('Variable "ligne_deplacement" does not exist.', 103, $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.', 103, $this->source); })()), "getPrixTotalHT", [], "any", false, false, false, 103), "html", null, true)) : (yield ""));
        yield "\">
                    <div class=\"d-flex align-items-center  me-2\">
                        <label style=\"width: 58px;\" >Prix TTC</label>
                        <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"deplacement-intervention-prix-ttc\"  value=\"\">
                    </div>
                </div>
            </div>
            <div class=\"d-flex flex-column ms-auto\">
                <div class=\"titre-small color-orange\">Main d'oeuvre</div>
                <div class=\"d-flex\">
                    <div class=\"d-flex align-items-center \" style=\"margin-right: 30px;\">
                        <label style=\"width: 33px;\">Qté</label>
                        <input type=\"text\" style=\"width:50px\" disabled class=\"form-control\" value=\"";
        // line 115
        (((isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 115, $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.', 115, $this->source); })()), "quantite", [], "any", false, false, false, 115), "html", null, true)) : (yield ""));
        yield "\">
                    </div>
                    <div class=\"d-flex align-items-center \">
                        <label style=\"width: 58px;\">Prix HT</label>
                        <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" value=\"";
        // line 119
        (((isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 119, $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.', 119, $this->source); })()), "getPrixTotalHt", [], "any", false, false, false, 119) . "€"), "html", null, true)) : (yield ""));
        yield "\">
                    </div>
                </div>
                <div class=\"d-flex mt-2\">
                    <div class=\"d-flex align-items-center \" style=\"margin-right: 30px;\">
                        <label style=\"width: 33px;\">TVA</label>
                        <select name=\"mo_tva\" style=\"width:50px\"  form=\"form_validation_intervention\" ";
        // line 125
        yield (((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 125, $this->source); })()), "technique"))) ? ("disabled") : (""));
        yield " class=\"form-control tva-select\" id=\"mo-tva\"   data-group=\"mo\">
                            <option value=\"\"></option>
                            ";
        // line 127
        $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.', 127, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["taux"]) {
            // line 128
            yield "                                ";
            $context["selected"] = (((((isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 128, $this->source); })())) ? ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 128, $this->source); })()), "getTauxTva", [], "any", false, false, false, 128), "id", [], "any", false, false, false, 128), CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "id", [], "any", false, false, false, 128)))) : (""))) ? ("selected") : (""));
            // line 129
            yield "                                <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "id", [], "any", false, false, false, 129), "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.', 129, $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, 129), "html", null, true);
            yield "%</option>
                            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taux'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 131
        yield "                        </select>
                    </div>
                    <input type=\"hidden\"  id=\"mo-prix-ht\" value=\"";
        // line 133
        (((isset($context["ligne_mo"]) || array_key_exists("ligne_mo", $context) ? $context["ligne_mo"] : (function () { throw new RuntimeError('Variable "ligne_mo" does not exist.', 133, $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.', 133, $this->source); })()), "getPrixTotalHT", [], "any", false, false, false, 133), "html", null, true)) : (yield ""));
        yield "\">
                    <div class=\"d-flex align-items-center\">
                        <label style=\"width: 58px;\">Prix TTC</label>
                        <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"mo-intervention-prix-ttc\" value=\"\">
                    </div>
                </div>
            </div>
        </div>
        <div class=\"mt-2\" >
            <div class=\"titre-small color-orange\">Pièces</div>
            <div class=\"d-flex justify-content-between\">
                <div class=\"d-flex align-items-center \">
                    <label style=\"width: 68px;\">Total HT</label>
                    <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"total-ht-pieces\" value=\"\">
                </div>
                <div class=\"d-flex align-items-center  \">
                    <label style=\"width: 76px;\">Total TVA</label>
                    <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"total-recap-tab-tva\" value=\"\" >
                </div>
                <div class=\"d-flex align-items-center  \">
                    <label style=\"width: 75px;\">Total TTC</label>
                    <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"total-ttc-pieces\" value=\"\" >
                </div>
            </div>
        </div>

";
        // line 178
        yield "        <div class=\"my-1\" style=\"height: 19.5px\"></div>
        <div class=\"d-flex justify-content-between\">
            <div class=\"d-flex align-items-center \">
                <label style=\"width:68px;\">Total HT</label>
                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"montant-ht-recap\" value=\"\">
            </div>
            <div class=\"d-flex align-items-center \">
                <label  style=\"width: 76px;\">Total TVA</label>
                <input type=\"text\" style=\"width:80px\" id=\"montant-tva-recap\" disabled class=\"form-control\" value=\"\">
            </div>
            <div class=\"d-flex align-items-center\">
                <label style=\"width: 75px;\">Total TTC</label>
                <input type=\"text\" style=\"width:80px\" id=\"montant-ttc-recap\" disabled class=\"form-control\" value=\"\">
            </div>
        </div>
        <div class=\"d-flex justify-content-between mt-2\">
            <div class=\"d-flex align-items-center\">
                <label style=\"width:68px;\">Total perçu</label>
                <input type=\"text\" style=\"width:80px\" ";
        // line 196
        yield (((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 196, $this->source); })()), "technique"))) ? ("disabled") : (""));
        yield " class=\"form-control\" id=\"montant-paiement\" value=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["total_paiement"]) || array_key_exists("total_paiement", $context) ? $context["total_paiement"] : (function () { throw new RuntimeError('Variable "total_paiement" does not exist.', 196, $this->source); })()), "html", null, true);
        yield "€\">
            </div>
            <div class=\"d-flex align-items-center\">
                <label  style=\"width: 76px;\">Restant dû</label>
                <input type=\"text\" style=\"width:80px\" ";
        // line 200
        yield (((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 200, $this->source); })()), "technique"))) ? ("disabled") : (""));
        yield "  class=\"form-control\" id=\"montant-du\" value=\"\">
            </div>
            <div class=\"d-flex align-items-center\">
                <label style=\"width: 75px;\">Ecart</label>
                <input type=\"text\" style=\"width:80px\" disabled id=\"montant-ecart\" class=\"form-control\" value=\"\">
            </div>
        </div>
    </div>
</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  363 => 200,  354 => 196,  334 => 178,  305 => 133,  301 => 131,  288 => 129,  285 => 128,  281 => 127,  276 => 125,  267 => 119,  260 => 115,  245 => 103,  241 => 101,  228 => 99,  225 => 98,  221 => 97,  216 => 95,  207 => 89,  200 => 85,  186 => 73,  180 => 69,  177 => 68,  174 => 67,  167 => 65,  162 => 64,  159 => 63,  156 => 62,  145 => 57,  141 => 56,  137 => 55,  133 => 54,  130 => 53,  127 => 52,  122 => 51,  119 => 50,  117 => 49,  84 => 19,  80 => 18,  76 => 17,  72 => 16,  68 => 15,  64 => 14,  56 => 8,  50 => 4,  48 => 3,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"d-flex\">
    <div class=\"d-flex flex-column position-relative me-3\" style=\"width: 972px\">
        {% if type != 'technique' %}
            <div class=\"d-flex \" style=\"position: absolute;top:inherit;right:13px;\">
                <i id=\"add_facture-piece\" data-disable-on-view=\"\" class=\"fa fa-lg fa-plus button-add custom-history bg-vert\" style=\"position:relative;border-color: #14a085;-webkit-text-stroke: 1px #14a085;top:inherit;right:inherit\"></i>
            </div>
        {% endif %}
        <div class=\"d-flex flex-column\" style=\"width: 972px;\">
            <div
                    class=\"grid\"
                    data-style=\"tab\"
                    style=\"width:972px;min-height: 122px;max-height: 122px;overflow-y: auto\"
                    id=\"intervention-grid-facturation\"
                    data-columns=\"{{ facturationGrid.columns|json_encode() }}\"
                    data-getpath=\"{{ facturationGrid.get_path is defined  ? facturationGrid.get_path : '' }}\"
                    data-createpath=\"{{ facturationGrid.create_path is defined  ? facturationGrid.create_path : '' }}\"
                    data-editing=\"{{  type != 'technique' and facturationGrid.editing is defined  ? facturationGrid.editing|json_encode() : '{}' }}\"
                    data-deletepath=\"{{ facturationGrid.delete_path is defined  ? facturationGrid.delete_path : '' }}\"
                    data-patchpath=\"{{ facturationGrid.patch_path is defined  ? facturationGrid.patch_path : '' }}\"
                    data-searchpanel='{\"visible\":false}'
                    data-pagination='{\"visible\":false}'
                    data-rowclass=\"function(item) { return item.affectation === 'S' ? 'bg-orange-input' : ''; }\"
                    data-tooltip-field=\"motif_service\"
                    data-toolbarinvisible=\"true\"
            ></div>
        </div>
        <div class=\"d-flex mt-1\">
            <div >
                <table class=\"table table-responsive  table-sm table-inverse-color-datagrid mb-0\" id=\"tab-recap-taux\" style=\"width: 230px;overflow-y: auto;border: 1px solid #E0E0E0;\" >
                    <thead  align=\"center\" style=\"vertical-align: middle!important;\"><th>Base HT</th><th>Taux</th><th>Montant</th></thead>
                    <tbody style=\"height: 75px\">
                        <tr style=\"height: 25px\"><td colspan=\"3\" ></td></tr>
                        <tr style=\"height: 25px\"><td colspan=\"3\" ></td></tr>
                        <tr style=\"height: 25px\"><td colspan=\"3\" ></td></tr>
                    </tbody>
                </table>
            </div>
            <div class=\"ms-auto\" style=\"width:570px;overflow-y: auto\">
                <table class=\"table table-responsive table-bordered  table-sm table-inverse-color-datagrid mb-0\" style=\"width: 570px\" >
                    <thead  align=\"center\" style=\"vertical-align: middle!important;\">
                        <th>Date</th>
                        <th>Montant</th>
                        <th>Date prévue enc.</th>
                        <th>Mode paiement</th>
                        <th>Date enc.</th>
                        <th>Perçu</th>
                    </thead>
                    <tbody style=\"height: 75px;\">
                    {% set nb_line = 0 %}
                    {% if liste_paiement|length > 0 %}
                        {% for paiement in liste_paiement %}
                            {% set nb_line = nb_line + 1 %}
                            <tr style=\"height: 25px\">
                                <td>{{ paiement.date|format('d/m/Y') }}</td>
                                <td>{{ paiement.montantTtc }}€</td>
                                <td>{{ paiement.datePrevisionnelle|format('d/m/Y') }}</td>
                                <td>{{ paiement.moyenPaiement ? paiement.moyenPaiement.libelleCourt }}</td>
                                <td></td>
                                <td></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>
    </div>
    <div class=\"flex-grow-1\" >
        <div class=\"d-flex\">
            <div class=\"d-flex flex-column\"  style=\"margin-right:30px;\">
                <div class=\"titre-small color-orange\">Déplacement</div>
                <div class=\"d-flex\">
                    <div class=\"d-flex align-items-center \" style=\"margin-right: 30px;\">
                        <label style=\"width: 33px;\">Qté</label>
                        <input type=\"text\" style=\"width:50px\" disabled class=\"form-control\" value=\"{{ ligne_deplacement ? ligne_deplacement.quantite }}\">
                    </div>
                    <div class=\"d-flex align-items-center  \">
                        <label style=\"width: 58px;\">Prix HT</label>
                        <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" value=\"{{ ligne_deplacement ? ligne_deplacement.getPrixTotalHt ~ '€' }}\" >
                    </div>
                </div>
                <div class=\"d-flex mt-2\">
                    <div class=\"d-flex align-items-center  \" style=\"margin-right: 30px;\">
                        <label style=\"width: 33px;\">TVA</label>
                        <select name=\"deplacement_tva\" style=\"width:50px\" id=\"deplacement-tva\" {{ type == 'technique' ? 'disabled'}}  data-group=\"deplacement\"  form=\"form_validation_intervention\" class=\"form-control tva-select\">
                            <option value=\"\"></option>
                            {% for taux in tauxTva %}
                                {% set selected =  (ligne_deplacement ? ligne_deplacement.getTauxTva.id  == taux.id) ? 'selected' : '' %}
                                <option value=\"{{ taux.id }}\" {{ selected }}>{{ taux.taux }}%</option>
                            {% endfor %}
                        </select>
                    </div>
                    <input type=\"hidden\"  id=\"deplacement-prix-ht\" value=\"{{ ligne_deplacement ? ligne_deplacement.getPrixTotalHT : '' }}\">
                    <div class=\"d-flex align-items-center  me-2\">
                        <label style=\"width: 58px;\" >Prix TTC</label>
                        <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"deplacement-intervention-prix-ttc\"  value=\"\">
                    </div>
                </div>
            </div>
            <div class=\"d-flex flex-column ms-auto\">
                <div class=\"titre-small color-orange\">Main d'oeuvre</div>
                <div class=\"d-flex\">
                    <div class=\"d-flex align-items-center \" style=\"margin-right: 30px;\">
                        <label style=\"width: 33px;\">Qté</label>
                        <input type=\"text\" style=\"width:50px\" disabled class=\"form-control\" value=\"{{ ligne_mo ? ligne_mo.quantite }}\">
                    </div>
                    <div class=\"d-flex align-items-center \">
                        <label style=\"width: 58px;\">Prix HT</label>
                        <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" value=\"{{ ligne_mo ? ligne_mo.getPrixTotalHt ~ '€' }}\">
                    </div>
                </div>
                <div class=\"d-flex mt-2\">
                    <div class=\"d-flex align-items-center \" style=\"margin-right: 30px;\">
                        <label style=\"width: 33px;\">TVA</label>
                        <select name=\"mo_tva\" style=\"width:50px\"  form=\"form_validation_intervention\" {{ type == 'technique' ? 'disabled'}} class=\"form-control tva-select\" id=\"mo-tva\"   data-group=\"mo\">
                            <option value=\"\"></option>
                            {% for taux in tauxTva %}
                                {% set selected =  (ligne_mo ? ligne_mo.getTauxTva.id  == taux.id) ? 'selected' : '' %}
                                <option value=\"{{ taux.id }}\" {{ selected }}>{{ taux.taux }}%</option>
                            {% endfor %}
                        </select>
                    </div>
                    <input type=\"hidden\"  id=\"mo-prix-ht\" value=\"{{ ligne_mo ? ligne_mo.getPrixTotalHT : '' }}\">
                    <div class=\"d-flex align-items-center\">
                        <label style=\"width: 58px;\">Prix TTC</label>
                        <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"mo-intervention-prix-ttc\" value=\"\">
                    </div>
                </div>
            </div>
        </div>
        <div class=\"mt-2\" >
            <div class=\"titre-small color-orange\">Pièces</div>
            <div class=\"d-flex justify-content-between\">
                <div class=\"d-flex align-items-center \">
                    <label style=\"width: 68px;\">Total HT</label>
                    <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"total-ht-pieces\" value=\"\">
                </div>
                <div class=\"d-flex align-items-center  \">
                    <label style=\"width: 76px;\">Total TVA</label>
                    <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"total-recap-tab-tva\" value=\"\" >
                </div>
                <div class=\"d-flex align-items-center  \">
                    <label style=\"width: 75px;\">Total TTC</label>
                    <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"total-ttc-pieces\" value=\"\" >
                </div>
            </div>
        </div>

{#        <div class=\"form-check\">#}
{#            <input class=\"form-check-input\" disabled form=\"form_validation_intervention\" {{ intervention.encaissementEffectue ? 'checked'  : ''}}  value='oui' id=\"encaissement_effectue\" name=\"encaissement_effectue\" type=\"checkbox\" value=\"\">#}
{#            <label class=\" me-1\" for=\"encaissement_effectue\"> Encaissement effectué</label>#}
{#        </div>#}
{#        <div class=\"d-flex align-items-center justify-content-between me-2\">#}
{#            <label class=\"me-2\">Mode paiement</label>#}
{#            <select id=\"mode-paiement\"#}
{#                    style=\"width:93px\"#}
{#                    class=\"form-control {{ mode_paiement_warning ? 'bg-orange-input border-orange' : '' }}\">#}
{#                <option value=\"\"></option>#}
{#                {% for moyenPaiement in moyenPaiements %}#}
{#                    <option value=\"{{ moyenPaiement.id }}\"#}
{#                            {{ moyen_paiement and moyen_paiement.id == moyenPaiement.id ? 'selected' : '' }}>#}
{#                        {{ moyenPaiement.libelleCourt }}#}
{#                    </option>#}
{#                {% endfor %}#}
{#            </select>#}
{#        </div>#}
{#        <div class=\"color-rouge w-100 text-center my-1\">Facture à envoyer</div>#}
        <div class=\"my-1\" style=\"height: 19.5px\"></div>
        <div class=\"d-flex justify-content-between\">
            <div class=\"d-flex align-items-center \">
                <label style=\"width:68px;\">Total HT</label>
                <input type=\"text\" style=\"width:80px\" disabled class=\"form-control\" id=\"montant-ht-recap\" value=\"\">
            </div>
            <div class=\"d-flex align-items-center \">
                <label  style=\"width: 76px;\">Total TVA</label>
                <input type=\"text\" style=\"width:80px\" id=\"montant-tva-recap\" disabled class=\"form-control\" value=\"\">
            </div>
            <div class=\"d-flex align-items-center\">
                <label style=\"width: 75px;\">Total TTC</label>
                <input type=\"text\" style=\"width:80px\" id=\"montant-ttc-recap\" disabled class=\"form-control\" value=\"\">
            </div>
        </div>
        <div class=\"d-flex justify-content-between mt-2\">
            <div class=\"d-flex align-items-center\">
                <label style=\"width:68px;\">Total perçu</label>
                <input type=\"text\" style=\"width:80px\" {{ type == 'technique' ? 'disabled'}} class=\"form-control\" id=\"montant-paiement\" value=\"{{ total_paiement }}€\">
            </div>
            <div class=\"d-flex align-items-center\">
                <label  style=\"width: 76px;\">Restant dû</label>
                <input type=\"text\" style=\"width:80px\" {{ type == 'technique' ? 'disabled'}}  class=\"form-control\" id=\"montant-du\" value=\"\">
            </div>
            <div class=\"d-flex align-items-center\">
                <label style=\"width: 75px;\">Ecart</label>
                <input type=\"text\" style=\"width:80px\" disabled id=\"montant-ecart\" class=\"form-control\" value=\"\">
            </div>
        </div>
    </div>
</div>", "intervention/bloc_facturation.html.twig", "/builds/dev/refonte_sav/templates/intervention/bloc_facturation.html.twig");
    }
}
