update
parent
d189c3a79a
commit
2a4fe7a76a
|
|
@ -18,7 +18,16 @@
|
||||||
{{ $detail->activity ? $detail->activity->name : 'N/A' }} - ({{ $detail->unit_code }})
|
{{ $detail->activity ? $detail->activity->name : 'N/A' }} - ({{ $detail->unit_code }})
|
||||||
|
|
||||||
@if ($unitCategory)
|
@if ($unitCategory)
|
||||||
|
<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)
|
||||||
|
<option value="{{ $unit->code }}"
|
||||||
|
{{ $unit->code == $unitCode ? 'selected' : '' }}>
|
||||||
|
{{ $unit->code }}
|
||||||
|
</option>
|
||||||
|
@endforeach
|
||||||
|
</select>
|
||||||
@else
|
@else
|
||||||
{{ $unitCode }}
|
{{ $unitCode }}
|
||||||
@endif
|
@endif
|
||||||
|
|
@ -48,20 +57,10 @@
|
||||||
$activity_value = $activityData->activity_value ?? '';
|
$activity_value = $activityData->activity_value ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// $activity_value = isset($activityFormDetails[$year])
|
|
||||||
// ? $activityFormDetails[$year]
|
|
||||||
// ->where('activity_code', $detail->activity_code)
|
|
||||||
// ->where('activity_unit_code', $detail->unit_code)
|
|
||||||
// ->first()->activity_value ?? ''
|
|
||||||
// : '';
|
|
||||||
@endphp
|
@endphp
|
||||||
<td>
|
<td>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text"
|
|
||||||
name="data[{{ $year }}][{{ $detail->activity_code }}-{{ $detail->unit_code }}]"
|
|
||||||
value="{{ getFormattedValue($activity_value) ?? '' }}"
|
|
||||||
class="form-control text-right" oninput="numberFormat(this)"
|
|
||||||
{{ $isLocked || $instansi === 'all' || $limitInternal ? 'readonly' : '' }}>
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue