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

        // line 1
        if ((array_key_exists("message_error", $context) && (isset($context["message_error"]) || array_key_exists("message_error", $context) ? $context["message_error"] : (function () { throw new RuntimeError('Variable "message_error" does not exist.', 1, $this->source); })()))) {
            // line 2
            yield "<div class=\"messages\">
    <div class=\"alert alert-dismissible alert-danger fade show\"   role=\"alert\">
        ";
            // line 4
            yield (isset($context["message_error"]) || array_key_exists("message_error", $context) ? $context["message_error"] : (function () { throw new RuntimeError('Variable "message_error" does not exist.', 4, $this->source); })());
            yield "
        <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\" style=\"opacity:1\"></button>
    </div>
</div>
";
        }
        // line 9
        yield "<table id=\"list-contrats-groupe-";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["idContrat"]) || array_key_exists("idContrat", $context) ? $context["idContrat"] : (function () { throw new RuntimeError('Variable "idContrat" does not exist.', 9, $this->source); })()), "html", null, true);
        yield "\" class=\"table table-striped mt-2\" style=\"font-size:14px\">
    ";
        // line 10
        if (array_key_exists("contratsGroupe", $context)) {
            // line 11
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable((isset($context["contratsGroupe"]) || array_key_exists("contratsGroupe", $context) ? $context["contratsGroupe"] : (function () { throw new RuntimeError('Variable "contratsGroupe" does not exist.', 11, $this->source); })()));
            foreach ($context['_seq'] as $context["_key"] => $context["ct"]) {
                // line 12
                yield "    <tr>
        <td width=\"95%\">
            <b>N°client:</b> ";
                // line 14
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ct"], "getClient", [], "any", false, false, false, 14), "getFormattedNumeroClient", [], "any", false, false, false, 14), "html", null, true);
                yield "
            ";
                // line 15
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ct"], "getClient", [], "any", false, false, false, 15), "getPrenom", [], "any", false, false, false, 15) . " ") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ct"], "getClient", [], "any", false, false, false, 15), "getNom", [], "any", false, false, false, 15)), "html", null, true);
                yield "
            <b>Date début:</b> ";
                // line 16
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["ct"], "getDateDebutContrat", [], "any", false, false, false, 16), "d/m/Y"), "html", null, true);
                yield "
            <b>Date fin:</b> ";
                // line 17
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["ct"], "getDateFinContrat", [], "any", false, false, false, 17), "d/m/Y"), "html", null, true);
                yield "
            <b>Adresse:</b> ";
                // line 18
                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, $context["ct"], "getEquipement", [], "any", false, false, false, 18), "adresse", [], "any", false, false, false, 18), "getLisibleAdresse", [], "any", false, false, false, 18), "html", null, true);
                yield "
            <b>N°Serie:</b> ";
                // line 19
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ct"], "getEquipement", [], "any", false, false, false, 19), "numSeriePrincipal", [], "any", false, false, false, 19), "html", null, true);
                yield "
        </td>
        <td>
            <a  class=\"contrat-groupe-delete\" data-id=\"";
                // line 22
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ct"], "id", [], "any", false, false, false, 22), "html", null, true);
                yield "\" ><i class=\"fa fa-trash fa-lg\"></i></a>
        </td>
    </tr>
";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ct'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 26
            yield "    ";
        }
        // line 27
        yield "</table>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  112 => 27,  109 => 26,  99 => 22,  93 => 19,  89 => 18,  85 => 17,  81 => 16,  77 => 15,  73 => 14,  69 => 12,  65 => 11,  63 => 10,  58 => 9,  50 => 4,  46 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% if message_error is defined and message_error %}
<div class=\"messages\">
    <div class=\"alert alert-dismissible alert-danger fade show\"   role=\"alert\">
        {{ message_error|raw }}
        <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\" style=\"opacity:1\"></button>
    </div>
</div>
{% endif %}
<table id=\"list-contrats-groupe-{{ idContrat }}\" class=\"table table-striped mt-2\" style=\"font-size:14px\">
    {% if contratsGroupe is defined %}
{%  for ct in contratsGroupe %}
    <tr>
        <td width=\"95%\">
            <b>N°client:</b> {{ ct.getClient.getFormattedNumeroClient }}
            {{ ct.getClient.getPrenom ~ ' ' ~ ct.getClient.getNom}}
            <b>Date début:</b> {{ ct.getDateDebutContrat|date('d/m/Y') }}
            <b>Date fin:</b> {{ ct.getDateFinContrat|date('d/m/Y') }}
            <b>Adresse:</b> {{ ct.getEquipement.adresse.getLisibleAdresse }}
            <b>N°Serie:</b> {{ ct.getEquipement.numSeriePrincipal }}
        </td>
        <td>
            <a  class=\"contrat-groupe-delete\" data-id=\"{{ ct.id }}\" ><i class=\"fa fa-trash fa-lg\"></i></a>
        </td>
    </tr>
{% endfor %}
    {% endif %}
</table>", "clients/contrat/_contrats_groupe.html.twig", "/builds/dev/refonte_sav/templates/clients/contrat/_contrats_groupe.html.twig");
    }
}
