{% if menuKey == 3 %}
{% for offerItemKey, viewItems in attribute(offer.offerItemsCategory, menuKey)[loop.index] %}
{% if offerItemKey == 'bObligatory'%}
{% if viewItems %}
<h3 class="mt-4"><b>{{ 'USER_ZONE.OFFER.OBLIGATORY'|trans }}</b></h3>
{% endif %}
{% endif %}
{% if offerItemKey == 'cWelcome'%}
{% if viewItems %}
<h3 class="mt-4"><b>{{ 'USER_ZONE.OFFER.WELCOME'|trans }}</b></h3>
{% endif %}
{% endif %}
{% for itemViewType, offerItem in viewItems %}
{% if itemViewType == 0 %}
<div class="col-lg-12">
{% include 'front/offer/offer_preview/includes/content/view_type/type_button/type_button.twig' with {
offerItems: offerItem,
offerItemKey: offerItemKey
} %}
</div>
{% endif %}
{% if itemViewType == 1 %}
<div class="row">
{% include 'front/offer/offer_preview/includes/content/view_type/type_vertical_list/type_vertical_list.twig' with {
offerItems: offerItem,
offerItemKey: offerItemKey
} %}
</div>
{% endif %}
{% if itemViewType == 2 %}
<div class="col-lg-12">
{% include 'front/offer/offer_preview/includes/content/view_type/type_text.twig' with {
offerItem,
offerItemKey: offerItemKey
} %}
</div>
{% endif %}
{% if itemViewType == 3 %}
<div class="row">
{% include 'front/offer/offer_preview/includes/content/view_type/type_horizontal_list/type_horizontal_list.twig' with {
offerItems: offerItem,
offerItemKey: offerItemKey
} %}
</div>
{% endif %}
{% endfor %}
{% endfor %}
{% else %}
{% for offerItemKey, viewItems in attribute(offer.offerItemsCategory, menuKey) %}
{% if offerItemKey == 'bObligatory'%}
{% if viewItems %}
<h3 class="mt-4"><b>{{ 'USER_ZONE.OFFER.OBLIGATORY'|trans }}</b></h3>
{% endif %}
{% endif %}
{% if offerItemKey == 'cWelcome'%}
{% if viewItems %}
<h3 class="mt-4"><b>{{ 'USER_ZONE.OFFER.WELCOME'|trans }}</b></h3>
{% endif %}
{% endif %}
{% for itemViewType, offerItem in viewItems %}
{% if itemViewType == 0 %}
<div class="col-lg-12">
{% include 'front/offer/offer_preview/includes/content/view_type/type_button/type_button.twig' with {
offerItems: offerItem,
offerItemKey: offerItemKey
} %}
</div>
{% endif %}
{% if itemViewType == 1 %}
<div class="row">
{% include 'front/offer/offer_preview/includes/content/view_type/type_vertical_list/type_vertical_list.twig' with {
offerItems: offerItem,
offerItemKey: offerItemKey
} %}
</div>
{% endif %}
{% if itemViewType == 2 %}
<div class="col-lg-12">
{% include 'front/offer/offer_preview/includes/content/view_type/type_text.twig' with {
offerItem,
offerItemKey: offerItemKey
} %}
</div>
{% endif %}
{% if itemViewType == 3 %}
<div class="row">
{% include 'front/offer/offer_preview/includes/content/view_type/type_horizontal_list/type_horizontal_list.twig' with {
offerItems: offerItem,
offerItemKey: offerItemKey
} %}
</div>
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}