<?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/customsInvoice/glsExportError.html.twig */
class __TwigTemplate_1bfb57fbdfbcffc31e025a8805250701 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 10px 0\">
    <mj-column>
        <mj-text>
            <span style=\"display:inline-block;padding:3px 10px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:11px;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;\">Failure</span>
            <span style=\"margin-left:8px;font-size:15px;font-weight:600;color:#111;\">GLS Customs export failed during ";
        // line 5
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "step", [], "any", false, false, false, 5), "html", null, true);
        yield "</span>
        </mj-text>
    </mj-column>
</mj-section>

<mj-section background-color=\"#ffffff\" full-width=\"full-width\" padding=\"6px 10px\">
    <mj-column>
        <mj-table cellpadding=\"0\" cellspacing=\"0\">
            <tr>
                <td style=\"padding:4px 0;width:140px;color:#666;font-size:12px;text-transform:uppercase;letter-spacing:0.04em;\">Invoice</td>
                <td style=\"padding:4px 0;font-size:14px;color:#111;\"><strong>";
        // line 15
        yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "invoiceNumber", [], "any", true, true, false, 15) &&  !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "invoiceNumber", [], "any", false, false, false, 15)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "invoiceNumber", [], "any", false, false, false, 15), "html", null, true)) : ("N/A"));
        yield "</strong></td>
            </tr>
        </mj-table>
    </mj-column>
</mj-section>

";
        // line 21
        if ((CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "errorTitle", [], "any", false, false, false, 21) || CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "errorStatus", [], "any", false, false, false, 21))) {
            // line 22
            yield "    <mj-section background-color=\"#fafafa\" full-width=\"full-width\" padding=\"6px 10px\" border-radius=\"6px\">
        <mj-column>
            <mj-text padding=\"6px 0\">
                <span style=\"font-size:11px;font-weight:600;color:#666;text-transform:uppercase;letter-spacing:0.06em;\">GLS response</span>
            </mj-text>
            <mj-table cellpadding=\"0\" cellspacing=\"0\">
                ";
            // line 28
            if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "errorStatus", [], "any", false, false, false, 28)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 29
                yield "                    <tr>
                        <td style=\"padding:6px 0;width:140px;color:#666;font-size:12px;text-transform:uppercase;letter-spacing:0.04em;\">HTTP status</td>
                        <td style=\"padding:6px 0;\"><span style=\"display:inline-block;padding:2px 8px;border-radius:4px;background:#fef3c7;color:#92400e;font-family:\x27JetBrains Mono\x27,Menlo,Consolas,monospace;font-size:12px;font-weight:600;\">";
                // line 31
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "errorStatus", [], "any", false, false, false, 31), "html", null, true);
                yield "</span></td>
                    </tr>
                ";
            }
            // line 34
            yield "                ";
            if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "errorTitle", [], "any", false, false, false, 34)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 35
                yield "                    <tr>
                        <td style=\"padding:6px 0;color:#666;font-size:12px;text-transform:uppercase;letter-spacing:0.04em;\">Title</td>
                        <td style=\"padding:6px 0;font-size:14px;color:#111;\"><strong>";
                // line 37
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "errorTitle", [], "any", false, false, false, 37), "html", null, true);
                yield "</strong></td>
                    </tr>
                ";
            }
            // line 40
            yield "            </mj-table>
        </mj-column>
    </mj-section>
";
        }
        // line 44
        yield "
";
        // line 45
        if ((($tmp =  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "errorItems", [], "any", false, false, false, 45))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 46
            yield "    <mj-section background-color=\"#ffffff\" full-width=\"full-width\" padding=\"10px\">
        <mj-column>
            <mj-text padding=\"0 0 6px\">
                <span style=\"font-size:11px;font-weight:600;color:#666;text-transform:uppercase;letter-spacing:0.06em;\">Details</span>
            </mj-text>
            <mj-table cellpadding=\"0\" cellspacing=\"0\">
                ";
            // line 52
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "errorItems", [], "any", false, false, false, 52));
            foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
                // line 53
                yield "                    <tr style=\"border-top:1px solid #eee;\">
                        <td style=\"padding:8px 12px 8px 0;width:200px;color:#444;font-size:13px;vertical-align:top;font-weight:500;\">";
                // line 54
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 54), "html", null, true);
                yield "</td>
                        <td style=\"padding:8px 0;font-family:\x27JetBrains Mono\x27,Menlo,Consolas,monospace;font-size:12px;color:#111;vertical-align:top;word-break:break-word;\">";
                // line 55
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "value", [], "any", false, false, false, 55), "html", null, true);
                yield "</td>
                    </tr>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 58
            yield "            </mj-table>
        </mj-column>
    </mj-section>
";
        }
        // line 62
        yield "
<mj-section background-color=\"#ffffff\" full-width=\"full-width\" padding=\"6px 10px 10px\">
    <mj-column>
        <mj-text padding=\"0 0 6px\">
            <span style=\"font-size:11px;font-weight:600;color:#666;text-transform:uppercase;letter-spacing:0.06em;\">Raw exception</span>
        </mj-text>
        <mj-text>
            <pre style=\"margin:0;padding:10px 12px;background:#f6f8fa;border:1px solid #e5e7eb;border-radius:6px;font-family:\x27JetBrains Mono\x27,Menlo,Consolas,monospace;font-size:12px;color:#374151;white-space:pre-wrap;word-wrap:break-word;line-height:1.5;\">";
        // line 69
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["options"] ?? null), "exceptionMessage", [], "any", false, false, false, 69), "html", null, true);
        yield "</pre>
        </mj-text>
    </mj-column>
</mj-section>
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  159 => 69,  150 => 62,  144 => 58,  135 => 55,  131 => 54,  128 => 53,  124 => 52,  116 => 46,  114 => 45,  111 => 44,  105 => 40,  99 => 37,  95 => 35,  92 => 34,  86 => 31,  82 => 29,  80 => 28,  72 => 22,  70 => 21,  61 => 15,  48 => 5,  42 => 1,);
    }

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