{{-- An institutional report, in the agency's own dress. The layout is the one every other downloadable WMA report uses - masthead, document band, meta strip, office stamp - so a report from this module is recognisably from the same building. The table is whatever the report builder returned, which is why one view draws all nineteen. --}} @extends('layouts.PdfReportLayout') @section('doc_title', $docTitle) @section('doc_subtitle', $docSubtitle) @section('meta') Period {{ $periodLabel }} Financial Year {{ $fiscalLabel }} Covering {{ $periodRange }} Records {{ number_format(count($rows)) }} Generated {{ $generatedAt }} Prepared by {{ $generatedBy }} @endsection @section('content')
{{ $docTitle }}
@foreach ($columns as $column) @endforeach @forelse ($rows as $index => $row) @foreach ($columns as $column) @php $value = $row[$column['key']] ?? null; @endphp @endforeach @empty @endforelse
# $column['numeric'] ?? false])>{{ $column['label'] }}
{{ $index + 1 }} $column['numeric'] ?? false, 'strong' => $loop->first])> {{ ($column['numeric'] ?? false) && is_numeric($value) ? number_format((float) $value, fmod((float) $value, 1) == 0.0 ? 0 : 2) : ($value ?? '-') }}
Nothing was reported for this period.
@if (! empty($totals)) @foreach ($totals as $label => $value) @endforeach
{{ ucwords(str_replace('_', ' ', $label)) }}
{{ is_numeric($value) ? number_format((float) $value, fmod((float) $value, 1) == 0.0 ? 0 : 2) : $value }}
@endif @endsection