main
Ilham Wara Nugroho 2026-06-12 14:39:50 +07:00
parent 72a594acb3
commit 9c5a48bf4a
1 changed files with 12 additions and 2 deletions

View File

@ -45,8 +45,8 @@
<table class="table table-bordered table-detail">
<thead class="table-info text-white">
<tr>
<th style="width: 50px;">No.</th>
<th style="width: 100px;">Tahun</th>
<th>No.</th>
<th>Tahun</th>
@foreach ($formDetails as $detail)
@php
$unitCode = $detail->unit_code;
@ -72,6 +72,16 @@
<tr>
<td>{{ $k+1 }}</td>
<td>{{ $year }}</td>
@foreach ($formDetails as $detail)
@php
$activity_value = isset($activityFormDetails[$year])
? $activityFormDetails[$year]
->where('activity_code', $detail->activity_code)
->where('activity_unit_code', $detail->unit_code)
->first()->activity_value ?? ''
: '';
@endphp
@endforeach
</tr>
@endforeach
</tbody>