{{ $name ?? 'Report' }}

@foreach(($columns ?? []) as $col) @endforeach @php $keys = array_map(fn($c) => $c['key'], ($columns ?? [])); @endphp @foreach(($rows ?? []) as $row) @foreach($keys as $k) @endforeach @endforeach
{{ $col['label'] ?? $col['key'] }}
{{ data_get($row, $k) }}