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

        // line 1
        yield "<table class=\"table table-responsive table-bordered  table-sm table-inverse-color-datagrid mb-0\">
    <thead>
    <th>N°Devis</th>
    <th>Date</th>
    <th>Statut</th>
    <th>Total TTC</th>
    </thead>
    <tbody style=\"height: 75px\">
    ";
        // line 9
        $context["nb_line"] = 0;
        // line 10
        yield "    ";
        if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($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.', 10, $this->source); })()), "devis", [], "any", false, false, false, 10)), 0))) {
            // line 11
            yield "        ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 11, $this->source); })()), "devis", [], "any", false, false, false, 11));
            foreach ($context['_seq'] as $context["_key"] => $context["devis"]) {
                // line 12
                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.', 12, $this->source); })()) + 1);
                // line 13
                yield "            ";
                if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["devis"], "TypeEnvoi", [], "any", false, false, false, 13), "id", [], "any", false, false, false, 13), 2))) {
                    // line 14
                    yield "                <tr class=\"bg-orange-input border-orange\">
                    <td class=\"text-center\" class=\"popup_devis\" data-iddevis=\"";
                    // line 15
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["devis"], "id", [], "any", false, false, false, 15), "html", null, true);
                    yield "\"><a data-poppup-container=\"body\" data-popup-position-of=\"center\" data-popup-position-at=\"center\" data-popup-offset=\"0 -100\"  data-popup-id=\"popup-devis\" data-dxpopup=\"\" data-popup-title=\"Etablissement du devis n°";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["devis"], "getNumDevis", [], "any", false, false, false, 15), "html", null, true);
                    yield "\" data-popup-width=\"auto\" > <i class=\"fa fa-tools me-2\"></i><span class=\"color-vert text-decoration-underline\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["devis"], "getNumDevis", [], "any", false, false, false, 15), "html", null, true);
                    yield "</span></a></td>
                    <td class=\"text-center\">";
                    // line 16
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["devis"], "getDateEmission", [], "any", false, false, false, 16), "d/m/Y"), "html", null, true);
                    yield "</td>
                    <td class=\"text-center\">";
                    // line 17
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["devis"], "getDevisStatut", [], "any", false, false, false, 17), "libelle", [], "any", false, false, false, 17), "html", null, true);
                    yield "</td>
                    <td class=\"text-center\">";
                    // line 18
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["devis"], "getMontantTtc", [], "any", false, false, false, 18), "html", null, true);
                    yield "€</td>
                </tr>
            ";
                }
                // line 21
                yield "        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['devis'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 22
            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.', 22, $this->source); })()));
            // line 23
            yield "        ";
            if ((1 === CoreExtension::compare((isset($context["emptyRows"]) || array_key_exists("emptyRows", $context) ? $context["emptyRows"] : (function () { throw new RuntimeError('Variable "emptyRows" does not exist.', 23, $this->source); })()), 0))) {
                // line 24
                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.', 24, $this->source); })())));
                foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                    // line 25
                    yield "                <tr style=\"height: 25px\"><td colspan=\"4\"></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 27
                yield "        ";
            }
            // line 28
            yield "    ";
        } else {
            // line 29
            yield "        <tr style=\"height: 25px\"><td colspan=\"4\" ></td></tr>
        <tr style=\"height: 25px\"><td colspan=\"4\" ></td></tr>
        <tr style=\"height: 25px\"><td colspan=\"4\" ></td></tr>
    ";
        }
        // line 33
        yield "    </tbody>
</table>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  131 => 33,  125 => 29,  122 => 28,  119 => 27,  112 => 25,  107 => 24,  104 => 23,  101 => 22,  95 => 21,  89 => 18,  85 => 17,  81 => 16,  73 => 15,  70 => 14,  67 => 13,  64 => 12,  59 => 11,  56 => 10,  54 => 9,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<table class=\"table table-responsive table-bordered  table-sm table-inverse-color-datagrid mb-0\">
    <thead>
    <th>N°Devis</th>
    <th>Date</th>
    <th>Statut</th>
    <th>Total TTC</th>
    </thead>
    <tbody style=\"height: 75px\">
    {% set nb_line = 0 %}
    {% if intervention.devis|length > 0 %}
        {% for devis in intervention.devis %}
            {% set nb_line = nb_line + 1 %}
            {% if devis.TypeEnvoi.id == 2 %}
                <tr class=\"bg-orange-input border-orange\">
                    <td class=\"text-center\" class=\"popup_devis\" data-iddevis=\"{{ devis.id }}\"><a data-poppup-container=\"body\" data-popup-position-of=\"center\" data-popup-position-at=\"center\" data-popup-offset=\"0 -100\"  data-popup-id=\"popup-devis\" data-dxpopup=\"\" data-popup-title=\"Etablissement du devis n°{{ devis.getNumDevis }}\" data-popup-width=\"auto\" > <i class=\"fa fa-tools me-2\"></i><span class=\"color-vert text-decoration-underline\">{{ devis.getNumDevis }}</span></a></td>
                    <td class=\"text-center\">{{ devis.getDateEmission|date('d/m/Y') }}</td>
                    <td class=\"text-center\">{{ devis.getDevisStatut.libelle }}</td>
                    <td class=\"text-center\">{{ devis.getMontantTtc }}€</td>
                </tr>
            {% endif %}
        {% endfor %}
        {% set emptyRows = 3 - nb_line %}
        {% if emptyRows > 0 %}
            {% for i in 1..emptyRows %}
                <tr style=\"height: 25px\"><td colspan=\"4\"></td></tr>
            {% endfor %}
        {% endif %}
    {% else %}
        <tr style=\"height: 25px\"><td colspan=\"4\" ></td></tr>
        <tr style=\"height: 25px\"><td colspan=\"4\" ></td></tr>
        <tr style=\"height: 25px\"><td colspan=\"4\" ></td></tr>
    {% endif %}
    </tbody>
</table>", "intervention/_tableau_devis.html.twig", "/builds/dev/refonte_sav/templates/intervention/_tableau_devis.html.twig");
    }
}
