<?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;
use Twig\TemplateWrapper;

/* Mail/mjml/content/alert/token_expiration_external.html.twig */
class __TwigTemplate_e9887c96444541b452696db8d485f2b3 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $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 = []): iterable
    {
        $macros = $this->macros;
        // line 1
        yield "<mj-section background-color=\"#ffffff\" full-width=\"full-width\" padding=\"10px\">
    <mj-column>
        <mj-text>
            <p>Hello,</p>
            <br/>
            <p>The following external API tokens will expire soon:</p>
        </mj-text>

        ";
        // line 9
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "externalApiUsersByExpiration", [], "any", false, false, false, 9));
        foreach ($context['_seq'] as $context["days"] => $context["apiUsers"]) {
            // line 10
            yield "            <mj-text>
                <strong>Expiring in ";
            // line 11
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["days"], "html", null, true);
            yield " day(s)</strong>
            </mj-text>

            <mj-text>
                <ul>
                    ";
            // line 16
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable($context["apiUsers"]);
            foreach ($context['_seq'] as $context["_key"] => $context["apiUser"]) {
                // line 17
                yield "                        <li>
                            ";
                // line 18
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["apiUser"], "name", [], "any", false, false, false, 18), "html", null, true);
                yield " — expires on ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["apiUser"], "apiToken", [], "any", false, false, false, 18), "expiresAt", [], "any", false, false, false, 18), "Y-m-d"), "html", null, true);
                yield "
                        </li>
                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['apiUser'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 21
            yield "                </ul>
            </mj-text>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['days'], $context['apiUsers'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 24
        yield "
        <mj-text>
            <br/>
            <p>Best regards,</p>
            <p>Vente-unique Logistics</p>
        </mj-text>
    </mj-column>
</mj-section>
";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "Mail/mjml/content/alert/token_expiration_external.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  93 => 24,  85 => 21,  74 => 18,  71 => 17,  67 => 16,  59 => 11,  56 => 10,  52 => 9,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "Mail/mjml/content/alert/token_expiration_external.html.twig", "/var/www/fulfillment/api/templates/Mail/mjml/content/alert/token_expiration_external.html.twig");
    }
}
