{% include 'Item/customer_message.twig' %}
{% if reviewAdd.count is defined %}
{% if reviewAdd.count > 0 %}
{% set count = 0 %}
<br>
<div id="wrap" class="clear">
<div id="voice" class="voice-box">
<div id="voices"></div>
<div class="title">
<h2>この商品を買ったお客様のレビュー(評価)</h2>
<p class="star">
<img alt="お客様からの口コミレビュー評価の星の数{{ reviewAdd.average }}" src="https://img0.land-mark.biz/ut_img/public_images/review/star_m{{ reviewAdd.star }}.gif">
<span>{{ reviewAdd.average }}</span>
<span>({{ reviewAdd.count | number_format }}件)</span>
</p>
</div>
<ul>
{% set break = false %}
{% for v in review if not break %}
{% if count >= 8 %}
{% set break = true %}
{% endif %}
<li>
<dl>
<dt>評価:
{% for i in range(0, 4) %}
{% if i < v.cr_points %}
★
{% else %}
☆
{% endif %}
{% endfor %}
<span> 投稿日: {{ v.app_datetime }}</span>
</dt>
<dd>
<p class="staff-comment">
{% if v.cr_staff_comment is defined and v.cr_staff_comment != '' %}
{{ v.cr_staff_comment | nl2br }}
{% else %}
{{ v.cr_comment | nl2br}}
{% endif %}
</p>
</dd>
{% if v.goods_name is defined and v.goods_name != '' %}
<dd>
<p class="txt">
{% if rv.cr_staff_comment is not empty %}
{{ rv.cr_staff_comment | nl2br }}
{% else %}
{{ (rv.cr_comment | trim(side='right')) | nl2br }}
{% endif %}
</p>
</dd>
</dl>
{% endif %}
</li>
{% endfor %}
</ul>
{% if reviewAdd.hasMoreReview < reviewAdd.count %}
<p class="more-link">
<a miseq="3" appno="707436" micd="54101" href="{{ url('review/index') }}?goods_id={{data.goods_id}}" target="_blank">
{% if breadCrumbCategoryName2 == '白衣' %}
{{ data.goods_name }}
{% else %}
{{ data.goods_name }}(品番:{{ goods.goodsMainKataban }})
{% endif %}
<span>すべてのレビュー(評価)はこちら({{reviewAdd.count}}件)</span>
</a>
</p>
{% endif %}
</div><!-- /#voice -->
</div><!-- /#wrap -->
{% endif %}
{% endif %}