<?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/informations_technique/_popup_history_equipement_local.html.twig */
class __TwigTemplate_ad8c316a8a7e248d9ced4dd7f4ae1cba5577872e1fc90408dfba57d724e0b473 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/informations_technique/_popup_history_equipement_local.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/informations_technique/_popup_history_equipement_local.html.twig"));

        // line 1
        yield "<div id=\"popup-history-equipement-local\" style=\"display:none\" >
    ";
        // line 2
        $context["historiqueEquipementLocal"] = Twig\Extension\CoreExtension::sort($this->env, 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); })()), "getHistoriqueEquipementLocals", [], "any", false, false, false, 2), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (((1 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 2, $this->source); })()), "dateHeure", [], "any", false, false, false, 2), CoreExtension::getAttribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 2, $this->source); })()), "dateHeure", [], "any", false, false, false, 2)))) ? ( -1) : (1)); });
        // line 3
        yield "    <table class=\"table table-striped table-bordered\">
        <thead>
            <th>Date changement</th>
            <th>Local</th>
            <th>Modifié par</th>
        </thead>
        <tbody>
            ";
        // line 10
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["historiqueEquipementLocal"]) || array_key_exists("historiqueEquipementLocal", $context) ? $context["historiqueEquipementLocal"] : (function () { throw new RuntimeError('Variable "historiqueEquipementLocal" does not exist.', 10, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["historique"]) {
            // line 11
            yield "               <tr>
                    <td>";
            // line 12
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["historique"], "dateHeure", [], "any", false, false, false, 12), "d/m/Y h:m"), "html", null, true);
            yield "</td>
                    <td>";
            // line 13
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["historique"], "EquipementLocal", [], "any", false, false, false, 13), "libelle", [], "any", false, false, false, 13), "html", null, true);
            yield "</td>
                    <td>";
            // line 14
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["historique"], "UtilisateurModif", [], "any", false, false, false, 14), "getNomComplet", [], "any", false, false, false, 14), "html", null, true);
            yield "</td>
                </tr>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['historique'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 17
        yield "            <tr></tr>
        </tbody>
    </table>

</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  82 => 17,  73 => 14,  69 => 13,  65 => 12,  62 => 11,  58 => 10,  49 => 3,  47 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div id=\"popup-history-equipement-local\" style=\"display:none\" >
    {% set historiqueEquipementLocal = equipement.getHistoriqueEquipementLocals | sort((a, b) => a.dateHeure > b.dateHeure ? -1 : 1) %}
    <table class=\"table table-striped table-bordered\">
        <thead>
            <th>Date changement</th>
            <th>Local</th>
            <th>Modifié par</th>
        </thead>
        <tbody>
            {% for historique in historiqueEquipementLocal %}
               <tr>
                    <td>{{ historique.dateHeure|date('d/m/Y h:m') }}</td>
                    <td>{{ historique.EquipementLocal.libelle }}</td>
                    <td>{{ historique.UtilisateurModif.getNomComplet }}</td>
                </tr>
            {% endfor %}
            <tr></tr>
        </tbody>
    </table>

</div>", "clients/informations_technique/_popup_history_equipement_local.html.twig", "/builds/dev/refonte_sav/templates/clients/informations_technique/_popup_history_equipement_local.html.twig");
    }
}
