<?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/intervention/_intervention_result.html.twig */
class __TwigTemplate_caf5b4d48eea56206a5ef5cf59ae86a2864018dfae35c069f99051176ffe6480 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/intervention/_intervention_result.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/intervention/_intervention_result.html.twig"));

        // line 1
        $context["hasValidationAdm"] = ((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.', 1, $this->source); })()), "dateValidationAdm", [], "any", false, false, false, 1)) ? (true) : (false));
        // line 2
        $context["hasValidationTech"] = ((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.', 2, $this->source); })()), "dateValidationTechnique", [], "any", false, false, false, 2)) ? (true) : (false));
        // line 3
        yield "<div class=\"container-fluid\">
    <div class=\"d-flex align-items-center mb-2\">
        <div style=\"width:98px;\">
            N° Intervention
        </div>
        <div class=\"color-vert-link fw-600 me-2\" style=\"width:105px;font-size: 15px;\">
            ";
        // line 9
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 9, $this->source); })()), "id", [], "any", false, false, false, 9), "html", null, true);
        yield "
        </div>
        <a class=\"btn btn-md btn-block ";
        // line 11
        yield (((isset($context["hasValidationAdm"]) || array_key_exists("hasValidationAdm", $context) ? $context["hasValidationAdm"] : (function () { throw new RuntimeError('Variable "hasValidationAdm" does not exist.', 11, $this->source); })())) ? ("border-vert-vert bg-vert-vert-inverse") : ("border-rouge bg-rouge-inverse"));
        yield " px-1 me-2\" style=\"height: 28px;width:173px;font-size: 13px;\" data-poppup-container=\"body\" data-popup-id=\"popup-validation-adm-";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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); })()), "id", [], "any", false, false, false, 11), "html", null, true);
        yield "\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-position-at=\"top\" data-popup-title=\"Validation administrative\" data-popup-width=\"535px\" data-popup-height=\"110px\">
            <i class=\"fa ";
        // line 12
        yield (((isset($context["hasValidationAdm"]) || array_key_exists("hasValidationAdm", $context) ? $context["hasValidationAdm"] : (function () { throw new RuntimeError('Variable "hasValidationAdm" does not exist.', 12, $this->source); })())) ? ("fa-check-circle") : ("fa-exclamation-circle"));
        yield " me-1\"></i>Validation administrative
        </a>
        <a class=\"btn btn-md btn-block ";
        // line 14
        yield (((isset($context["hasValidationTech"]) || array_key_exists("hasValidationTech", $context) ? $context["hasValidationTech"] : (function () { throw new RuntimeError('Variable "hasValidationTech" does not exist.', 14, $this->source); })())) ? ("border-vert-vert bg-vert-vert-inverse") : ("border-rouge bg-rouge-inverse"));
        yield " px-1 me-2\" style=\"height: 28px;width:148px;font-size: 13px;\" data-poppup-container=\"body\" data-popup-id=\"popup-validation-tech-";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 14, $this->source); })()), "id", [], "any", false, false, false, 14), "html", null, true);
        yield "\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-position-at=\"top\" data-popup-title=\"Validation technique\" data-popup-width=\"535px\">
            <i class=\"fa ";
        // line 15
        yield (((isset($context["hasValidationTech"]) || array_key_exists("hasValidationTech", $context) ? $context["hasValidationTech"] : (function () { throw new RuntimeError('Variable "hasValidationTech" does not exist.', 15, $this->source); })())) ? ("fa-check-circle") : ("fa-exclamation-circle"));
        yield " me-1\"></i>Validation technique
        </a>
        <div class=\"ms-auto\">
            <a class=\"btn bg-outline-bleu btn-sm\" style=\"height:28px;\" data-poppup-container=\"body\" data-popup-id=\"popup-documents-";
        // line 18
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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); })()), "id", [], "any", false, false, false, 18), "html", null, true);
        yield "\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-position-at=\"top\" data-popup-title=\"Documents\" data-popup-width=\"535px\" data-popup-height=\"110px\">
                <i class=\"fa fa-copy\"></i>
            </a>
        </div>
    </div>

    <div class=\"d-flex mb-2\">
        <div class=\"d-flex align-items-center\">
            <label class=\"form-label mb-0\" style=\"min-width:97px;\">Durée (min.)</label>
            <input type=\"text\" class=\"form-control form-control-sm\" style=\"width:50px;\" value=\"";
        // line 27
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 27, $this->source); })()), "planning", [], "any", false, false, false, 27), "duree", [], "any", false, false, false, 27), "html", null, true);
        yield "\" disabled>
        </div>
        <div class=\"d-flex align-items-center\">
            <label class=\"form-label mb-0 me-2\" style=\"min-width:66px;margin-left: 2.1rem;\">Planifiée le</label>
            <input type=\"text\" class=\"form-control form-control-sm\" style=\"width:100px;\" value=\"";
        // line 31
        ((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.', 31, $this->source); })()), "planning", [], "any", false, false, false, 31), "dateCreation", [], "any", false, false, false, 31)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(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.', 31, $this->source); })()), "planning", [], "any", false, false, false, 31), "dateCreation", [], "any", false, false, false, 31), "d/m/Y"), "html", null, true)) : (yield ""));
        yield "\" disabled>
        </div>
        <div class=\" d-flex align-items-center\">
            <label class=\"form-label mb-0 me-2 ms-2\" style=\"min-width:14px;\">par</label>
            <input type=\"text\" class=\"form-control form-control-sm\" style=\"width:183px;\" value=\"";
        // line 35
        ((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.', 35, $this->source); })()), "planning", [], "any", false, false, false, 35), "utilisateurPlanning", [], "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, 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); })()), "planning", [], "any", false, false, false, 35), "utilisateurPlanning", [], "any", false, false, false, 35), "getCodeNom", [], "any", false, false, false, 35), "html", null, true)) : (yield ""));
        yield "\" disabled>
        </div>
    </div>
    <div class=\"row\">
        <div class=\"col-md-12 d-flex align-items-center mb-2\">
            <label class=\"form-label mb-0\" style=\"min-width:97px;\">Observations</label>
            <textarea class=\"form-control bg-opacity-25\" rows=\"5\" disabled style=\"width:478px;\">";
        // line 41
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 41, $this->source); })()), "observations", [], "any", false, false, false, 41), "html", null, true);
        yield "</textarea>
        </div>
    </div>
    <div class=\"row mb-2\">
        <div class=\"col-md-12 d-flex align-items-center\">
            <label class=\"form-label mb-0\" style=\"min-width:97px;\">Anomalies</label>
            <textarea class=\"form-control bg-opacity-25\" rows=\"3\" disabled style=\"width:478px;\">";
        // line 47
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::join(Twig\Extension\CoreExtension::map($this->env, 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.', 47, $this->source); })()), "interventionAnomalies", [], "any", false, false, false, 47), function ($__i__) use ($context, $macros) { $context["i"] = $__i__; return ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 47, $this->source); })()), "anomalie", [], "any", false, false, false, 47)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 47, $this->source); })()), "anomalie", [], "any", false, false, false, 47), "libelle", [], "any", false, false, false, 47)) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 47, $this->source); })()), "anomalieOracle", [], "any", false, false, false, 47), "libelle", [], "any", false, false, false, 47))); }), "
"), "html", null, true);
        yield "</textarea>
        </div>
    </div>

    <div class=\"row mt-2\">
        <div class=\"col\">
            ";
        // line 53
        yield Twig\Extension\CoreExtension::include($this->env, $context, "intervention/_tableau_devis.html.twig");
        yield "
        </div>
    </div>
</div>
";
        // line 57
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/intervention/_popup_validation_adm.html.twig");
        yield "
";
        // line 58
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/intervention/_popup_validation_tech.html.twig");
        yield "
";
        // line 59
        yield Twig\Extension\CoreExtension::include($this->env, $context, "clients/intervention/_popup_documents.html.twig");
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  153 => 59,  149 => 58,  145 => 57,  138 => 53,  128 => 47,  119 => 41,  110 => 35,  103 => 31,  96 => 27,  84 => 18,  78 => 15,  72 => 14,  67 => 12,  61 => 11,  56 => 9,  48 => 3,  46 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% set hasValidationAdm = intervention.dateValidationAdm ? true : false %}
{% set hasValidationTech = intervention.dateValidationTechnique ? true : false %}
<div class=\"container-fluid\">
    <div class=\"d-flex align-items-center mb-2\">
        <div style=\"width:98px;\">
            N° Intervention
        </div>
        <div class=\"color-vert-link fw-600 me-2\" style=\"width:105px;font-size: 15px;\">
            {{ intervention.id }}
        </div>
        <a class=\"btn btn-md btn-block {{ hasValidationAdm ? 'border-vert-vert bg-vert-vert-inverse' : 'border-rouge bg-rouge-inverse' }} px-1 me-2\" style=\"height: 28px;width:173px;font-size: 13px;\" data-poppup-container=\"body\" data-popup-id=\"popup-validation-adm-{{ intervention.id }}\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-position-at=\"top\" data-popup-title=\"Validation administrative\" data-popup-width=\"535px\" data-popup-height=\"110px\">
            <i class=\"fa {{ hasValidationAdm ? 'fa-check-circle' : 'fa-exclamation-circle' }} me-1\"></i>Validation administrative
        </a>
        <a class=\"btn btn-md btn-block {{ hasValidationTech ? 'border-vert-vert bg-vert-vert-inverse' : 'border-rouge bg-rouge-inverse' }} px-1 me-2\" style=\"height: 28px;width:148px;font-size: 13px;\" data-poppup-container=\"body\" data-popup-id=\"popup-validation-tech-{{ intervention.id }}\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-position-at=\"top\" data-popup-title=\"Validation technique\" data-popup-width=\"535px\">
            <i class=\"fa {{ hasValidationTech ? 'fa-check-circle' : 'fa-exclamation-circle' }} me-1\"></i>Validation technique
        </a>
        <div class=\"ms-auto\">
            <a class=\"btn bg-outline-bleu btn-sm\" style=\"height:28px;\" data-poppup-container=\"body\" data-popup-id=\"popup-documents-{{ intervention.id }}\" data-dxpopup=\"\" data-popup-offset =\"0 275\" data-popup-position-at=\"top\" data-popup-title=\"Documents\" data-popup-width=\"535px\" data-popup-height=\"110px\">
                <i class=\"fa fa-copy\"></i>
            </a>
        </div>
    </div>

    <div class=\"d-flex mb-2\">
        <div class=\"d-flex align-items-center\">
            <label class=\"form-label mb-0\" style=\"min-width:97px;\">Durée (min.)</label>
            <input type=\"text\" class=\"form-control form-control-sm\" style=\"width:50px;\" value=\"{{ intervention.planning.duree }}\" disabled>
        </div>
        <div class=\"d-flex align-items-center\">
            <label class=\"form-label mb-0 me-2\" style=\"min-width:66px;margin-left: 2.1rem;\">Planifiée le</label>
            <input type=\"text\" class=\"form-control form-control-sm\" style=\"width:100px;\" value=\"{{ intervention.planning.dateCreation ? intervention.planning.dateCreation|date('d/m/Y') }}\" disabled>
        </div>
        <div class=\" d-flex align-items-center\">
            <label class=\"form-label mb-0 me-2 ms-2\" style=\"min-width:14px;\">par</label>
            <input type=\"text\" class=\"form-control form-control-sm\" style=\"width:183px;\" value=\"{{ intervention.planning.utilisateurPlanning ? intervention.planning.utilisateurPlanning.getCodeNom }}\" disabled>
        </div>
    </div>
    <div class=\"row\">
        <div class=\"col-md-12 d-flex align-items-center mb-2\">
            <label class=\"form-label mb-0\" style=\"min-width:97px;\">Observations</label>
            <textarea class=\"form-control bg-opacity-25\" rows=\"5\" disabled style=\"width:478px;\">{{ intervention.observations }}</textarea>
        </div>
    </div>
    <div class=\"row mb-2\">
        <div class=\"col-md-12 d-flex align-items-center\">
            <label class=\"form-label mb-0\" style=\"min-width:97px;\">Anomalies</label>
            <textarea class=\"form-control bg-opacity-25\" rows=\"3\" disabled style=\"width:478px;\">{{ intervention.interventionAnomalies|map(i => i.anomalie ? i.anomalie.libelle : i.anomalieOracle.libelle)|join(\"\\n\") }}</textarea>
        </div>
    </div>

    <div class=\"row mt-2\">
        <div class=\"col\">
            {{ include('intervention/_tableau_devis.html.twig') }}
        </div>
    </div>
</div>
{{ include('clients/intervention/_popup_validation_adm.html.twig') }}
{{ include('clients/intervention/_popup_validation_tech.html.twig') }}
{{ include('clients/intervention/_popup_documents.html.twig') }}", "clients/intervention/_intervention_result.html.twig", "/builds/dev/refonte_sav/templates/clients/intervention/_intervention_result.html.twig");
    }
}
