@if($section->isFinancial()) @foreach($section->rows as $row) @php $prev = (float) ($values[$row->id]['previous'] ?? 0); $curr = (float) ($values[$row->id]['current'] ?? 0); $output = $row->isPerformanceMode() ? (float) ($values[$row->id]['result'] ?? ($curr - $prev)) : (float) ($values[$row->id]['cumulative'] ?? ($prev + $curr)); @endphp @endforeach
Variable Previous Current {{ $section->rows->first()?->outputLabel() ?? 'Cumulative' }}
{{ $row->label }} {{ number_format($prev, 0) }} {{ number_format($curr, 0) }} @if($row->isPerformanceMode()) {{ number_format($output, 0) }} @else {{ number_format($output, 0) }} @endif
@elseif($section->isStandard()) @foreach($section->rows as $row) @php $val = $values[$row->id]['current'] ?? ''; @endphp @endforeach
{{ $row->label }} {{ is_numeric($val) ? number_format((float) $val, 0) : $val }}
@elseif($section->isNarrative()) @foreach($section->rows as $row) @php $val = $values[$row->id]['current'] ?? ''; @endphp
{{ $row->label }}

{{ $val }}

@endforeach @endif