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

        // line 1
        yield "<div 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.', 1, $this->source); })()), "id", [], "any", false, false, false, 1), "html", null, true);
        yield "\" class=\"pt-0\" style=\"display: none;width: 535px;\">
    <div class=\"d-flex  justify-content-center align-items-center\">
        ";
        // 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); })()), "getDateValidationAdm", [], "any", false, false, false, 3)) {
            // line 4
            yield "            <img src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-intervention-warning.png"), "html", null, true);
            yield "\" width=\"24\" height=\"24\" class=\"me-2\">
            <span class=\"color-rouge\" style=\"font-size: 15px;font-weight: 700\">Fiche En attente de validation</span>
        ";
        } else {
            // line 7
            yield "            ";
            $context["utilisateur_valid"] = 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.', 7, $this->source); })()), "getUtilisateurValidationAdm", [], "any", false, false, false, 7);
            // line 8
            yield "            <div style=\";font-size: 15px;\">Fiche contrôlée le <span class=\"color-vert\" style=\"font-weight: 700\">";
            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.', 8, $this->source); })()), "getDateValidationAdm", [], "any", false, false, false, 8), "d/m/Y à H:i"), "html", null, true);
            yield "</span> par <span class=\"color-vert\" style=\"font-weight: 700\">";
            ((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.', 8, $this->source); })()), "getTypeValidationAdm", [], "any", false, false, false, 8)) ? (((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.', 8, $this->source); })()), "getTypeValidationAdm", [], "any", false, false, false, 8), "isValidationAutomatique", [], "any", false, false, false, 8)) ? (yield "Validation automatique") : ((((isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 8, $this->source); })())) ? (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, (isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 8, $this->source); })()), "prenom", [], "any", false, false, false, 8), 0, 1)) . ".") . Twig\Extension\CoreExtension::upper($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["utilisateur_valid"]) || array_key_exists("utilisateur_valid", $context) ? $context["utilisateur_valid"] : (function () { throw new RuntimeError('Variable "utilisateur_valid" does not exist.', 8, $this->source); })()), "nom", [], "any", false, false, false, 8))), "html", null, true)) : (yield ""))))) : (yield ""));
            yield "</span></div>
        ";
        }
        // line 10
        yield "    </div>
</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  70 => 10,  62 => 8,  59 => 7,  52 => 4,  50 => 3,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div id=\"popup-validation-adm-{{ intervention.id }}\" class=\"pt-0\" style=\"display: none;width: 535px;\">
    <div class=\"d-flex  justify-content-center align-items-center\">
        {%  if not intervention.getDateValidationAdm %}
            <img src=\"{{ asset('build/images/picto-intervention-warning.png') }}\" width=\"24\" height=\"24\" class=\"me-2\">
            <span class=\"color-rouge\" style=\"font-size: 15px;font-weight: 700\">Fiche En attente de validation</span>
        {% else %}
            {% set utilisateur_valid = intervention.getUtilisateurValidationAdm %}
            <div style=\";font-size: 15px;\">Fiche contrôlée le <span class=\"color-vert\" style=\"font-weight: 700\">{{ intervention.getDateValidationAdm|date('d/m/Y à H:i') }}</span> par <span class=\"color-vert\" style=\"font-weight: 700\">{{ intervention.getTypeValidationAdm ? intervention.getTypeValidationAdm.isValidationAutomatique ? 'Validation automatique' : (utilisateur_valid) ? utilisateur_valid.prenom|slice(0,1)|upper ~'.'~utilisateur_valid.nom|upper }}</span></div>
        {% endif %}
    </div>
</div>", "clients/intervention/_popup_validation_adm.html.twig", "/builds/dev/refonte_sav/templates/clients/intervention/_popup_validation_adm.html.twig");
    }
}
