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

        // line 1
        yield "<div id=\"popup-equipement-privilege-";
        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.', 1, $this->source); })()), "id", [], "any", false, false, false, 1), "html", null, true);
        yield "\" style=\"display:none;\" >
    ";
        // line 2
        $context["privilege"] = 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.', 2, $this->source); })()), "getLastPrivilege", [], "method", false, false, false, 2);
        // line 3
        yield "    <div class=\"d-flex  flex-column \" >
        <div class=\"mb-1\">Offre proposée le: ";
        // line 4
        (((isset($context["privilege"]) || array_key_exists("privilege", $context) ? $context["privilege"] : (function () { throw new RuntimeError('Variable "privilege" does not exist.', 4, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["privilege"]) || array_key_exists("privilege", $context) ? $context["privilege"] : (function () { throw new RuntimeError('Variable "privilege" does not exist.', 4, $this->source); })()), "getDateProposition", [], "any", false, false, false, 4), "d/m/Y"), "html", null, true)) : (yield ""));
        yield "</div>
        <div class=\"mb-1\">";
        // line 5
        (((isset($context["privilege"]) || array_key_exists("privilege", $context) ? $context["privilege"] : (function () { throw new RuntimeError('Variable "privilege" does not exist.', 5, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["privilege"]) || array_key_exists("privilege", $context) ? $context["privilege"] : (function () { throw new RuntimeError('Variable "privilege" does not exist.', 5, $this->source); })()), "privilegeStatut", [], "any", false, false, false, 5), "libelle", [], "any", false, false, false, 5), "html", null, true)) : (yield ""));
        ((((isset($context["privilege"]) || array_key_exists("privilege", $context) ? $context["privilege"] : (function () { throw new RuntimeError('Variable "privilege" does not exist.', 5, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["privilege"]) || array_key_exists("privilege", $context) ? $context["privilege"] : (function () { throw new RuntimeError('Variable "privilege" does not exist.', 5, $this->source); })()), "raisonRefus", [], "any", false, false, false, 5))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((": " . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["privilege"]) || array_key_exists("privilege", $context) ? $context["privilege"] : (function () { throw new RuntimeError('Variable "privilege" does not exist.', 5, $this->source); })()), "raisonRefus", [], "any", false, false, false, 5), "libelle", [], "any", false, false, false, 5)), "html", null, true)) : (yield ""));
        yield "</div>
        <div class=\"d-flex align-items-center\">
            <div class=\"me-2\">Commentaire</div>
            <textarea rows=\"4\" style=\"width:400px\" style=\"height:56px;\" class=\"form-control\" disabled>";
        // line 8
        (((isset($context["privilege"]) || array_key_exists("privilege", $context) ? $context["privilege"] : (function () { throw new RuntimeError('Variable "privilege" does not exist.', 8, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["privilege"]) || array_key_exists("privilege", $context) ? $context["privilege"] : (function () { throw new RuntimeError('Variable "privilege" does not exist.', 8, $this->source); })()), "commentaire", [], "any", false, false, false, 8), "html", null, true)) : (yield ""));
        yield "</textarea>
        </div>
    </div>
</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  65 => 8,  58 => 5,  54 => 4,  51 => 3,  49 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div id=\"popup-equipement-privilege-{{ equipement.id }}\" style=\"display:none;\" >
    {% set privilege = equipement.getLastPrivilege() %}
    <div class=\"d-flex  flex-column \" >
        <div class=\"mb-1\">Offre proposée le: {{ privilege ? privilege.getDateProposition|date(\"d/m/Y\") }}</div>
        <div class=\"mb-1\">{{ privilege ? privilege.privilegeStatut.libelle}}{{ privilege and privilege.raisonRefus ? ': ' ~ privilege.raisonRefus.libelle }}</div>
        <div class=\"d-flex align-items-center\">
            <div class=\"me-2\">Commentaire</div>
            <textarea rows=\"4\" style=\"width:400px\" style=\"height:56px;\" class=\"form-control\" disabled>{{ privilege ? privilege.commentaire }}</textarea>
        </div>
    </div>
</div>", "clients/contrat/_popup_privileges.html.twig", "/builds/dev/refonte_sav/templates/clients/contrat/_popup_privileges.html.twig");
    }
}
