<?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/fields/_envoi_avis_echeance.html.twig */
class __TwigTemplate_5b56ab792829cfb10b1a40739d1e4451e3a3f14f884d65c37b4b79324e3c514a 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/fields/_envoi_avis_echeance.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/fields/_envoi_avis_echeance.html.twig"));

        // line 1
        yield "<div class=\"d-flex align-items-center\">
    <label  style=\"line-height: normal;width: ";
        // line 2
        yield (((0 === CoreExtension::compare((isset($context["affichage_contrat"]) || array_key_exists("affichage_contrat", $context) ? $context["affichage_contrat"] : (function () { throw new RuntimeError('Variable "affichage_contrat" does not exist.', 2, $this->source); })()), "contrat_a_venir"))) ? ("129") : ("116"));
        yield "px;\">Envoi";
        yield (((array_key_exists("affichage_contrat", $context) && (0 === CoreExtension::compare((isset($context["affichage_contrat"]) || array_key_exists("affichage_contrat", $context) ? $context["affichage_contrat"] : (function () { throw new RuntimeError('Variable "affichage_contrat" does not exist.', 2, $this->source); })()), "contrat_a_venir")))) ? ("") : ("<br>"));
        yield " avis échéance</label>
    <input  disabled  style=\"width:";
        // line 3
        yield (((isset($context["envoi_avis_echeance"]) || array_key_exists("envoi_avis_echeance", $context) ? $context["envoi_avis_echeance"] : (function () { throw new RuntimeError('Variable "envoi_avis_echeance" does not exist.', 3, $this->source); })())) ? ("96") : ("124"));
        yield "px !important\" data-disable-on-view=\"\" name=\"date_echeance-";
        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.', 3, $this->source); })()), "id", [], "any", false, false, false, 3), "html", null, true);
        yield "\" ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 3, $this->source); })()), "html", null, true);
        yield " form=\"form_client_update\" class=\"form-control input-date-custom\" value=\"";
        ((((isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 3, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 3, $this->source); })()), "dateAvisEcheance", [], "any", false, false, false, 3))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (isset($context["contrat"]) || array_key_exists("contrat", $context) ? $context["contrat"] : (function () { throw new RuntimeError('Variable "contrat" does not exist.', 3, $this->source); })()), "dateAvisEcheance", [], "any", false, false, false, 3), "d/m/Y"), "html", null, true)) : (yield ""));
        yield "\">
    ";
        // line 4
        if ((isset($context["envoi_avis_echeance"]) || array_key_exists("envoi_avis_echeance", $context) ? $context["envoi_avis_echeance"] : (function () { throw new RuntimeError('Variable "envoi_avis_echeance" does not exist.', 4, $this->source); })())) {
            // line 5
            yield "        <img width=\"28\"  height=\"28\" src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/picto-envoi-courrier.png"), "html", null, true);
            yield " \" style=\"vertical-align: sub; margin-left: 2px;cursor:pointer\" />
    ";
        }
        // line 7
        yield "</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  71 => 7,  65 => 5,  63 => 4,  53 => 3,  47 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"d-flex align-items-center\">
    <label  style=\"line-height: normal;width: {{ affichage_contrat == 'contrat_a_venir' ? '129' : '116' }}px;\">Envoi{{ affichage_contrat is defined and affichage_contrat == 'contrat_a_venir' ? '' : '<br>' }} avis échéance</label>
    <input  disabled  style=\"width:{{ envoi_avis_echeance ? '96' : '124' }}px !important\" data-disable-on-view=\"\" name=\"date_echeance-{{ equipement.id }}\" {{ disabled }} form=\"form_client_update\" class=\"form-control input-date-custom\" value=\"{{contrat and contrat.dateAvisEcheance ? contrat.dateAvisEcheance|date(\"d/m/Y\") : '' }}\">
    {% if envoi_avis_echeance  %}
        <img width=\"28\"  height=\"28\" src=\"{{ asset('build/images/picto-envoi-courrier.png') }} \" style=\"vertical-align: sub; margin-left: 2px;cursor:pointer\" />
    {% endif %}
</div>", "clients/contrat/fields/_envoi_avis_echeance.html.twig", "/builds/dev/refonte_sav/templates/clients/contrat/fields/_envoi_avis_echeance.html.twig");
    }
}
