<?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;

/* @LightSamlSp/sessions.html.twig */
class __TwigTemplate_517b095c60c70302c678d2d47990fe04e99aed8cb1d687c487999c2b0781400b 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", "@LightSamlSp/sessions.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@LightSamlSp/sessions.html.twig"));

        // line 1
        yield "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
        \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">
<head>
    <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
</head>
<body>

<h1>SAML Sessions</h1>
";
        // line 10
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["sessions"]) || array_key_exists("sessions", $context) ? $context["sessions"] : (function () { throw new RuntimeError('Variable "sessions" does not exist.', 10, $this->source); })()));
        $context['_iterated'] = false;
        foreach ($context['_seq'] as $context["_key"] => $context["session"]) {
            // line 11
            yield "    <ul data-session>
        <li data-idp=\"";
            // line 12
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["session"], "idpEntityId", [], "any", false, false, false, 12), "html", null, true);
            yield "\">IDP: ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["session"], "idpEntityId", [], "any", false, false, false, 12), "html", null, true);
            yield "</li>
        <li data-sp=\"";
            // line 13
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["session"], "spEntityId", [], "any", false, false, false, 13), "html", null, true);
            yield "\">SP: ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["session"], "spEntityId", [], "any", false, false, false, 13), "html", null, true);
            yield "</li>
        <li>NameID: ";
            // line 14
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["session"], "nameId", [], "any", false, false, false, 14), "html", null, true);
            yield "</li>
        <li>NameIDFormat: ";
            // line 15
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["session"], "nameIdFormat", [], "any", false, false, false, 15), "html", null, true);
            yield "</li>
        <li>SessionIndex: ";
            // line 16
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["session"], "sessionIndex", [], "any", false, false, false, 16), "html", null, true);
            yield "</li>
        <li>AuthnInstant: ";
            // line 17
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["session"], "sessionInstant", [], "any", false, false, false, 17), "Y-m-d H:i:s P"), "html", null, true);
            yield "</li>
        <li>FirstAuthOn: ";
            // line 18
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["session"], "firstAuthOn", [], "any", false, false, false, 18), "Y-m-d H:i:s P"), "html", null, true);
            yield "</li>
        <li>LastAuthOn: ";
            // line 19
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["session"], "lastAuthOn", [], "any", false, false, false, 19), "Y-m-d H:i:s P"), "html", null, true);
            yield "</li>
    </ul>
";
            $context['_iterated'] = true;
        }
        if (!$context['_iterated']) {
            // line 22
            yield "    <p>There are no SAML sessions established</p>
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['session'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 24
        yield "</body>
</html>
";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@LightSamlSp/sessions.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  110 => 24,  103 => 22,  95 => 19,  91 => 18,  87 => 17,  83 => 16,  79 => 15,  75 => 14,  69 => 13,  63 => 12,  60 => 11,  55 => 10,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
        \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">
<head>
    <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
</head>
<body>

<h1>SAML Sessions</h1>
{% for session in sessions %}
    <ul data-session>
        <li data-idp=\"{{ session.idpEntityId }}\">IDP: {{ session.idpEntityId }}</li>
        <li data-sp=\"{{ session.spEntityId }}\">SP: {{ session.spEntityId }}</li>
        <li>NameID: {{ session.nameId }}</li>
        <li>NameIDFormat: {{ session.nameIdFormat }}</li>
        <li>SessionIndex: {{ session.sessionIndex }}</li>
        <li>AuthnInstant: {{ session.sessionInstant|date('Y-m-d H:i:s P') }}</li>
        <li>FirstAuthOn: {{ session.firstAuthOn|date('Y-m-d H:i:s P') }}</li>
        <li>LastAuthOn: {{ session.lastAuthOn|date('Y-m-d H:i:s P') }}</li>
    </ul>
{% else %}
    <p>There are no SAML sessions established</p>
{% endfor %}
</body>
</html>
", "@LightSamlSp/sessions.html.twig", "/builds/dev/refonte_sav/vendor/lightsaml2/sp-bundle/src/LightSaml/SpBundle/Resources/views/sessions.html.twig");
    }
}
