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

/* @Mcp/resources.html.twig */
class __TwigTemplate_0a11bd0dd13af6944d20a11e9ad31db9 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
        if ((($tmp = Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "resources", [], "any", false, false, false, 1))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 2
            yield "    <div class=\"sf-tabs\">
        ";
            // line 3
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["collector"] ?? null), "resources", [], "any", false, false, false, 3));
            foreach ($context['_seq'] as $context["_key"] => $context["resource"]) {
                // line 4
                yield "            <div class=\"tab\">
                <h3 class=\"tab-title\">";
                // line 5
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "name", [], "any", false, false, false, 5), "html", null, true);
                yield "</h3>
                <div class=\"tab-content\">
                    <table>
                        <tbody>
                            <tr>
                                <th>URI</th>
                                <td><code>";
                // line 11
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "uri", [], "any", false, false, false, 11), "html", null, true);
                yield "</code></td>
                            </tr>
                            ";
                // line 13
                if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "description", [], "any", false, false, false, 13)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                    // line 14
                    yield "                                <tr>
                                    <th>Description</th>
                                    <td>";
                    // line 16
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "description", [], "any", false, false, false, 16), "html", null, true);
                    yield "</td>
                                </tr>
                            ";
                }
                // line 19
                yield "                            ";
                if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "mimeType", [], "any", false, false, false, 19)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                    // line 20
                    yield "                                <tr>
                                    <th>MIME Type</th>
                                    <td><code>";
                    // line 22
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["resource"], "mimeType", [], "any", false, false, false, 22), "html", null, true);
                    yield "</code></td>
                                </tr>
                            ";
                }
                // line 25
                yield "                        </tbody>
                    </table>
                </div>
            </div>
        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['resource'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 30
            yield "    </div>
";
        } else {
            // line 32
            yield "    <div class=\"empty\">
        <p>No resources were registered.</p>
    </div>
";
        }
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@Mcp/resources.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  107 => 32,  103 => 30,  93 => 25,  87 => 22,  83 => 20,  80 => 19,  74 => 16,  70 => 14,  68 => 13,  63 => 11,  54 => 5,  51 => 4,  47 => 3,  44 => 2,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@Mcp/resources.html.twig", "/var/www/fulfillment/api/vendor/symfony/mcp-bundle/templates/resources.html.twig");
    }
}
