update
parent
92da91077c
commit
ae075a1c02
|
|
@ -55,7 +55,36 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@foreach ($formDetails as $detail)
|
||||||
|
@php
|
||||||
|
$unitCode = $detail->unit_code;
|
||||||
|
$unitCategory = $unitsMap[$unitCode]->category ?? null;
|
||||||
|
@endphp
|
||||||
|
<div class="col-md-12 mb-3">
|
||||||
|
<b>{{ $detail->activity ? $detail->activity->name : 'N/A' }}</b>
|
||||||
|
@if ($unitCategory)
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="text" class="form-control w-50 text-right" name="value[{{ $detail->activity_code }}]" oninput="numberFormat(this)">
|
||||||
|
<div class="input-group-text p-0" style="width: 200px!important;">
|
||||||
|
<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
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
|
{{ $unitCode }}
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,11 +42,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@include('modules.form.import')
|
@include('modules.form.import')
|
||||||
@include('modules.form.form')
|
|
||||||
@if ($instansi !== 'all')
|
@if ($instansi !== 'all')
|
||||||
@include('modules.form.aktivitas-user')
|
@include('modules.form.aktivitas-user')
|
||||||
@include('modules.form.metadata.index')
|
@include('modules.form.metadata.index')
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@include('modules.form.form')
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@include('modules.form.scripts')
|
@include('modules.form.scripts')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue