<?php

/* @dashnex/license.twig */
class __TwigTemplate_897382c99674a7dcb58e14f42f0c6a5d25a177acef339891e58f45e449d4a111 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<div class=\"dashnex-container\">
<table class=\"table table-bordered dashnex-table\">
      <thead>
        <tr class=\"dashnex-black\">
          <th>
          \t<div class=\"dashnex-mainHeading\">DashNex Licenses</div>
          </th>
        </tr>
      </thead>
      <tbody>
      ";
        // line 11
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["plugins"]) ? $context["plugins"] : null));
        $context['_iterated'] = false;
        foreach ($context['_seq'] as $context["id"] => $context["details"]) {
            // line 12
            echo "\t\t<tr>
\t\t\t<td>
\t          \t<h4><img src=\"";
            // line 14
            if ($this->getAttribute((isset($context["details"]) ? $context["details"] : null), "logo", array(), "any", true, true)) {
                echo twig_escape_filter($this->env, $this->env->getExtension('asset_extension')->assetFunction($this->getAttribute($this->getAttribute((isset($context["details"]) ? $context["details"] : null), "logo"), "namespace"), $this->getAttribute($this->getAttribute((isset($context["details"]) ? $context["details"] : null), "logo"), "path")), "html", null, true);
            } else {
                echo twig_escape_filter($this->env, $this->env->getExtension('asset_extension')->assetFunction("dashnex", "img/default.png"), "html", null, true);
            }
            echo "\" class=\"dashnex-productIcon\" height=\"30\" width=\"30\">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["details"]) ? $context["details"] : null), "name"), "html", null, true);
            echo "
\t          \t";
            // line 15
            if ($this->getAttribute((isset($context["details"]) ? $context["details"] : null), "valid")) {
                // line 16
                echo "\t\t\t\t\t<span class=\"label label-success\">Valid</span>
\t\t\t\t";
            } else {
                // line 18
                echo "\t\t\t\t\t<span class=\"label label-danger\">Invalid</span>
\t\t\t\t";
            }
            // line 19
            echo "</h4>
\t          \t<p>";
            // line 20
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["details"]) ? $context["details"] : null), "description"), "html", null, true);
            echo "</p>
\t          \t";
            // line 21
            if ((!$this->getAttribute((isset($context["details"]) ? $context["details"] : null), "valid"))) {
                // line 22
                echo "\t\t\t\t\t<button class=\"btn btn-info license\" data-code=\"";
                echo twig_escape_filter($this->env, (isset($context["id"]) ? $context["id"] : null), "html", null, true);
                echo "\">License</button>
\t\t\t\t\t<img src=\"";
                // line 23
                echo twig_escape_filter($this->env, $this->env->getExtension('asset_extension')->assetFunction("dashnex", "img/small_loading.gif"), "html", null, true);
                echo "\" data-code=\"";
                echo twig_escape_filter($this->env, (isset($context["id"]) ? $context["id"] : null), "html", null, true);
                echo "\" class=\"hide\" />
\t\t\t\t";
            }
            // line 25
            echo "          \t</td>
\t\t</tr>
\t\t";
            // line 27
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["details"]) ? $context["details"] : null), "upgrades"));
            foreach ($context['_seq'] as $context["id"] => $context["upgrade_details"]) {
                // line 28
                echo "\t\t\t<tr class=\"dashnex-rowInner\">
\t\t\t\t<td>
\t\t          \t<h4>";
                // line 30
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["upgrade_details"]) ? $context["upgrade_details"] : null), "name"), "html", null, true);
                echo "
\t\t          \t";
                // line 31
                if ($this->getAttribute((isset($context["upgrade_details"]) ? $context["upgrade_details"] : null), "valid")) {
                    // line 32
                    echo "\t\t\t\t\t\t<span class=\"label label-success\">Valid</span>
\t\t\t\t\t";
                } else {
                    // line 34
                    echo "\t\t\t\t\t\t<span class=\"label label-danger\">Invalid</span>
\t\t\t\t\t";
                }
                // line 35
                echo "</h4>
\t\t          \t<p>";
                // line 36
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["upgrade_details"]) ? $context["upgrade_details"] : null), "description"), "html", null, true);
                echo "</p>
\t\t          \t";
                // line 37
                if ((!$this->getAttribute((isset($context["upgrade_details"]) ? $context["upgrade_details"] : null), "valid"))) {
                    // line 38
                    echo "\t\t\t\t\t\t<button class=\"btn btn-info license\" data-code=\"";
                    echo twig_escape_filter($this->env, (isset($context["id"]) ? $context["id"] : null), "html", null, true);
                    echo "\">License</button>
\t\t\t\t\t\t<img src=\"";
                    // line 39
                    echo twig_escape_filter($this->env, $this->env->getExtension('asset_extension')->assetFunction("dashnex", "img/small_loading.gif"), "html", null, true);
                    echo "\" data-code=\"";
                    echo twig_escape_filter($this->env, (isset($context["id"]) ? $context["id"] : null), "html", null, true);
                    echo "\" class=\"hide\" />
\t\t\t\t\t";
                }
                // line 41
                echo "\t\t        </td>
\t\t\t</tr>
\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['id'], $context['upgrade_details'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 44
            echo "\t  ";
            $context['_iterated'] = true;
        }
        if (!$context['_iterated']) {
            // line 45
            echo "\t\t<tr>
\t\t\t<td>No DashNex plugins are installed/activated on your blog.  Install/Activate them via the Plugins screen then come back here.</td>
\t\t</tr>
\t  ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['id'], $context['details'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 49
        echo "      </tbody>
</table>
</div>
";
    }

    public function getTemplateName()
    {
        return "@dashnex/license.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  150 => 49,  141 => 45,  136 => 44,  128 => 41,  121 => 39,  116 => 38,  114 => 37,  110 => 36,  107 => 35,  103 => 34,  99 => 32,  97 => 31,  93 => 30,  89 => 28,  85 => 27,  81 => 25,  74 => 23,  69 => 22,  67 => 21,  63 => 20,  60 => 19,  56 => 18,  52 => 16,  50 => 15,  40 => 14,  36 => 12,  31 => 11,  19 => 1,);
    }
}
