Membuat Fitur Menu KJPP part 2

This commit is contained in:
2024-09-24 17:41:24 +07:00
parent 8b4dd34b51
commit 33ba88a276
5 changed files with 24 additions and 27 deletions

View File

@@ -13,6 +13,7 @@
@method('PUT')
@endif
@csrf
<div class="card pb-2.5">
<div class="card-header" id="basic_settings">
<h3 class="card-title">
@@ -350,11 +351,11 @@
@if (isset($kjpp->ijin_usaha_id))
<input type="checkbox"
@if (in_array($row->code, old('ijin_usaha_id', json_decode($kjpp->ijin_usaha_id, true)))) {{ 'checked' }} @endif
value="{{ $row->code }}" name="ijin_usaha_id[]" />
value="{{ $row->code }}" name="ijin_usaha[]" />
@else
<input type="checkbox"
@if (in_array($row->code, old('ijin_usaha_id', []))) {{ 'checked' }} @endif
value="{{ $row->code }}" name="ijin_usaha_id[]" />
value="{{ $row->code }}" name="ijin_usaha[]" />
@endif
<span class="switch-label">
{{ $row->name }}
@@ -373,11 +374,11 @@
@if (isset($kjpp->jenis_aset_id))
<input type="checkbox"
@if (in_array($row->code, old('jenis_aset_id', json_decode($kjpp->jenis_aset_id, true)))) {{ 'checked' }} @endif
value="{{ $row->code }}" name="jenis_aset_id[]" />
value="{{ $row->code }}" name="jenis_jaminan[]" />
@else
<input type="checkbox"
@if (in_array($row->code, old('jenis_aset_id', []))) {{ 'checked' }} @endif
value="{{ $row->code }}" name="jenis_aset_id[]" />
value="{{ $row->code }}" name="jenis_jaminan[]" />
@endif
<span class="switch-label">
{{ $row->name }}