<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* launch/blocks/deepLinkingItem.html.twig */
class __TwigTemplate_b1eb430d141c847b5de2a7e35ec30890d9a9bf59890b6b187f4ba1aee283d410 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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "launch/blocks/deepLinkingItem.html.twig"));

        // line 1
        echo "<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-link\"></i>&nbsp;Returned content item(s)
    </div>
    <div class=\"card-body\">
            ";
        // line 6
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["resources"]) || array_key_exists("resources", $context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.', 6, $this->source); })()));
        $context['_iterated'] = false;
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["resourceIdentifier"] => $context["resource"]) {
            // line 7
            echo "                ";
            if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 7)) {
                // line 8
                echo "                <div class=\"card-deck\">
                ";
            }
            // line 10
            echo "                    <div class=\"card content-item\">
                        <div class=\"card-header\">";
            // line 11
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resource"], "title", [], "any", false, false, false, 11), "html", null, true);
            echo "</div>
                        <div class=\"card-body\">
                            <small>
                                <dl class=\"list-unstyled\">
                                    ";
            // line 15
            if (twig_get_attribute($this->env, $this->source, $context["resource"], "url", [], "any", true, true, false, 15)) {
                // line 16
                echo "                                        <dt>Url</dt>
                                        <dd><a href=\"";
                // line 17
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resource"], "url", [], "any", false, false, false, 17), "html", null, true);
                echo "\" target=\"_blank\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resource"], "url", [], "any", false, false, false, 17), "html", null, true);
                echo "</a></dd>
                                    ";
            }
            // line 19
            echo "                                    ";
            if (twig_get_attribute($this->env, $this->source, $context["resource"], "html", [], "any", true, true, false, 19)) {
                // line 20
                echo "                                        <dt>HTML</dt>
                                        <dd><kbd>";
                // line 21
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resource"], "html", [], "any", false, false, false, 21), "html", null, true);
                echo "</kbd></dd>
                                    ";
            }
            // line 23
            echo "                                    <dt>Description</dt>
                                    <dd>";
            // line 24
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resource"], "text", [], "any", false, false, false, 24), "html", null, true);
            echo "</dd>
                                    ";
            // line 25
            if (twig_get_attribute($this->env, $this->source, $context["resource"], "icon", [], "any", true, true, false, 25)) {
                // line 26
                echo "                                        <dt>Icon</dt>
                                        <dd><img height=\"20px\" width=\"20px\" src=\"";
                // line 27
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["resource"], "icon", [], "any", false, false, false, 27), "url", [], "any", false, false, false, 27), "html", null, true);
                echo "\"/></dd>
                                    ";
            }
            // line 29
            echo "                                </dl>
                            </small>
                        </div>
                        <div class=\"card-footer\">
                            <small class=\"text-muted\">Type: <code>";
            // line 33
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resource"], "type", [], "any", false, false, false, 33), "html", null, true);
            echo "</code></small>
                        </div>
                    </div>
                ";
            // line 36
            if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 36)) {
                // line 37
                echo "                </div>
                ";
            }
            // line 39
            echo "            ";
            $context['_iterated'] = true;
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        if (!$context['_iterated']) {
            // line 40
            echo "                <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
                    <i class=\"fas fa-ban\"></i>&nbsp;No content items returned
                </div>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['resourceIdentifier'], $context['resource'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 44
        echo "    </div>
</div>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "launch/blocks/deepLinkingItem.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  162 => 44,  153 => 40,  140 => 39,  136 => 37,  134 => 36,  128 => 33,  122 => 29,  117 => 27,  114 => 26,  112 => 25,  108 => 24,  105 => 23,  100 => 21,  97 => 20,  94 => 19,  87 => 17,  84 => 16,  82 => 15,  75 => 11,  72 => 10,  68 => 8,  65 => 7,  47 => 6,  40 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-link\"></i>&nbsp;Returned content item(s)
    </div>
    <div class=\"card-body\">
            {% for resourceIdentifier, resource in resources %}
                {% if loop.first %}
                <div class=\"card-deck\">
                {% endif %}
                    <div class=\"card content-item\">
                        <div class=\"card-header\">{{ resource.title }}</div>
                        <div class=\"card-body\">
                            <small>
                                <dl class=\"list-unstyled\">
                                    {% if resource.url is defined %}
                                        <dt>Url</dt>
                                        <dd><a href=\"{{ resource.url }}\" target=\"_blank\">{{ resource.url }}</a></dd>
                                    {% endif %}
                                    {% if resource.html is defined %}
                                        <dt>HTML</dt>
                                        <dd><kbd>{{ resource.html }}</kbd></dd>
                                    {% endif %}
                                    <dt>Description</dt>
                                    <dd>{{ resource.text }}</dd>
                                    {% if resource.icon is defined %}
                                        <dt>Icon</dt>
                                        <dd><img height=\"20px\" width=\"20px\" src=\"{{ resource.icon.url }}\"/></dd>
                                    {% endif %}
                                </dl>
                            </small>
                        </div>
                        <div class=\"card-footer\">
                            <small class=\"text-muted\">Type: <code>{{ resource.type }}</code></small>
                        </div>
                    </div>
                {% if loop.last %}
                </div>
                {% endif %}
            {% else %}
                <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
                    <i class=\"fas fa-ban\"></i>&nbsp;No content items returned
                </div>
            {% endfor %}
    </div>
</div>
", "launch/blocks/deepLinkingItem.html.twig", "C:\\wamp64\\www\\devkit-lti1p3-master-tool\\templates\\launch\\blocks\\deepLinkingItem.html.twig");
    }
}
