This commit is contained in:
Ludovic CANDELLIER
2021-10-04 13:49:45 +02:00
parent 9380d99688
commit 0f23d5cd56
9 changed files with 42 additions and 14 deletions

View File

@@ -31,7 +31,7 @@
<div class="col-3">
@component('components.card', ['title' => 'Disponibilité'])
<div class="row mb-3">
<div class="col-6">
<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])
</div>

View File

@@ -2,7 +2,7 @@
<div class="col-6">
{{ Form::open(['route' => 'Admin.Shop.Tariffs.store', 'id' => 'tariffs-form', 'autocomplete' => 'off']) }}
<input type="hidden" name="id" id="id" value="{{ $tariff['id'] }}">
<input type="hidden" name="id" id="id" value="{{ $tariff['id'] ?? null }}">
<div class="row mb-3">
<div class="col-8">