Refactoring, change menu, add many features
This commit is contained in:
@@ -3,21 +3,21 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('article_id', 'Article') }}
|
||||
@include('components.select', ['name' => 'article_id', 'id_name' => 'article_id', 'list' => $articles ?? null, 'value' => $offer['article_id'] ?? null, 'with_empty' => '', 'class' => 'select2 select_article'])
|
||||
@include('components.form.select', ['name' => 'article_id', 'id_name' => 'article_id', 'list' => $articles ?? null, 'value' => $offer['article_id'] ?? null, 'with_empty' => '', 'class' => 'select2 select_article'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('variation_id', 'Déclinaison') }}
|
||||
@include('components.select', ['name' => 'variation_id', 'id_name' => 'variation_id', 'list' => $variations ?? null, 'value' => $offer['variation_id'] ?? null, 'with_empty' => '', 'class' => 'select2 select_variation'])
|
||||
@include('components.form.select', ['name' => 'variation_id', 'id_name' => 'variation_id', 'list' => $variations ?? null, 'value' => $offer['variation_id'] ?? null, 'with_empty' => '', 'class' => 'select2 select_variation'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tariff_id', 'Tarif') }}
|
||||
@include('components.select', ['name' => 'tariff_id', 'id_name' => 'tariff_id', 'list' => $tariffs ?? null, 'value' => $offer['tariff_id'] ?? null, 'with_empty' => '', 'class' => 'select2 select_tariffs'])
|
||||
@include('components.form.select', ['name' => 'tariff_id', 'id_name' => 'tariff_id', 'list' => $tariffs ?? null, 'value' => $offer['tariff_id'] ?? null, 'with_empty' => '', 'class' => 'select2 select_tariffs'])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -25,27 +25,27 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-xl-6">
|
||||
{{ Form::label('stock_current', 'Appro immédiate') }}
|
||||
@include('components.money', ['name' => 'stock_current', 'value' => $offer['stock_current'] ?? 0])
|
||||
@include('components.form.inputs.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])
|
||||
@include('components.form.inputs.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])
|
||||
@include('components.form.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])
|
||||
@include('components.form.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])
|
||||
@include('components.form.inputs.money', ['name' => 'minimum_ondemand', 'value' => $offer['minimum_ondemand'] ?? 0])
|
||||
</div>
|
||||
</div>
|
||||
@endcomponent
|
||||
|
||||
Reference in New Issue
Block a user