{% trans_default_domain 'lcshop' %}
{% import '@LcShop/backend/default/block/macros.html.twig' as macros %}

<div class="row">
    {{ macros.startCard(8, 'ReductionCart.conditions') }}

    {{ macros.fieldReductionDateRange(form) }}
    {{ macros.fieldReductionList(form, 'deliveryZones') }}
    {{ macros.fieldReductionList(form, 'deliverySlots') }}
    {{ macros.fieldReductionList(form, 'pointSales') }}
    {{ macros.fieldReductionList(form, 'groupUsers') }}
    {{ macros.fieldReductionList(form, 'users') }}

    <div class="col-12">
        <div class="form-group">
            <div class="form-group">
                {{ form_widget(form.combinable, {"attr" : {'v-model' : 'reductionCombinable' } }) }}
            </div>
        </div>
    </div>
    <div class="col-6">
        <div class="form-widget" :class="reductionCombinable == false ? '' : 'hidden'">
            {{ form_row(form.uncombinableTypes, {"attr" : {'ref' : 'reductionUncombinableTypes', 'v-model' : 'reductionUncombinableTypes' } }) }}
        </div>
    </div>
    <div class="col-6">
        <div class="form-widget" :class="reductionCombinable == false ? '' : 'hidden'">
            {{ form_row(form.uncombinables, {"attr" : {'ref' : 'reductionUncombinables', 'v-model' : 'reductionUncombinables' } }) }}
        </div>
    </div>

    <div class="col-12">
        {{ form_row(form.orderAmountMin) }}
    </div>

    {{ macros.endCard() }}

</div>
