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

/* extension/dashboard/top_view.twig */
class __TwigTemplate_4f0f5265b9a8dad918566a1af9a2a5b2 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;
        // line 1
        echo "<div class=\"panel panel-default\">
  <div class=\"panel-heading\">
    <h3 class=\"panel-title\"><i class=\"fa fa-comments\"></i> ";
        // line 3
        echo ($context["heading_title"] ?? null);
        echo "</h3>
  </div>
  
  <div class=\"panel-body\">
    ";
        // line 7
        if (($context["products"] ?? null)) {
            // line 8
            echo "      <div class=\"table-responsive\">
        <table class=\"table table-bordered table-hover\">
          <thead>
            <tr>
              <th>";
            // line 12
            echo ($context["column_image"] ?? null);
            echo "</th>
              <th>";
            // line 13
            echo ($context["column_name"] ?? null);
            echo "</th>
              <th>";
            // line 14
            echo ($context["column_views"] ?? null);
            echo "</th>
              <th>";
            // line 15
            echo ($context["column_status"] ?? null);
            echo "</th>
            </tr>
          </thead>
          <tbody>
            ";
            // line 19
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["products"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
                // line 20
                echo "              <tr>
                <td class=\"text-center\" style=\"width: 50px;\">
                  <img src=\"";
                // line 22
                echo twig_get_attribute($this->env, $this->source, $context["product"], "image", [], "any", false, false, false, 22);
                echo "\" alt=\"";
                echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 22);
                echo "\" class=\"img-thumbnail\" />
                </td>
                <td>";
                // line 24
                echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 24);
                echo "</td>
                <td>";
                // line 25
                echo twig_get_attribute($this->env, $this->source, $context["product"], "viewed", [], "any", false, false, false, 25);
                echo "</td>
                <td>
                  <span class=\"badge ";
                // line 27
                echo (((twig_get_attribute($this->env, $this->source, $context["product"], "stock_status", [], "any", false, false, false, 27) == "In Stock")) ? ("bg-success") : ("bg-warning"));
                echo "\">
                    ";
                // line 28
                echo twig_get_attribute($this->env, $this->source, $context["product"], "stock_status", [], "any", false, false, false, 28);
                echo "
                  </span>
                </td>
              </tr>
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 33
            echo "          </tbody>
        </table>
      </div>
    ";
        } else {
            // line 37
            echo "      <p>";
            echo ($context["text_no_results"] ?? null);
            echo "</p>
    ";
        }
        // line 39
        echo "  </div>
</div>";
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "extension/dashboard/top_view.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  126 => 39,  120 => 37,  114 => 33,  103 => 28,  99 => 27,  94 => 25,  90 => 24,  83 => 22,  79 => 20,  75 => 19,  68 => 15,  64 => 14,  60 => 13,  56 => 12,  50 => 8,  48 => 7,  41 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "extension/dashboard/top_view.twig", "");
    }
}
