main
Ilham Wara Nugroho 2026-06-10 15:54:39 +07:00
parent 6fceb952ca
commit b2da98f2e3
1 changed files with 10 additions and 8 deletions

View File

@ -69,14 +69,16 @@
<select name="unit_code[{{ $detail->activity_code }}]" class="form-control unit-code"
data-activity-code="{{ $detail->activity_code }}"
data-current-unit="{{ $unitCode }}">
@foreach (@$unitsByCategory[$unitCategory] as $unit)
@if($unit->code == $unitCode)
<option value="{{ $unit->code }}"
{{ $unit->code == $unitCode ? 'selected' : '' }}>
{{ $unit->code }}
</option>
@endif
@endforeach
@if (@$unitsByCategory[$unitCategory])
@foreach (@$unitsByCategory[$unitCategory] as $unit)
@if($unit->code == $unitCode)
<option value="{{ $unit->code }}"
{{ $unit->code == $unitCode ? 'selected' : '' }}>
{{ $unit->code }}
</option>
@endif
@endforeach
@endif
</select>
</div>
</div>