<?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/report/product_viewed_info.twig */
class __TwigTemplate_798d2fb0deec9c0add83a83a5288db06 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\">
    <div class=\"pull-right\">
      <a href=\"";
        // line 4
        echo ($context["reset"] ?? null);
        echo "\" class=\"btn btn-danger btn-xs\"><i class=\"fa fa-refresh\"></i> ";
        echo ($context["button_reset"] ?? null);
        echo "</a>
    </div>
    <h3 class=\"panel-title\"><i class=\"fa fa-filter\"></i> ";
        // line 6
        echo ($context["heading_title"] ?? null);
        echo "</h3>
  </div>
  <div class=\"panel-body\">
    <div class=\"table-responsive\">
      <table class=\"table table-bordered\">
        <thead>
          <tr>
            <td class=\"text-left\">";
        // line 13
        echo ($context["column_name"] ?? null);
        echo "</td>
            <td class=\"text-left\">";
        // line 14
        echo ($context["column_model"] ?? null);
        echo "</td>
            <td class=\"text-right\">";
        // line 15
        echo ($context["column_viewed"] ?? null);
        echo "</td>
            <td class=\"text-right\">";
        // line 16
        echo ($context["column_percent"] ?? null);
        echo "</td>
          </tr>
        </thead>
        <tbody>
        
        ";
        // line 21
        if (($context["products"] ?? null)) {
            // line 22
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["products"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
                // line 23
                echo "        <tr>
          <td class=\"text-left\">";
                // line 24
                echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 24);
                echo "</td>
          <td class=\"text-left\">";
                // line 25
                echo twig_get_attribute($this->env, $this->source, $context["product"], "model", [], "any", false, false, false, 25);
                echo "</td>
          <td class=\"text-right\">";
                // line 26
                echo twig_get_attribute($this->env, $this->source, $context["product"], "viewed", [], "any", false, false, false, 26);
                echo "</td>
          <td class=\"text-right\">";
                // line 27
                echo twig_get_attribute($this->env, $this->source, $context["product"], "percent", [], "any", false, false, false, 27);
                echo "</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 30
            echo "        ";
        } else {
            // line 31
            echo "        <tr>
          <td class=\"text-center\" colspan=\"4\">";
            // line 32
            echo ($context["text_no_results"] ?? null);
            echo "</td>
        </tr>
        ";
        }
        // line 35
        echo "        </tbody>
        
      </table>
    </div>
    <div class=\"row\">
      <div class=\"col-sm-6 text-left\">";
        // line 40
        echo ($context["pagination"] ?? null);
        echo "</div>
      <div class=\"col-sm-6 text-right\">";
        // line 41
        echo ($context["results"] ?? null);
        echo "</div>
    </div>
  </div>
</div>";
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  133 => 41,  129 => 40,  122 => 35,  116 => 32,  113 => 31,  110 => 30,  101 => 27,  97 => 26,  93 => 25,  89 => 24,  86 => 23,  81 => 22,  79 => 21,  71 => 16,  67 => 15,  63 => 14,  59 => 13,  49 => 6,  42 => 4,  37 => 1,);
    }

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