<div class="reviews-list">
   {foreach $product_reviews.reviews as $review}
      <div class="review-item {if $review@iteration >= 3}hidden{/if}">
         <div class="review-header">
            <strong class="name">{$review.user_name|default:$review.name|default:"{t}Anonymní{/t}"}</strong>
            {if $review.date}<span class="date">{$review.date|date_format:"%e.%-m.%Y"}</span>{/if}
         </div>
         {if $review.rating}
            <div class="review-stars">
               {for $i=1 to 5}
                  <span class="fc icons_star {if $i > $review.rating|round}empty{else}full{/if}"></span>
               {/for}
            </div>
         {/if}
         <p class="review-verified">
            {if $review.verified}
               <i class="fc icons_check-circle"></i>
               {t}Recenze nakupujícího{/t}
            {else}
               {t}Recenze návštěvníka{/t}
            {/if}
            {$review.source}
         </p>
         <p class="review-report">
            <a href="" data-wpj-focus="{path('kupshop_content_contactform_sendform', ['type'=>'report-inappropriate-content', 'report_type'=>'reviews', 'content_id'=>{$review.id}])}" data-wpj-focus-ajax="1">
               {t}Nahlásit{/t}
            </a>
         </p>
         <div class="review-text">
            {if $review.summary}<p class="summary">{$review.summary}</p>{/if}
            {if $review.pros or $review.cons}
               <div class="d-flex">
                  {if $review.pros}<p class="pros"><strong>{t}Klady{/t}</strong>{$review.pros}</p>{/if}
                  {if $review.cons}<p class="cons"><strong>{t}Zápory{/t}</strong>{$review.cons}</p>{/if}
               </div>
            {/if}

            {ifmodule PRODUCTS_COLLECTIONS}
            {if $review.id_product != $body.product.id}
               <p class="review-collection-product">{t}Původně vloženo k{/t} <a
                          href="{url s=product IDproduct=$review.id_product TITLE=$review.product_title}"
                          title="{t}Zobrazit produkt{/t}">{$review.product_title}</a></p>
            {/if}
            {/ifmodule}
         </div>
      </div>
   {/foreach}
</div>
