Files
opensem/resources/views/Admin/Shop/Offers/form.blade.php
Ludovic CANDELLIER 9ca510086b comments
2021-08-21 19:48:21 +02:00

65 lines
2.2 KiB
PHP

<div class="row mb-3">
<div class="col-8">
<div class="row mb-3">
<div class="col-8">
{{ Form::label('article_id', 'Article') }}
@include('components.form.autocomplete', ['name' => 'article', 'data' => $offer ?? null, 'url' => route('Admin.Shop.Articles.autocomplete')])
</div>
</div>
<div class="row mb-3">
<div class="col-8">
{{ Form::label('variation_id', 'Déclinaison') }}
@include('components.form.autocomplete', ['name' => 'variation', 'data' => $offer ?? null, 'url' => route('Admin.Shop.Variations.autocomplete')])
</div>
</div>
<div class="row mb-3">
<div class="col-8">
{{ Form::label('tariff_id', 'Tarif') }}
@include('components.form.autocomplete', ['name' => 'tariff', 'data' => $offer ?? null, 'url' => route('Admin.Shop.Tariffs.autocomplete')])
</div>
</div>
</div>
<div class="col-4">
@component('components.card', ['title' => 'Disponibilité'])
<div class="row mb-3">
<div class="col-6">
{{ Form::label('stock_current', 'Appro immédiate') }}
@include('components.money', ['name' => 'stock_current', 'value' => $offer['stock_current'] ?? 0])
</div>
</div>
<div class="row mb-3">
<div class="col-6">
{{ Form::label('stock_delayed', 'Appro sur delai') }}
@include('components.money', ['name' => 'stock_delayed', 'value' => $offer['stock_delayed'] ?? 0])
</div>
<div class="col-6">
{{ Form::label('delay_type', 'Délai type') }}
@include('components.input', ['name' => 'delay_type', 'value' => $offer['delay_type'] ?? null])
</div>
</div>
<div class="row mb-3">
<div class="col-6">
{{ Form::label('stock_ondemand', 'Appro sur demande') }}
@include('components.toggle', ['name' => 'stock_ondemand', 'value' => $offer['stock_ondemand'] ?? 0])
</div>
<div class="col-6">
{{ Form::label('minimum_ondemand', 'Minimum de quantité') }}
@include('components.money', ['name' => 'minimum_ondemand', 'value' => $offer['minimum_ondemand'] ?? 0])
</div>
</div>
@endcomponent
</div>
</div>
@include('components.save')
@include('load.form.autocomplete')
@push('js')
<script>
initAutocomplete();
initSaveForm();
</script>
@endpush