<?php

/* mart/template/product/review.twig */
class __TwigTemplate_e5cf81de8b2ef0da3367d2f20c4b82a3c026f4dbe43ce4983429989e72602f68 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
        if ((isset($context["reviews"]) ? $context["reviews"] : null)) {
            // line 2
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["reviews"]) ? $context["reviews"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["review"]) {
                // line 3
                echo "<div class=\"review\">
  <div class=\"rating\">
  ";
                // line 5
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(range(1, 5));
                foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                    // line 6
                    echo "  ";
                    if (($this->getAttribute($context["review"], "rating", array()) < $context["i"])) {
                        // line 7
                        echo "    <span class=\"fa fa-stack\"><i class=\"fa fa-star-o fa-stack-2x\"></i></span>
  ";
                    } else {
                        // line 9
                        echo "    <span class=\"fa fa-stack\"><i class=\"fa fa-star fa-stack-2x\"></i><i class=\"fa fa-star-o fa-stack-2x\"></i></span>
  ";
                    }
                    // line 11
                    echo "  ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 12
                echo "  </div>
  <strong>";
                // line 13
                echo $this->getAttribute($context["review"], "author", array());
                echo "</strong>
  <div class=\"date\">";
                // line 14
                echo $this->getAttribute($context["review"], "date_added", array());
                echo "</div>
  <div class=\"clearfix\"></div>
  <div class=\"message\">";
                // line 16
                echo $this->getAttribute($context["review"], "text", array());
                echo "</div>
</div>
";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['review'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 19
            echo "<div class=\"text-right\">";
            echo (isset($context["pagination"]) ? $context["pagination"] : null);
            echo "</div>
";
        } else {
            // line 21
            echo "<p>";
            echo (isset($context["text_no_reviews"]) ? $context["text_no_reviews"] : null);
            echo "</p>
";
        }
    }

    public function getTemplateName()
    {
        return "mart/template/product/review.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  77 => 21,  71 => 19,  62 => 16,  57 => 14,  53 => 13,  50 => 12,  44 => 11,  40 => 9,  36 => 7,  33 => 6,  29 => 5,  25 => 3,  21 => 2,  19 => 1,);
    }
}
/* {% if reviews %}*/
/* {% for review in reviews %}*/
/* <div class="review">*/
/*   <div class="rating">*/
/*   {% for i in 1..5 %}*/
/*   {% if review.rating < i %}*/
/*     <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>*/
/*   {% else %}*/
/*     <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>*/
/*   {% endif %}*/
/*   {% endfor %}*/
/*   </div>*/
/*   <strong>{{ review.author }}</strong>*/
/*   <div class="date">{{ review.date_added }}</div>*/
/*   <div class="clearfix"></div>*/
/*   <div class="message">{{ review.text }}</div>*/
/* </div>*/
/* {% endfor %}*/
/* <div class="text-right">{{ pagination }}</div>*/
/* {% else %}*/
/* <p>{{ text_no_reviews }}</p>*/
/* {% endif %}*/
/* */
