<?php

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

/* clients/contrat/fields/_tva.html.twig */
class __TwigTemplate_92abab774b67bd30a4a1ed067042d75dea25768f9006c5ecf7962c64d42d999f 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", "clients/contrat/fields/_tva.html.twig"));

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

        // line 1
        yield "<div class=\"d-flex align-items-center\">
    <label class=\"me-1\">TVA</label>
    <select name=\"tva-";
        // line 3
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 3, $this->source); })()), "id", [], "any", false, false, false, 3), "html", null, true);
        yield "\" data-disable-on-view=\"\" style=\"width:60px\" ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 3, $this->source); })()), "html", null, true);
        yield " form=\"form_client_update\" class=\"form-control\" id=\"equipement_tva\">
        ";
        // line 4
        $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.', 4, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["taux"]) {
            // line 5
            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.', 5, $this->source); })()), "getTauxTva", [], "any", false, false, false, 5) && (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.', 5, $this->source); })()), "getTauxTva", [], "any", false, false, false, 5), "id", [], "any", false, false, false, 5), CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "id", [], "any", false, false, false, 5)))) || (( !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.', 5, $this->source); })()), "getTauxTva", [], "any", false, false, false, 5) && (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.', 5, $this->source); })()), "getTypeClient", [], "any", false, false, false, 5), "id", [], "any", false, false, false, 5), 1))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "taux", [], "any", false, false, false, 5), 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.', 5, $this->source); })()), "getTauxTva", [], "any", false, false, false, 5) && (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.', 5, $this->source); })()), "getTypeClient", [], "any", false, false, false, 5), "id", [], "any", false, false, false, 5), 2))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "taux", [], "any", false, false, false, 5), 20))))) ? ("selected") : (""));
            // line 6
            yield "            <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "id", [], "any", false, false, false, 6), "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.', 6, $this->source); })()), "html", null, true);
            yield " ";
            yield (((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "actif", [], "any", false, false, false, 6), false))) ? ("disabled") : (""));
            yield ">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["taux"], "taux", [], "any", false, false, false, 6), "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 8
        yield "    </select>
</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  76 => 8,  61 => 6,  58 => 5,  54 => 4,  48 => 3,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"d-flex align-items-center\">
    <label class=\"me-1\">TVA</label>
    <select name=\"tva-{{ equipement.id }}\" data-disable-on-view=\"\" style=\"width:60px\" {{ disabled }} form=\"form_client_update\" class=\"form-control\" id=\"equipement_tva\">
        {% for taux in tauxTva %}
            {% 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.actif == false ? 'disabled' : '' }}>{{ taux.taux }}%</option>
        {% endfor %}
    </select>
</div>", "clients/contrat/fields/_tva.html.twig", "/builds/dev/refonte_sav/templates/clients/contrat/fields/_tva.html.twig");
    }
}
