Rentang Periode: {{ $selectedRangeText }}
Periode: {{ implode(', ', $selected_neraca_periodes ?? []) ?: '-' }}
| No. COA | Keterangan / Description | @foreach ($neraca_result as $result){{ $result->periode }} | @endforeachTotal |
|---|---|---|---|
| @if ($isDetailField) @endif {{ $baseField->field_name }} @if ($isDetailField) (Detail) @else (Total) @endif | @foreach ($sectionTotals as $resultIndex => $total) @php $total = (float) $total; $isNegativeTotalCell = !$isDetailField && $total < 0; $totalTextClass = $isNegativeTotalCell ? 'text-danger' : $sectionTextClass; $totalBgColor = $sectionBgColor; @endphp{{ $formatAmount($total) }} | @endforeach @php $sectionGrandTotal = collect($sectionTotals)->sum( fn($total) => (float) $total, ); $isNegativeGrandTotalCell = !$isDetailField && $sectionGrandTotal < 0; $grandTotalTextClass = $isNegativeGrandTotalCell ? 'text-danger' : $sectionTextClass; @endphp{{ $formatAmount($sectionGrandTotal) }} |