update
parent
565faeaeec
commit
89d198c629
|
|
@ -16,6 +16,12 @@
|
|||
@endphp
|
||||
<th style="min-width: 150px; text-decoration:normal">
|
||||
{{ $detail->activity ? $detail->activity->name : 'N/A' }} - ({{ $detail->unit_code }})
|
||||
|
||||
@if ($unitCategory)
|
||||
|
||||
@else
|
||||
{{ $unitCode }}
|
||||
@endif
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
|
@ -31,17 +37,12 @@
|
|||
@foreach ($formDetails as $detail)
|
||||
@php
|
||||
|
||||
$activity_value = '';
|
||||
|
||||
if (isset($activityFormDetails[$year])) {
|
||||
$activityData = $activityFormDetails[$year]
|
||||
->where('activity_code', $detail->activity_code)
|
||||
->where('activity_unit_code', $detail->unit_code)
|
||||
->first();
|
||||
|
||||
$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
|
||||
<td>
|
||||
<div class="input-group">
|
||||
|
|
@ -59,5 +60,6 @@
|
|||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<button type="submit" class="btn btn-primary" {{ $isLocked || $instansi === 'all' || $limitInternal ? 'disabled' : '' }}>Simpan</button>
|
||||
@endif
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Reference in New Issue