Mengubah menjadi freetext di nomor ijin usaha di tambah kjpp
This commit is contained in:
@@ -80,28 +80,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<label class="form-label max-w-56">Nomor Ijin Usaha</label>
|
<label class="form-label max-w-56">Nomor Ijin Usaha</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select id="nomor_ijin_usaha"
|
<input class="input @error('nomor_ijin_usaha') border-danger @enderror" type="text"
|
||||||
class="select w-full @error('nomor_ijin_usaha') border-danger @enderror"
|
name="nomor_ijin_usaha" value="{{ $kjpp->nomor_ijin_usaha ?? old('nomor_ijin_usaha') }}">
|
||||||
name="nomor_ijin_usaha">
|
|
||||||
<option value="">Pilih Nomor Ijin Usaha</option>
|
|
||||||
@if (isset($ijin_usaha))
|
|
||||||
@if (isset($kjpp))
|
|
||||||
@foreach ($ijin_usaha as $branches)
|
|
||||||
<option value="{{ $branches->code }}"
|
|
||||||
{{ old('nomor_ijin_usaha', $kjpp->nomor_ijin_usaha) == $branches->code ? 'selected' : '' }}>
|
|
||||||
{{ $branches->code }}
|
|
||||||
</option>
|
|
||||||
@endforeach
|
|
||||||
@else
|
|
||||||
@foreach ($ijin_usaha as $branches)
|
|
||||||
<option value="{{ $branches->code }}"
|
|
||||||
{{ old('nomor_ijin_usaha') == $branches->code ? 'selected' : '' }}>
|
|
||||||
{{ $branches->code }}
|
|
||||||
</option>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
@endif
|
|
||||||
</select>
|
|
||||||
@error('nomor_ijin_usaha')
|
@error('nomor_ijin_usaha')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
|
|||||||
Reference in New Issue
Block a user