<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
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;
/* @Storefront/storefront/page/product-detail/review/review.html.twig */
class __TwigTemplate_66b0b83333c5856f43fb3abf51b82656 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'utilities_offcanvas_content' => [$this, 'block_utilities_offcanvas_content'],
'page_product_detail_review_container' => [$this, 'block_page_product_detail_review_container'],
'page_product_detail_review_tab_pane' => [$this, 'block_page_product_detail_review_tab_pane'],
'page_product_detail_review_aside' => [$this, 'block_page_product_detail_review_aside'],
'page_product_detail_review_widget_container' => [$this, 'block_page_product_detail_review_widget_container'],
'page_product_detail_review_main' => [$this, 'block_page_product_detail_review_main'],
'page_product_detail_review_alert' => [$this, 'block_page_product_detail_review_alert'],
'page_product_detail_review_form_container' => [$this, 'block_page_product_detail_review_form_container'],
'page_product_detail_review_list_container' => [$this, 'block_page_product_detail_review_list_container'],
'page_product_detail_review_list' => [$this, 'block_page_product_detail_review_list'],
'page_product_detail_review_list_actions' => [$this, 'block_page_product_detail_review_list_actions'],
'page_product_detail_review_list_action_language' => [$this, 'block_page_product_detail_review_list_action_language'],
'page_product_detail_review_list_action_language_csrf' => [$this, 'block_page_product_detail_review_list_action_language_csrf'],
'page_product_detail_review_list_action_sortby' => [$this, 'block_page_product_detail_review_list_action_sortby'],
'page_product_detail_review_list_action_sortby_form' => [$this, 'block_page_product_detail_review_list_action_sortby_form'],
'page_product_detail_review_list_action_sortby_form_csrf' => [$this, 'block_page_product_detail_review_list_action_sortby_form_csrf'],
'page_product_detail_review_list_action_sortby_label' => [$this, 'block_page_product_detail_review_list_action_sortby_label'],
'page_product_detail_review_list_action_sortby_select' => [$this, 'block_page_product_detail_review_list_action_sortby_select'],
'page_product_detail_review_list_content' => [$this, 'block_page_product_detail_review_list_content'],
'page_product_detail_review_list_paging' => [$this, 'block_page_product_detail_review_list_paging'],
'page_product_detail_review_list_paging_form' => [$this, 'block_page_product_detail_review_list_paging_form'],
'page_product_detail_review_list_paging_csrf' => [$this, 'block_page_product_detail_review_list_paging_csrf'],
'page_product_detail_review_list_empty' => [$this, 'block_page_product_detail_review_list_empty'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/utilities/offcanvas.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Storefront/storefront/page/product-detail/review/review.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Storefront/storefront/page/product-detail/review/review.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/utilities/offcanvas.html.twig", "@Storefront/storefront/page/product-detail/review/review.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_utilities_offcanvas_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "utilities_offcanvas_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "utilities_offcanvas_content"));
// line 4
echo "\t";
$this->displayBlock('page_product_detail_review_container', $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function block_page_product_detail_review_container($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_container"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_container"));
// line 5
echo "
\t\t";
// line 7
echo "\t\t";
$context["reviewsPerListPage"] = 10;
// line 8
echo "
\t\t";
// line 10
echo "\t\t";
$context["currentListPage"] = 1;
// line 11
echo "
";
// line 12
$context["productReviewCount"] = sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "totalReviews", [], "any", false, false, false, 12);
// line 13
echo "
\t\t";
// line 14
if ((($context["productReviewCount"] ?? null) > 0)) {
// line 15
echo " ";
$context["productAvgRating"] = twig_round(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "matrix", [], "any", false, false, false, 15), "averageRating", [], "any", false, false, false, 15), 2, "common");
// line 16
echo "\t\t";
}
// line 17
echo "
\t\t";
// line 19
echo "\t\t";
$context["foreignReviewsCount"] = 150;
// line 20
echo "
\t\t<div class=\"product-detail-review tab-pane-container\">
\t\t\t";
// line 22
$this->displayBlock('page_product_detail_review_tab_pane', $context, $blocks);
// line 277
echo "\t\t</div>
\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 22
public function block_page_product_detail_review_tab_pane($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_tab_pane"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_tab_pane"));
// line 23
echo " <div class=\"row product-detail-review-content js-review-container\">
\t\t\t\t\t";
// line 24
$this->displayBlock('page_product_detail_review_aside', $context, $blocks);
// line 31
echo "
\t\t\t\t\t";
// line 32
$this->displayBlock('page_product_detail_review_main', $context, $blocks);
// line 275
echo "\t\t\t\t</div>
\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 24
public function block_page_product_detail_review_aside($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_aside"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_aside"));
// line 25
echo "\t\t\t\t\t\t<div class=\"col-sm-4\">
\t\t\t\t\t\t\t";
// line 26
$this->displayBlock('page_product_detail_review_widget_container', $context, $blocks);
// line 29
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 26
public function block_page_product_detail_review_widget_container($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_widget_container"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_widget_container"));
// line 27
echo "\t\t\t\t\t\t\t\t";
$this->loadTemplate("@Storefront/storefront/page/product-detail/review/review-widget.html.twig", "@Storefront/storefront/page/product-detail/review/review.html.twig", 27)->display($context);
// line 28
echo "\t\t\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 32
public function block_page_product_detail_review_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_main"));
// line 33
echo "\t\t\t\t\t\t<div class=\"col product-detail-review-main js-review-content\">
\t\t\t\t\t\t\t";
// line 34
$this->displayBlock('page_product_detail_review_alert', $context, $blocks);
// line 52
echo "
\t\t\t\t\t\t\t";
// line 53
$this->displayBlock('page_product_detail_review_form_container', $context, $blocks);
// line 67
echo "
\t\t\t\t\t\t\t";
// line 68
$this->displayBlock('page_product_detail_review_list_container', $context, $blocks);
// line 273
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 34
public function block_page_product_detail_review_alert($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_alert"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_alert"));
// line 35
echo "\t\t\t\t\t\t\t\t";
if ((($context["ratingSuccess"] ?? null) == 1)) {
// line 36
echo "\t\t\t\t\t\t\t\t\t";
$this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig", "@Storefront/storefront/page/product-detail/review/review.html.twig", 36)->display(twig_array_merge($context, ["type" => "success", "content" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewFormSuccessAlert"))]));
// line 40
echo " ";
} elseif ((($context["ratingSuccess"] ?? null) == 2)) {
// line 41
echo " ";
$this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig", "@Storefront/storefront/page/product-detail/review/review.html.twig", 41)->display(twig_array_merge($context, ["type" => "success", "content" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewFormSuccessUpdateAlert"))]));
// line 45
echo "\t\t\t\t\t\t\t\t";
} elseif ((($context["ratingSuccess"] ?? null) == -1)) {
// line 46
echo "\t\t\t\t\t\t\t\t\t";
$this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig", "@Storefront/storefront/page/product-detail/review/review.html.twig", 46)->display(twig_array_merge($context, ["type" => "danger", "content" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewFormErrorAlert"))]));
// line 50
echo "\t\t\t\t\t\t\t\t";
}
// line 51
echo "\t\t\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 53
public function block_page_product_detail_review_form_container($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_form_container"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_form_container"));
// line 54
echo "\t\t\t\t\t\t\t\t<div class=\"collapse multi-collapse";
if ((($context["ratingSuccess"] ?? null) == -1)) {
echo " show";
}
echo "\"
\t\t\t\t\t\t\t\t\t id=\"review-form\">
\t\t\t\t\t\t\t\t\t";
// line 56
if ((sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "customer", [], "any", false, false, false, 56) && !sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "customer", [], "any", false, false, false, 56), "guest", [], "any", false, false, false, 56))) {
// line 57
echo "\t\t\t\t\t\t\t\t\t\t<div class=\"product-detail-review-form\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 58
$this->loadTemplate("@Storefront/storefront/page/product-detail/review/review-form.html.twig", "@Storefront/storefront/page/product-detail/review/review.html.twig", 58)->display($context);
// line 59
echo "\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
} else {
// line 61
echo "\t\t\t\t\t\t\t\t\t\t<div class=\"product-detail-review-login\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 62
$this->loadTemplate("@Storefront/storefront/page/product-detail/review/review-login.html.twig", "@Storefront/storefront/page/product-detail/review/review.html.twig", 62)->display($context);
// line 63
echo "\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
}
// line 65
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 68
public function block_page_product_detail_review_list_container($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_container"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_container"));
// line 69
echo "\t\t\t\t\t\t\t\t<div id=\"review-list\"
\t\t\t\t\t\t\t\t\t class=\"collapse multi-collapse product-detail-review-list";
// line 70
if ((($context["ratingSuccess"] ?? null) != -1)) {
echo " show";
}
echo "\">
";
// line 72
$this->displayBlock('page_product_detail_review_list', $context, $blocks);
// line 262
echo "
";
// line 263
if ((($context["productReviewCount"] ?? null) <= 0)) {
// line 264
echo " ";
$this->displayBlock('page_product_detail_review_list_empty', $context, $blocks);
// line 270
echo " ";
}
// line 271
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 72
public function block_page_product_detail_review_list($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list"));
// line 73
echo " ";
$this->displayBlock('page_product_detail_review_list_actions', $context, $blocks);
// line 201
echo "
";
// line 202
$this->displayBlock('page_product_detail_review_list_content', $context, $blocks);
// line 209
echo "
";
// line 210
$this->displayBlock('page_product_detail_review_list_paging', $context, $blocks);
// line 261
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 73
public function block_page_product_detail_review_list_actions($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_actions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_actions"));
// line 74
echo " <div class=\"row align-items-center product-detail-review-actions\">
";
// line 75
$context["formAjaxSubmitOptions"] = ["replaceSelectors" => [0 => ".js-review-container"], "submitOnChange" => true];
// line 79
echo "
";
// line 80
$this->displayBlock('page_product_detail_review_list_action_language', $context, $blocks);
// line 119
echo "
";
// line 120
$this->displayBlock('page_product_detail_review_list_action_sortby', $context, $blocks);
// line 182
echo " </div>
<hr/>
";
// line 187
echo " ";
$context["listReviewsCount"] = (($context["productReviewCount"] ?? null) - ($context["foreignReviewsCount"] ?? null));
// line 188
echo " ";
// line 189
echo " ";
if ((($context["listReviewsCount"] ?? null) < 0)) {
// line 190
echo " ";
$context["listReviewsCount"] = 0;
// line 191
echo " ";
}
// line 192
echo "
<p class=\"text-right product-detail-review-counter\">
";
// line 194
if (((($context["listReviewsCount"] ?? null) > 1) && (($context["listReviewsCount"] ?? null) > ($context["reviewsPerListPage"] ?? null)))) {
// line 195
echo " <small><strong>";
echo sw_escape_filter($this->env, ($context["currentListPage"] ?? null), "html", null, true);
echo "</strong> - <strong>";
echo sw_escape_filter($this->env, ($context["reviewsPerListPage"] ?? null), "html", null, true);
echo "</strong> ";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewCountBefore"));
echo " <strong>";
echo sw_escape_filter($this->env, ($context["listReviewsCount"] ?? null), "html", null, true);
echo "</strong> ";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewCountAfter", ["%count%" => ($context["listReviewsCount"] ?? null)]));
echo "</small>
";
} elseif (( // line 196
($context["listReviewsCount"] ?? null) > 0)) {
echo " ";
// line 197
echo " <small><strong>";
echo sw_escape_filter($this->env, ($context["listReviewsCount"] ?? null), "html", null, true);
echo "</strong> ";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewCountAfter", ["%count%" => ($context["listReviewsCount"] ?? null)]));
echo "</small>
";
}
// line 199
echo " </p>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 80
public function block_page_product_detail_review_list_action_language($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_language"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_language"));
// line 81
echo " <div class=\"col product-detail-review-language\">
";
// line 82
if ((($context["foreignReviewsCount"] ?? null) > 0)) {
// line 83
echo " <form class=\"product-detail-review-language-form\"
action=\"";
// line 84
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.product.reviews", ["productId" => sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "productId", [], "any", false, false, false, 84), "parentId" => sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "parentId", [], "any", false, false, false, 84)]), "html", null, true);
echo "\"
method=\"post\"
data-form-ajax-submit=\"true\"
data-form-ajax-submit-options='";
// line 87
echo sw_escape_filter($this->env, $this->env->getFilter('json_encode')->getCallable()(($context["formAjaxSubmitOptions"] ?? null)), "html", null, true);
echo "'>
";
// line 90
echo " ";
$this->displayBlock('page_product_detail_review_list_action_language_csrf', $context, $blocks);
// line 93
echo "
";
// line 94
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 94), "get", [0 => "limit"], "method", false, false, false, 94)) {
// line 95
echo " <input type=\"hidden\" name=\"limit\" value=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 95), "get", [0 => "limit"], "method", false, false, false, 95), "html", null, true);
echo "\">
";
}
// line 97
echo "
";
// line 98
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 98), "get", [0 => "sort"], "method", false, false, false, 98)) {
// line 99
echo " <input type=\"hidden\" name=\"sort\" value=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 99), "get", [0 => "sort"], "method", false, false, false, 99), "html", null, true);
echo "\">
";
}
// line 101
echo "
<div class=\"";
// line 102
echo sw_escape_filter($this->env, ($context["formSwitchWrapperClass"] ?? null), "html", null, true);
echo "\">
";
// line 104
echo " <input type=\"checkbox\"
class=\"";
// line 105
echo sw_escape_filter($this->env, ($context["formCheckInputClass"] ?? null), "html", null, true);
echo "\"
id=\"showForeignReviews\"
value=\"filter-language\"
name=\"language\"
";
// line 109
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 109), "get", [0 => "language"], "method", false, false, false, 109)) {
echo "checked=\"checked\"";
}
echo ">
<label class=\"custom-control-label form-label\"
for=\"showForeignReviews\">
<small>";
// line 112
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewLanguageFilterLabel"));
echo "</small>
</label>
</div>
</form>
";
}
// line 117
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 90
public function block_page_product_detail_review_list_action_language_csrf($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_language_csrf"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_language_csrf"));
// line 91
echo " ";
echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.product.reviews");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 120
public function block_page_product_detail_review_list_action_sortby($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_sortby"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_sortby"));
// line 121
echo " ";
if ((($context["productReviewCount"] ?? null) > 0)) {
// line 122
echo " <div class=\"col-12 col-md-auto product-detail-review-sortby\">
";
// line 123
$context["formAjaxSubmitOptions"] = ["replaceSelectors" => [0 => ".js-review-info", 1 => ".js-review-teaser", 2 => ".js-review-content"], "submitOnChange" => true];
// line 131
echo "
";
// line 132
$this->displayBlock('page_product_detail_review_list_action_sortby_form', $context, $blocks);
// line 179
echo " </div>
";
}
// line 181
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 132
public function block_page_product_detail_review_list_action_sortby_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_sortby_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_sortby_form"));
// line 133
echo " <form class=\"form-inline product-detail-review-sortby-form\"
action=\"";
// line 134
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.product.reviews", ["productId" => sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "productId", [], "any", false, false, false, 134), "parentId" => sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "parentId", [], "any", false, false, false, 134)]), "html", null, true);
echo "\"
method=\"post\"
data-form-ajax-submit=\"true\"
data-form-ajax-submit-options='";
// line 137
echo sw_escape_filter($this->env, $this->env->getFilter('json_encode')->getCallable()(($context["formAjaxSubmitOptions"] ?? null)), "html", null, true);
echo "'>
";
// line 140
echo " ";
$this->displayBlock('page_product_detail_review_list_action_sortby_form_csrf', $context, $blocks);
// line 143
echo "
";
// line 144
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 144), "get", [0 => "limit"], "method", false, false, false, 144)) {
// line 145
echo " <input type=\"hidden\" name=\"limit\" value=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 145), "get", [0 => "limit"], "method", false, false, false, 145), "html", null, true);
echo "\">
";
}
// line 147
echo "
";
// line 148
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 148), "get", [0 => "language"], "method", false, false, false, 148)) {
// line 149
echo " <input type=\"hidden\" name=\"language\" value=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 149), "get", [0 => "language"], "method", false, false, false, 149), "html", null, true);
echo "\">
";
}
// line 151
echo "
";
// line 152
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 152), "get", [0 => "points"], "method", false, false, false, 152)) {
// line 153
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 153), "get", [0 => "points"], "method", false, false, false, 153));
foreach ($context['_seq'] as $context["_key"] => $context["points"]) {
// line 154
echo " <input type=\"hidden\" name=\"points[]\" value=\"";
echo sw_escape_filter($this->env, $context["points"], "html", null, true);
echo "\">
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['points'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 156
echo " ";
}
// line 157
echo "
";
// line 158
$this->displayBlock('page_product_detail_review_list_action_sortby_label', $context, $blocks);
// line 164
echo "
";
// line 165
$this->displayBlock('page_product_detail_review_list_action_sortby_select', $context, $blocks);
// line 177
echo " </form>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 140
public function block_page_product_detail_review_list_action_sortby_form_csrf($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_sortby_form_csrf"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_sortby_form_csrf"));
// line 141
echo " ";
echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.product.reviews");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 158
public function block_page_product_detail_review_list_action_sortby_label($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_sortby_label"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_sortby_label"));
// line 159
echo " <label class=\"form-label product-detail-review-sortby-label\"
for=\"reviewsSortby\">
<small>";
// line 161
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewSortLabel"));
echo "</small>
</label>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 165
public function block_page_product_detail_review_list_action_sortby_select($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_sortby_select"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_action_sortby_select"));
// line 166
echo " <select class=\"";
echo sw_escape_filter($this->env, ($context["formSelectClass"] ?? null), "html", null, true);
echo " ";
echo sw_escape_filter($this->env, ($context["formSelectClass"] ?? null), "html", null, true);
echo "-sm\"
name=\"sort\"
id=\"reviewsSortby\">
<option value=\"createdAt\"";
// line 169
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "criteria", [], "any", false, false, false, 169), "sorting", [], "any", false, false, false, 169), 0, [], "any", false, false, false, 169), "field", [], "any", false, false, false, 169) == "createdAt")) {
echo " selected";
}
echo ">
";
// line 170
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewSortNewLabel"));
echo "
</option>
<option value=\"points\"";
// line 172
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "criteria", [], "any", false, false, false, 172), "sorting", [], "any", false, false, false, 172), 0, [], "any", false, false, false, 172), "field", [], "any", false, false, false, 172) == "points")) {
echo " selected";
}
echo ">
";
// line 173
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewSortTopRatedLabel"));
echo "
</option>
</select>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 202
public function block_page_product_detail_review_list_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_content"));
// line 203
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["reviews"] ?? null));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["review"]) {
// line 204
echo " <div class=\"product-detail-review-list-content\">
";
// line 205
$this->loadTemplate("@Storefront/storefront/page/product-detail/review/review-item.html.twig", "@Storefront/storefront/page/product-detail/review/review.html.twig", 205)->display($context);
// line 206
echo " </div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['review'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 208
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 210
public function block_page_product_detail_review_list_paging($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_paging"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_paging"));
// line 211
echo " ";
$context["criteria"] = sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "criteria", [], "any", false, false, false, 211);
// line 212
echo " ";
$context["totalPages"] = twig_round((($context["productReviewCount"] ?? null) / sw_get_attribute($this->env, $this->source, ($context["criteria"] ?? null), "limit", [], "any", false, false, false, 212)), 0, "ceil");
// line 213
echo "
";
// line 214
if ((($context["totalPages"] ?? null) > 1)) {
// line 215
echo " ";
$context["formAjaxSubmitOptions"] = ["replaceSelectors" => ".js-review-container", "submitOnChange" => true];
// line 219
echo "
";
// line 220
$this->displayBlock('page_product_detail_review_list_paging_form', $context, $blocks);
// line 259
echo " ";
}
// line 260
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 220
public function block_page_product_detail_review_list_paging_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_paging_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_paging_form"));
// line 221
echo " <div class=\"product-detail-review-pagination\">
<form class=\"product-detail-review-pagination-form\"
action=\"";
// line 223
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.product.reviews", ["productId" => sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "productId", [], "any", false, false, false, 223), "parentId" => sw_get_attribute($this->env, $this->source, ($context["reviews"] ?? null), "parentId", [], "any", false, false, false, 223)]), "html", null, true);
echo "\"
method=\"post\"
data-form-ajax-submit=\"true\"
data-form-ajax-submit-options='";
// line 226
echo sw_escape_filter($this->env, $this->env->getFilter('json_encode')->getCallable()(($context["formAjaxSubmitOptions"] ?? null)), "html", null, true);
echo "'>
";
// line 229
echo " ";
$this->displayBlock('page_product_detail_review_list_paging_csrf', $context, $blocks);
// line 232
echo "
";
// line 233
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 233), "get", [0 => "limit"], "method", false, false, false, 233)) {
// line 234
echo " <input type=\"hidden\" name=\"limit\" value=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 234), "get", [0 => "limit"], "method", false, false, false, 234), "html", null, true);
echo "\">
";
}
// line 236
echo "
";
// line 237
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 237), "get", [0 => "language"], "method", false, false, false, 237)) {
// line 238
echo " <input type=\"hidden\" name=\"language\" value=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 238), "get", [0 => "language"], "method", false, false, false, 238), "html", null, true);
echo "\">
";
}
// line 240
echo "
";
// line 241
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 241), "get", [0 => "sort"], "method", false, false, false, 241)) {
// line 242
echo " <input type=\"hidden\" name=\"sort\" value=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 242), "get", [0 => "sort"], "method", false, false, false, 242), "html", null, true);
echo "\">
";
}
// line 244
echo "
";
// line 245
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 245), "get", [0 => "points"], "method", false, false, false, 245)) {
// line 246
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 246), "get", [0 => "points"], "method", false, false, false, 246));
foreach ($context['_seq'] as $context["_key"] => $context["points"]) {
// line 247
echo " <input type=\"hidden\" name=\"points[]\" value=\"";
echo sw_escape_filter($this->env, $context["points"], "html", null, true);
echo "\">
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['points'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 249
echo " ";
}
// line 250
echo "
";
// line 251
$this->loadTemplate("@Storefront/storefront/component/pagination.html.twig", "@Storefront/storefront/page/product-detail/review/review.html.twig", 251)->display(twig_array_merge($context, ["entities" => // line 252
($context["reviews"] ?? null), "criteria" => // line 253
($context["criteria"] ?? null), "total" => // line 254
($context["productReviewCount"] ?? null)]));
// line 256
echo " </form>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 229
public function block_page_product_detail_review_list_paging_csrf($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_paging_csrf"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_paging_csrf"));
// line 230
echo " ";
echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.product.reviews");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 264
public function block_page_product_detail_review_list_empty($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_empty"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_review_list_empty"));
// line 265
echo " ";
$this->loadTemplate("@Storefront/storefront/utilities/alert.html.twig", "@Storefront/storefront/page/product-detail/review/review.html.twig", 265)->display(twig_array_merge($context, ["type" => "info", "content" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("detail.reviewListEmpty"))]));
// line 269
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Storefront/storefront/page/product-detail/review/review.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1119 => 269, 1116 => 265, 1106 => 264, 1093 => 230, 1083 => 229, 1071 => 256, 1069 => 254, 1068 => 253, 1067 => 252, 1066 => 251, 1063 => 250, 1060 => 249, 1051 => 247, 1046 => 246, 1044 => 245, 1041 => 244, 1035 => 242, 1033 => 241, 1030 => 240, 1024 => 238, 1022 => 237, 1019 => 236, 1013 => 234, 1011 => 233, 1008 => 232, 1005 => 229, 1000 => 226, 994 => 223, 990 => 221, 980 => 220, 970 => 260, 967 => 259, 965 => 220, 962 => 219, 959 => 215, 957 => 214, 954 => 213, 951 => 212, 948 => 211, 938 => 210, 928 => 208, 913 => 206, 911 => 205, 908 => 204, 890 => 203, 880 => 202, 866 => 173, 860 => 172, 855 => 170, 849 => 169, 840 => 166, 830 => 165, 817 => 161, 813 => 159, 803 => 158, 790 => 141, 780 => 140, 769 => 177, 767 => 165, 764 => 164, 762 => 158, 759 => 157, 756 => 156, 747 => 154, 742 => 153, 740 => 152, 737 => 151, 731 => 149, 729 => 148, 726 => 147, 720 => 145, 718 => 144, 715 => 143, 712 => 140, 707 => 137, 701 => 134, 698 => 133, 688 => 132, 678 => 181, 674 => 179, 672 => 132, 669 => 131, 667 => 123, 664 => 122, 661 => 121, 651 => 120, 638 => 91, 628 => 90, 617 => 117, 609 => 112, 601 => 109, 594 => 105, 591 => 104, 587 => 102, 584 => 101, 578 => 99, 576 => 98, 573 => 97, 567 => 95, 565 => 94, 562 => 93, 559 => 90, 554 => 87, 548 => 84, 545 => 83, 543 => 82, 540 => 81, 530 => 80, 519 => 199, 511 => 197, 508 => 196, 495 => 195, 493 => 194, 489 => 192, 486 => 191, 483 => 190, 480 => 189, 478 => 188, 475 => 187, 469 => 182, 467 => 120, 464 => 119, 462 => 80, 459 => 79, 457 => 75, 454 => 74, 444 => 73, 434 => 261, 432 => 210, 429 => 209, 427 => 202, 424 => 201, 421 => 73, 411 => 72, 400 => 271, 397 => 270, 394 => 264, 392 => 263, 389 => 262, 387 => 72, 380 => 70, 377 => 69, 367 => 68, 356 => 65, 352 => 63, 350 => 62, 347 => 61, 343 => 59, 341 => 58, 338 => 57, 336 => 56, 328 => 54, 318 => 53, 308 => 51, 305 => 50, 302 => 46, 299 => 45, 296 => 41, 293 => 40, 290 => 36, 287 => 35, 277 => 34, 266 => 273, 264 => 68, 261 => 67, 259 => 53, 256 => 52, 254 => 34, 251 => 33, 241 => 32, 231 => 28, 228 => 27, 218 => 26, 207 => 29, 205 => 26, 202 => 25, 192 => 24, 181 => 275, 179 => 32, 176 => 31, 174 => 24, 171 => 23, 161 => 22, 150 => 277, 148 => 22, 144 => 20, 141 => 19, 138 => 17, 135 => 16, 132 => 15, 130 => 14, 127 => 13, 125 => 12, 122 => 11, 119 => 10, 116 => 8, 113 => 7, 110 => 5, 90 => 4, 80 => 3, 57 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
{% block utilities_offcanvas_content %}
\t{% block page_product_detail_review_container %}
\t\t{# TODO NEXT-16993 - replace items per list config value #}
\t\t{% set reviewsPerListPage = 10 %}
\t\t{# TODO NEXT-16994 - replace current list page value #}
\t\t{% set currentListPage = 1 %}
{% set productReviewCount = reviews.totalReviews %}
\t\t{% if productReviewCount > 0 %}
{% set productAvgRating = reviews.matrix.averageRating|round(2, 'common') %}
\t\t{% endif %}
\t\t{# TODO NEXT-16994 - replace language flag #}
\t\t{% set foreignReviewsCount = 150 %}
\t\t<div class=\"product-detail-review tab-pane-container\">
\t\t\t{% block page_product_detail_review_tab_pane %}
<div class=\"row product-detail-review-content js-review-container\">
\t\t\t\t\t{% block page_product_detail_review_aside %}
\t\t\t\t\t\t<div class=\"col-sm-4\">
\t\t\t\t\t\t\t{% block page_product_detail_review_widget_container %}
\t\t\t\t\t\t\t\t{% sw_include '@Storefront/storefront/page/product-detail/review/review-widget.html.twig' %}
\t\t\t\t\t\t\t{% endblock %}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endblock %}
\t\t\t\t\t{% block page_product_detail_review_main %}
\t\t\t\t\t\t<div class=\"col product-detail-review-main js-review-content\">
\t\t\t\t\t\t\t{% block page_product_detail_review_alert %}
\t\t\t\t\t\t\t\t{% if ratingSuccess == 1 %}
\t\t\t\t\t\t\t\t\t{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
\t\t\t\t\t\t\t\t\t\ttype: \"success\",
\t\t\t\t\t\t\t\t\t\tcontent: \"detail.reviewFormSuccessAlert\"|trans|sw_sanitize
\t\t\t\t\t\t\t\t\t} %}
{% elseif ratingSuccess == 2 %}
{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
type: \"success\",
content: \"detail.reviewFormSuccessUpdateAlert\"|trans|sw_sanitize
} %}
\t\t\t\t\t\t\t\t{% elseif ratingSuccess == -1 %}
\t\t\t\t\t\t\t\t\t{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
\t\t\t\t\t\t\t\t\t\ttype: \"danger\",
\t\t\t\t\t\t\t\t\t\tcontent: \"detail.reviewFormErrorAlert\"|trans|sw_sanitize
\t\t\t\t\t\t\t\t\t} %}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{% endblock %}
\t\t\t\t\t\t\t{% block page_product_detail_review_form_container %}
\t\t\t\t\t\t\t\t<div class=\"collapse multi-collapse{% if ratingSuccess == -1 %} show{% endif %}\"
\t\t\t\t\t\t\t\t\t id=\"review-form\">
\t\t\t\t\t\t\t\t\t{% if context.customer and not context.customer.guest %}
\t\t\t\t\t\t\t\t\t\t<div class=\"product-detail-review-form\">
\t\t\t\t\t\t\t\t\t\t\t{% sw_include '@Storefront/storefront/page/product-detail/review/review-form.html.twig' %}
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t<div class=\"product-detail-review-login\">
\t\t\t\t\t\t\t\t\t\t\t{% sw_include '@Storefront/storefront/page/product-detail/review/review-login.html.twig' %}
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% endblock %}
\t\t\t\t\t\t\t{% block page_product_detail_review_list_container %}
\t\t\t\t\t\t\t\t<div id=\"review-list\"
\t\t\t\t\t\t\t\t\t class=\"collapse multi-collapse product-detail-review-list{% if ratingSuccess != -1 %} show{% endif %}\">
{% block page_product_detail_review_list %}
{% block page_product_detail_review_list_actions %}
<div class=\"row align-items-center product-detail-review-actions\">
{% set formAjaxSubmitOptions = {
replaceSelectors: [\".js-review-container\"],
submitOnChange: true
} %}
{% block page_product_detail_review_list_action_language %}
<div class=\"col product-detail-review-language\">
{% if foreignReviewsCount > 0 %}
<form class=\"product-detail-review-language-form\"
action=\"{{ path('frontend.product.reviews', { productId: reviews.productId, parentId: reviews.parentId }) }}\"
method=\"post\"
data-form-ajax-submit=\"true\"
data-form-ajax-submit-options='{{ formAjaxSubmitOptions|json_encode }}'>
{# @deprecated tag:v6.5.0 - Block page_product_detail_review_list_action_language_csrf will be removed. #}
{% block page_product_detail_review_list_action_language_csrf %}
{{ sw_csrf('frontend.product.reviews') }}
{% endblock %}
{% if app.request.get('limit') %}
<input type=\"hidden\" name=\"limit\" value=\"{{ app.request.get('limit') }}\">
{% endif %}
{% if app.request.get('sort') %}
<input type=\"hidden\" name=\"sort\" value=\"{{ app.request.get('sort') }}\">
{% endif %}
<div class=\"{{ formSwitchWrapperClass }}\">
{# TODO NEXT-16994 - set checked and disabled state #}
<input type=\"checkbox\"
class=\"{{ formCheckInputClass }}\"
id=\"showForeignReviews\"
value=\"filter-language\"
name=\"language\"
{% if app.request.get('language') %}checked=\"checked\"{% endif %}>
<label class=\"custom-control-label form-label\"
for=\"showForeignReviews\">
<small>{{ \"detail.reviewLanguageFilterLabel\"|trans|sw_sanitize }}</small>
</label>
</div>
</form>
{% endif %}
</div>
{% endblock %}
{% block page_product_detail_review_list_action_sortby %}
{% if productReviewCount > 0 %}
<div class=\"col-12 col-md-auto product-detail-review-sortby\">
{% set formAjaxSubmitOptions = {
replaceSelectors: [
\".js-review-info\",
\".js-review-teaser\",
\".js-review-content\"
],
submitOnChange: true
} %}
{% block page_product_detail_review_list_action_sortby_form %}
<form class=\"form-inline product-detail-review-sortby-form\"
action=\"{{ path('frontend.product.reviews', { productId: reviews.productId, parentId: reviews.parentId }) }}\"
method=\"post\"
data-form-ajax-submit=\"true\"
data-form-ajax-submit-options='{{ formAjaxSubmitOptions|json_encode }}'>
{# @deprecated tag:v6.5.0 - Block page_product_detail_review_list_action_sortby_form_csrf will be removed. #}
{% block page_product_detail_review_list_action_sortby_form_csrf %}
{{ sw_csrf('frontend.product.reviews') }}
{% endblock %}
{% if app.request.get('limit') %}
<input type=\"hidden\" name=\"limit\" value=\"{{ app.request.get('limit') }}\">
{% endif %}
{% if app.request.get('language') %}
<input type=\"hidden\" name=\"language\" value=\"{{ app.request.get('language') }}\">
{% endif %}
{% if app.request.get('points') %}
{% for points in app.request.get('points') %}
<input type=\"hidden\" name=\"points[]\" value=\"{{ points }}\">
{% endfor %}
{% endif %}
{% block page_product_detail_review_list_action_sortby_label %}
<label class=\"form-label product-detail-review-sortby-label\"
for=\"reviewsSortby\">
<small>{{ \"detail.reviewSortLabel\"|trans|sw_sanitize }}</small>
</label>
{% endblock %}
{% block page_product_detail_review_list_action_sortby_select %}
<select class=\"{{ formSelectClass }} {{ formSelectClass }}-sm\"
name=\"sort\"
id=\"reviewsSortby\">
<option value=\"createdAt\"{% if reviews.criteria.sorting.0.field == 'createdAt' %} selected{% endif %}>
{{ \"detail.reviewSortNewLabel\"|trans|sw_sanitize }}
</option>
<option value=\"points\"{% if reviews.criteria.sorting.0.field== 'points' %} selected{% endif %}>
{{ \"detail.reviewSortTopRatedLabel\"|trans|sw_sanitize }}
</option>
</select>
{% endblock %}
</form>
{% endblock %}
</div>
{% endif %}
{% endblock %}
</div>
<hr/>
{# TODO NEXT-16994 - calculate reviews in current language in list #}
{% set listReviewsCount = productReviewCount - foreignReviewsCount %}
{# TODO NEXT-16994 - fix if reviews in foreign language are more than in customer language #}
{% if listReviewsCount < 0 %}
{% set listReviewsCount = 0 %}
{% endif %}
<p class=\"text-right product-detail-review-counter\">
{% if (listReviewsCount > 1 and listReviewsCount > reviewsPerListPage) %}
<small><strong>{{ currentListPage }}</strong> - <strong>{{ reviewsPerListPage }}</strong> {{ \"detail.reviewCountBefore\"|trans|sw_sanitize }} <strong>{{ listReviewsCount }}</strong> {{ \"detail.reviewCountAfter\"|trans({'%count%': listReviewsCount })|sw_sanitize }}</small>
{% elseif listReviewsCount > 0 %} {# TODO (NEXT-16994) fix detail.reviewCountAfter snippet for listReviewsCount = 0#}
<small><strong>{{ listReviewsCount }}</strong> {{ \"detail.reviewCountAfter\"|trans({'%count%': listReviewsCount })|sw_sanitize }}</small>
{% endif %}
</p>
{% endblock %}
{% block page_product_detail_review_list_content %}
{% for review in reviews %}
<div class=\"product-detail-review-list-content\">
{% sw_include '@Storefront/storefront/page/product-detail/review/review-item.html.twig' %}
</div>
{% endfor %}
{% endblock %}
{% block page_product_detail_review_list_paging %}
{% set criteria = reviews.criteria %}
{% set totalPages = (productReviewCount/criteria.limit)|round(0,'ceil') %}
{% if totalPages > 1 %}
{% set formAjaxSubmitOptions = {
replaceSelectors: \".js-review-container\",
submitOnChange: true
} %}
{% block page_product_detail_review_list_paging_form %}
<div class=\"product-detail-review-pagination\">
<form class=\"product-detail-review-pagination-form\"
action=\"{{ path('frontend.product.reviews', { productId: reviews.productId, parentId: reviews.parentId }) }}\"
method=\"post\"
data-form-ajax-submit=\"true\"
data-form-ajax-submit-options='{{ formAjaxSubmitOptions|json_encode }}'>
{# @deprecated tag:v6.5.0 - Block page_product_detail_review_list_paging_csrf will be removed. #}
{% block page_product_detail_review_list_paging_csrf %}
{{ sw_csrf('frontend.product.reviews') }}
{% endblock %}
{% if app.request.get('limit') %}
<input type=\"hidden\" name=\"limit\" value=\"{{ app.request.get('limit') }}\">
{% endif %}
{% if app.request.get('language') %}
<input type=\"hidden\" name=\"language\" value=\"{{ app.request.get('language') }}\">
{% endif %}
{% if app.request.get('sort') %}
<input type=\"hidden\" name=\"sort\" value=\"{{ app.request.get('sort') }}\">
{% endif %}
{% if app.request.get('points') %}
{% for points in app.request.get('points') %}
<input type=\"hidden\" name=\"points[]\" value=\"{{ points }}\">
{% endfor %}
{% endif %}
{% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
entities: reviews,
criteria: criteria,
total: productReviewCount,
} %}
</form>
</div>
{% endblock %}
{% endif %}
{% endblock %}
{% endblock %}
{% if productReviewCount <= 0 %}
{% block page_product_detail_review_list_empty %}
{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
type: \"info\",
content: \"detail.reviewListEmpty\"|trans|sw_sanitize
} %}
{% endblock %}
{% endif %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% endblock %}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endblock %}
\t\t\t\t</div>
\t\t\t{% endblock %}
\t\t</div>
\t{% endblock %}
{% endblock %}
", "@Storefront/storefront/page/product-detail/review/review.html.twig", "/var/www/shopware6/vendor/shopware/storefront/Resources/views/storefront/page/product-detail/review/review.html.twig");
}
}