@extends('layouts.app') @section('title', 'NWRB Section 18 Data Sheet') @section('content') @php $cur = $currency === 'PHP' ? '₱' : $currency . ' '; // Null means "not measured for this month" — shown blank, never as zero. $render = function ($value, $format) use ($cur) { if ($value === null) { return '—'; } return match ($format) { 'int' => number_format($value), 'pct' => number_format($value, 1) . '%', 'money' => $cur . number_format($value, 2), default => number_format($value, 2), }; }; @endphp
Monthly and year-to-date figures for the NWRB Annual Report attachment (due May 31)
| Line Item | @foreach($months as $label){{ $label }} | @endforeachYTD | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $currentGroup }} | |||||||||||||
| {{ $row['label'] }} | @foreach(array_keys($months) as $key){{ $render($row['values'][$key], $row['format']) }} | @endforeach{{ $render($row['ytd_value'], $row['format']) }} | |||||||||||
NWRB_REPORTING.md.