{{ $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) @endforeach @endif @foreach ($rows as $row) @foreach ((array) $row as $cell) @endforeach @endforeach
{{ $heading }}
{{ is_bool($cell) ? ($cell ? 'Yes' : 'No') : $cell }}
@endif
@endforeach