<div class="add_option">
<div class="description">
組み合わせるとよりお洒落になる{{ sets.option_name}}をご用意しております。<br>ご希望の{{ sets.option_name}}を選択して頂き、「セット商品を表示する」をクリックして頂くと、<br>「植物と植木鉢」を組み合わせたセット商品が表示されます。
</div>
<form action="{{ url('product_detail', {'id': Product.id}) }}#set_block" id="form_selected" method="get">
<ul class="pots_list">
{% set id_count = [] %}
{% for pot in sets['option_product'] %}
{% set exist_id = false %}
{% for t in id_count %}
{% if t == pot.id %}
{% set exist_id = true %}
{% endif %}
{% endfor %}
{% set id_count = id_count|merge([pot.id]) %}
{# 既に表示されている商品のみ表示 #}
{% if exist_id == false %}
<li><input id="pot_{{ pot.id}}" name="option_id[]" value="{{ pot.id}}" type="radio">
<label for="pot_{{ pot.id}}">
<div class="text">
{{ pot.name}}
</div>
<div class="image">
<img src="{{ asset(pot.main_list_image|no_image_product, 'save_image') }}">
</div>
<div class="select_btn">
選択する
</div>
<div class="selected_btn">
選択済み
</div>
</label>
</li>
{% endif %}
{% endfor %}
</ul>
{% if(sets['set_show'] == "true" ) %}
<div class="btnWrap none" data-name="show_btn">
<button class="submit">セット商品を表示する</button>
</div>
{% else %}
<div class="btnWrap" data-name="show_btn">
<button class="submit">セット商品を表示する</button>
</div>
{% endif %}
</form>
</div>