uppercese category qoshildi
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
validate>
|
||||
@csrf
|
||||
@method('put')
|
||||
<input type="hidden" name="status" value="{{ App\Enums\OrderStatusEnum::DRAFT->name }}">
|
||||
<input type="hidden" name="status" value="{{ $order->status }}">
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<div class="card">
|
||||
@@ -67,7 +67,7 @@
|
||||
id="choices-purpose-input" tabindex="3">
|
||||
@foreach($purposeCases as $purposeItem)
|
||||
<option value="{{ $purposeItem->id }}"
|
||||
@if(old('purpose_id') == $purposeItem->id)selected @endif>
|
||||
@if((old('purpose_id') ?? $order->purpose_id) == $purposeItem->id)selected @endif>
|
||||
{{ $purposeItem->{str_replace('_', '-', app()->getLocale())} }}
|
||||
</option>
|
||||
@endforeach
|
||||
@@ -290,7 +290,7 @@
|
||||
id="choose-order-car-category" name="car_category" tabindex="10">
|
||||
@foreach ($concerns as $concern)
|
||||
<option value="{{ $concern->id }}"
|
||||
{{ $concern->car_category == $concern->id ? 'selected' : '' }}>
|
||||
{{ (old('car_category') ?? $order->car_category) == $concern->id ? 'selected' : '' }}>
|
||||
@lang($concern->{str_replace('_', '-', app()->getLocale())})
|
||||
</option>
|
||||
@endforeach
|
||||
@@ -500,11 +500,11 @@
|
||||
@lang('translation.select-diller')
|
||||
</label>
|
||||
<select data-choices data-choices-search-false data-choices-multiple-groups="false"
|
||||
name="diller" class="form-select @error('diller') is-invalid @enderror"
|
||||
name="diller_id" class="form-select @error('diller_id') is-invalid @enderror"
|
||||
id="choices-diller-input"
|
||||
tabindex="23">
|
||||
@foreach($dillers as $diller)
|
||||
<option value="{{ $diller->id}}" @if($order->diller== $diller->id) selected @endif>
|
||||
<option value="{{ $diller->id}}" @if((old('diller_id') ?? $order->diller_id) == $diller->id) selected @endif>
|
||||
{{ $diller->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user