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

        // line 1
        yield "<div id=\"popup-history-validation-technique\" style=\"display:none;\">
    <div class=\"p-2 font-size-13\">
        ";
        // line 3
        if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 3, $this->source); })()), "datePreValidationTechnique", [], "any", false, false, false, 3) || 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.', 3, $this->source); })()), "typePreValidationTechnique", [], "any", false, false, false, 3))) {
            // line 4
            yield "            <table class=\"table table-sm table-bordered mb-0\">
                <thead class=\"table-light\">
                    <tr>
                        <th style=\"width:140px;\">Date/heure prévalidation</th>
                        <th style=\"width:120px;\">Prévalidé par</th>
                        <th>Points de contrôle</th>
                        <th style=\"width:180px;\">Type de prévalidation</th>
                        <th>Commentaires</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>";
            // line 16
            ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 16, $this->source); })()), "datePreValidationTechnique", [], "any", false, false, false, 16)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 16, $this->source); })()), "datePreValidationTechnique", [], "any", false, false, false, 16), "d/m/Y H:i"), "html", null, true)) : (yield "—"));
            yield "</td>
                        <td>
                            ";
            // line 18
            if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 18, $this->source); })()), "utilisateurPreValidationTechnique", [], "any", false, false, false, 18)) {
                // line 19
                yield "                                ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::upper($this->env->getCharset(), Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 19, $this->source); })()), "utilisateurPreValidationTechnique", [], "any", false, false, false, 19), "prenom", [], "any", false, false, false, 19), 0, 1)), "html", null, true);
                yield ". ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::upper($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 19, $this->source); })()), "utilisateurPreValidationTechnique", [], "any", false, false, false, 19), "nom", [], "any", false, false, false, 19)), "html", null, true);
                yield "
                            ";
            } else {
                // line 21
                yield "                                —
                            ";
            }
            // line 23
            yield "                        </td>
                        <td>
                            ";
            // line 25
            if (Twig\Extension\CoreExtension::length($this->env->getCharset(), ((array_key_exists("pointsControleCoches", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["pointsControleCoches"]) || array_key_exists("pointsControleCoches", $context) ? $context["pointsControleCoches"] : (function () { throw new RuntimeError('Variable "pointsControleCoches" does not exist.', 25, $this->source); })()), [])) : ([])))) {
                // line 26
                yield "                                <ul class=\"list-unstyled mb-0 ps-0\">
                                    ";
                // line 27
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable((isset($context["pointsControleCoches"]) || array_key_exists("pointsControleCoches", $context) ? $context["pointsControleCoches"] : (function () { throw new RuntimeError('Variable "pointsControleCoches" does not exist.', 27, $this->source); })()));
                foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
                    // line 28
                    yield "                                        <li>– ";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["p"], "validationTechniquePdc", [], "any", false, false, false, 28), "annotation", [], "any", false, false, false, 28), "html", null, true);
                    yield "</li>
                                    ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 30
                yield "                                </ul>
                            ";
            } else {
                // line 32
                yield "                                —
                            ";
            }
            // line 34
            yield "                        </td>
                        <td>";
            // line 35
            ((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.', 35, $this->source); })()), "typePreValidationTechnique", [], "any", false, false, false, 35)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["intervention"] ?? null), "typePreValidationTechnique", [], "any", false, true, false, 35), "libelleTechnique", [], "any", true, true, false, 35) &&  !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["intervention"] ?? null), "typePreValidationTechnique", [], "any", false, true, false, 35), "libelleTechnique", [], "any", false, false, false, 35)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["intervention"] ?? null), "typePreValidationTechnique", [], "any", false, true, false, 35), "libelleTechnique", [], "any", false, false, false, 35)) : ((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["intervention"] ?? null), "typePreValidationTechnique", [], "any", false, true, false, 35), "libelle", [], "any", true, true, false, 35) &&  !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["intervention"] ?? null), "typePreValidationTechnique", [], "any", false, true, false, 35), "libelle", [], "any", false, false, false, 35)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["intervention"] ?? null), "typePreValidationTechnique", [], "any", false, true, false, 35), "libelle", [], "any", false, false, false, 35)) : ("")))), "html", null, true)) : (yield "—"));
            yield "</td>
                        <td>";
            // line 36
            ((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.', 36, $this->source); })()), "commentaireTechnique", [], "any", false, false, false, 36)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::trim(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 36, $this->source); })()), "commentaireTechnique", [], "any", false, false, false, 36)), "html", null, true)) : (yield "—"));
            yield "</td>
                    </tr>
                </tbody>
            </table>
        ";
        } else {
            // line 41
            yield "            <p class=\"text-muted mb-0\">Aucune prévalidation enregistrée.</p>
        ";
        }
        // line 43
        yield "    </div>
</div>
";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  132 => 43,  128 => 41,  120 => 36,  116 => 35,  113 => 34,  109 => 32,  105 => 30,  96 => 28,  92 => 27,  89 => 26,  87 => 25,  83 => 23,  79 => 21,  71 => 19,  69 => 18,  64 => 16,  50 => 4,  48 => 3,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div id=\"popup-history-validation-technique\" style=\"display:none;\">
    <div class=\"p-2 font-size-13\">
        {% if intervention.datePreValidationTechnique or intervention.typePreValidationTechnique %}
            <table class=\"table table-sm table-bordered mb-0\">
                <thead class=\"table-light\">
                    <tr>
                        <th style=\"width:140px;\">Date/heure prévalidation</th>
                        <th style=\"width:120px;\">Prévalidé par</th>
                        <th>Points de contrôle</th>
                        <th style=\"width:180px;\">Type de prévalidation</th>
                        <th>Commentaires</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>{{ intervention.datePreValidationTechnique ? intervention.datePreValidationTechnique|date('d/m/Y H:i') : '—' }}</td>
                        <td>
                            {% if intervention.utilisateurPreValidationTechnique %}
                                {{ intervention.utilisateurPreValidationTechnique.prenom|slice(0,1)|upper }}. {{ intervention.utilisateurPreValidationTechnique.nom|upper }}
                            {% else %}
                                —
                            {% endif %}
                        </td>
                        <td>
                            {% if pointsControleCoches|default([])|length %}
                                <ul class=\"list-unstyled mb-0 ps-0\">
                                    {% for p in pointsControleCoches %}
                                        <li>– {{ p.validationTechniquePdc.annotation }}</li>
                                    {% endfor %}
                                </ul>
                            {% else %}
                                —
                            {% endif %}
                        </td>
                        <td>{{ intervention.typePreValidationTechnique ? (intervention.typePreValidationTechnique.libelleTechnique ?? intervention.typePreValidationTechnique.libelle ?? '') : '—' }}</td>
                        <td>{{ intervention.commentaireTechnique ? intervention.commentaireTechnique|trim : '—' }}</td>
                    </tr>
                </tbody>
            </table>
        {% else %}
            <p class=\"text-muted mb-0\">Aucune prévalidation enregistrée.</p>
        {% endif %}
    </div>
</div>
", "intervention/popup_history_validation_technique.html.twig", "/builds/dev/refonte_sav/templates/intervention/popup_history_validation_technique.html.twig");
    }
}
