main
Ilham Wara Nugroho 2026-06-10 15:52:53 +07:00
parent c07f71ed69
commit 3ddd96766c
1 changed files with 9 additions and 1 deletions

View File

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