{% if BaseInfo.show_stock == 0 and BaseInfo.show_limit == 0 and BaseInfo.show_deliv == 0 %}
{% else %}
<div id="option_detailclass0_area">
{% for ProductClass in Product.product_classes %}
<div id="option_detailclass0_item">
<div class="item_area">
<div class="class_category_name">
{% if form.classcategory_id1 is defined %}<i class="fas fa-arrow-alt-circle-down"></i> {{ ProductClass.class_category1.name }}{% endif %}{% if form.classcategory_id2 is defined %} / {{ ProductClass.class_category2.name }}{% endif %}
</div>
{% if BaseInfo.show_stock == 1 %}
{% if ProductClass.stock_find is empty %}
<div class="item"><small class="text-danger">品切れ中</small></div>
{% elseif ProductClass.stock != null %}
<div class="item"><small>在庫数:{{ ProductClass.stock }}</small></div>
{% else %}
<div class="item"><small>在庫多数</small></div>
{% endif %}
{% endif %}
{% if BaseInfo.show_limit == 1 %}
{% if ProductClass.sale_limit != null %}
<div class="item"><small>販売制限数:{{ ProductClass.sale_limit }}</small></div>
{% endif %}
{% endif %}
{% if BaseInfo.show_deliv == 1 %}
{% if ProductClass.DeliveryDuration %}
<div class="item"><small>発送日目安:{{ ProductClass.DeliveryDuration }}</small></div>
{% else %}
<div class="item"><small>お届け日指定不可</small></div>
{% endif %}
{% endif %}
</div>
<div style="clear:both;"></div>
</div>
{% endfor %}
</div>
{% endif %}