<div class="row mb-3">
    <div class="col-12">
        @include('components.form.select', [
            'name' => 'type_id',
            'value' => $calcul['type_id'] ?? false,
            'list' => $delivery_types ?? [],
            'label' => __('shop.delivery_types.name'),
            'with_empty' => '',
        ])
    </div>
</div>

<div class="row mb-3">
    <div class="col-6">
        <x-form.inputs.number name="weight" value="{{ $calcul['weight'] ?? 0 }}" label="Poids" />
    </div>
    <div class="col-6">
        <x-form.inputs.money name="price" value="{{ $calcul['price'] ?? 0 }}" label="Prix" />
    </div>
</div>

<x-save />

@include('load.form.select2')
@include('load.form.save')

@push('js')
    <script>
        $(function() {
            initSelect2();
            initSaveForm('#delivery_type_calculation-form');
        });
    </script>
@endpush
