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

        // line 1
        yield "<div id=\"popup-equipement-po-";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 1, $this->source); })()), "id", [], "any", false, false, false, 1), "html", null, true);
        yield "\" style=\"display:none;\" >
    <div class=\"px-4 pb-4 d-flex justify-content-center align-items-center flex-column\" style=\"max-height: 900px;overflow-y: auto;overflow-x: hidden;\" >
        ";
        // line 3
        if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 3, $this->source); })()), "getPorteOuvertes", [], "any", false, false, false, 3))) {
            // line 4
            yield "            <table class=\"py-4 mt-3 table table-responsive table-bordered table-striped\" style=\"width:600px;\">
                <thead class=\"bg-primary\">
                    <th class=\"text-center\">Date participation</th>
                </thead>
            ";
            // line 8
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 8, $this->source); })()), "getPorteOuvertes", [], "any", false, false, false, 8));
            foreach ($context['_seq'] as $context["_key"] => $context["porte"]) {
                // line 9
                yield "                <tr>
                    <td>";
                // line 10
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["porte"], "getDate", [], "any", false, false, false, 10), "d/m/Y"), "html", null, true);
                yield "</td>
                </tr>
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['porte'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 13
            yield "            </table>
        ";
        }
        // line 15
        yield "
        <div class=\"form-group d-flex justify-content-center mt-4\">
            <div class=\"form-actions-row\">
                <button  class=\"btn btn-danger btn-close-popup\"  data-dxpopup-id=\"popup-equipement-po-";
        // line 18
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 18, $this->source); })()), "id", [], "any", false, false, false, 18), "html", null, true);
        yield "\" type=\"button\" >Fermer</button>
            </div>
        </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_porte_ouvertes.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  83 => 18,  78 => 15,  74 => 13,  65 => 10,  62 => 9,  58 => 8,  52 => 4,  50 => 3,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div id=\"popup-equipement-po-{{ client.id }}\" style=\"display:none;\" >
    <div class=\"px-4 pb-4 d-flex justify-content-center align-items-center flex-column\" style=\"max-height: 900px;overflow-y: auto;overflow-x: hidden;\" >
        {% if client.getPorteOuvertes is not empty %}
            <table class=\"py-4 mt-3 table table-responsive table-bordered table-striped\" style=\"width:600px;\">
                <thead class=\"bg-primary\">
                    <th class=\"text-center\">Date participation</th>
                </thead>
            {% for porte in client.getPorteOuvertes %}
                <tr>
                    <td>{{ porte.getDate|date(\"d/m/Y\") }}</td>
                </tr>
            {% endfor %}
            </table>
        {% endif %}

        <div class=\"form-group d-flex justify-content-center mt-4\">
            <div class=\"form-actions-row\">
                <button  class=\"btn btn-danger btn-close-popup\"  data-dxpopup-id=\"popup-equipement-po-{{ client.id }}\" type=\"button\" >Fermer</button>
            </div>
        </div>
    </div>
</div>", "clients/contrat/_popup_porte_ouvertes.html.twig", "/builds/dev/refonte_sav/templates/clients/contrat/_popup_porte_ouvertes.html.twig");
    }
}
