<?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/review.twig */
class __TwigTemplate_e153572f236053b7ea9eb3ad9c4b427c 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["reviews"] ?? null)) {
            // line 8
            echo "      <div class=\"table-responsive\">
        <table class=\"table table-bordered table-hover\">
          <thead>
            <tr>
              <th>";
            // line 12
            echo ($context["column_product"] ?? null);
            echo "</th>
              <th>";
            // line 13
            echo ($context["column_author"] ?? null);
            echo "</th>
              <th>";
            // line 14
            echo ($context["column_rating"] ?? null);
            echo "</th>
              <th>";
            // line 15
            echo ($context["column_status"] ?? null);
            echo "</th>
              <th>";
            // line 16
            echo ($context["column_date_added"] ?? null);
            echo "</th>
            </tr>
          </thead>
          <tbody>
            ";
            // line 20
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["reviews"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["review"]) {
                // line 21
                echo "              <tr>
                <td>";
                // line 22
                echo twig_get_attribute($this->env, $this->source, $context["review"], "product", [], "any", false, false, false, 22);
                echo "</td>
                <td>";
                // line 23
                echo twig_get_attribute($this->env, $this->source, $context["review"], "author", [], "any", false, false, false, 23);
                echo "</td>
                <td>";
                // line 24
                echo twig_get_attribute($this->env, $this->source, $context["review"], "rating", [], "any", false, false, false, 24);
                echo "</td>
                <td>";
                // line 25
                echo twig_get_attribute($this->env, $this->source, $context["review"], "status", [], "any", false, false, false, 25);
                echo "</td>
                <td>";
                // line 26
                echo twig_get_attribute($this->env, $this->source, $context["review"], "date_added", [], "any", false, false, false, 26);
                echo "</td>
              </tr>
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['review'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 29
            echo "          </tbody>
        </table>
      </div>
    ";
        } else {
            // line 33
            echo "      <p>";
            echo ($context["text_no_results"] ?? null);
            echo "</p>
    ";
        }
        // line 35
        echo "  </div>
  <div class=\"panel-footer text-right\">
    <a href=\"";
        // line 37
        echo ($context["review_link"] ?? null);
        echo "\" class=\"btn btn-primary\">
      <i class=\"fa fa-eye\"></i> ";
        // line 38
        echo ($context["button_view_all"] ?? null);
        echo "
    </a>
  </div>

</div>";
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  131 => 38,  127 => 37,  123 => 35,  117 => 33,  111 => 29,  102 => 26,  98 => 25,  94 => 24,  90 => 23,  86 => 22,  83 => 21,  79 => 20,  72 => 16,  68 => 15,  64 => 14,  60 => 13,  56 => 12,  50 => 8,  48 => 7,  41 => 3,  37 => 1,);
    }

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