{{ $title ?? 'Report' }}
Generated {{ $generatedAt }}{{ $baseCurrency ? ' ยท '.$baseCurrency : '' }}
@foreach ($sections as $section)
{{ $section['title'] ?? 'Section' }}
@php($headings = $section['headings'] ?? []) @php($rows = $section['rows'] ?? []) @if (count($rows) === 0)
No data.
@else
@if (count($headings) > 0)
@foreach ($headings as $heading)
{{ $heading }}
@endforeach
@endif
@foreach ($rows as $row)
@foreach ((array) $row as $cell)
{{ is_bool($cell) ? ($cell ? 'Yes' : 'No') : $cell }}
@endforeach
@endforeach
@endif
@endforeach