{#
 * This file is part of the Recommend Product plugin
 *
 * Copyright (C) 2016 LOCKON CO.,LTD. All Rights Reserved.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
#}
{% set recommend_products = repository('Plugin\\Recommend4\\Entity\\RecommendProduct').getRecommendProduct %}

<!-- ▼recommend_product_list▼ -->
<div id="recommend_product_block">
<div class="container">
    <div class="row">
        <div class="col-12 col-md-3">
            <div class="ec-newItemRole__listItemHeading ec-secHeading--tandem">
                <span class="ec-secHeading__en">{{ 'PRODUCTS'|trans }}</span>
                <span class="ec-secHeading__line"></span>
                <span class="ec-secHeading__ja">{{ '商品一覧'|trans }}</span>
                <a class="white_btn" href="{{ url('product_list') }}">{{ 'more'|trans }}</a>
            </div>
        </div>

        <div class="col-12 col-md-9 row">
            {% for RecommendProduct in recommend_products %}
                <div class="recommend_product col-xs-6 col-sm-4 col-md-3">
                    <a href="{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}">
                        <img src="{{ asset(RecommendProduct.Product.mainFileName|no_image_product, "save_image") }}">
                        {#<p>{{ RecommendProduct.comment|raw|nl2br }}</p>#}
                        <dl>
                            <dt class="item_name text-center">{{ RecommendProduct.Product.name }}</dt>
                            {#<dd class="item_price">
                                {% if RecommendProduct.Product.hasProductClass %}
                                    {% if RecommendProduct.Product.getPrice02Min == RecommendProduct.Product.getPrice02Max %}
                                        {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
                                    {% else %}
                                        {{ RecommendProduct.Product.getPrice02IncTaxMin|price }} ～ {{ RecommendProduct.Product.getPrice02IncTaxMax|price }}
                                    {% endif %}
                                {% else %}
                                    {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
                                {% endif %}
                            </dd>#}
                        </dl>
                    </a>
                </div>
            {% endfor %}
        </div>
    </div>
</div>
</div>
<!-- ▲recommend_product_list▲ -->