Page

{{ $dataset['title'] }}

System: WorkTenant
Generated at {{ $dataset['generated_at'] }}
Generated by: {{ auth()->user()?->name ?? 'System' }}
Scope: {{ strtoupper($dataset['scope']) }}
@if(!empty($dataset['meta']['filters']))
Active filters:
@foreach($dataset['meta']['filters'] as $key => $value) {{ ucwords(str_replace('_', ' ', $key)) }}: {{ is_scalar($value) ? $value : json_encode($value) }} @endforeach
@endif

Summary

@foreach($dataset['summary'] as $key => $value) @endforeach
{{ ucwords(str_replace('_', ' ', $key)) }} {{ is_scalar($value) ? $value : json_encode($value) }}
@foreach($dataset['sections'] as $section)

{{ $section['title'] }}

@if(empty($section['rows']))

No rows available.

@else @php $headings = collect($section['rows'])->flatMap(fn ($row) => array_keys((array) $row))->unique()->values()->all(); @endphp @foreach($headings as $heading) @endforeach @foreach($section['rows'] as $row) @foreach($headings as $heading) @php $value = data_get($row, $heading); @endphp @endforeach @endforeach
{{ ucwords(str_replace('_', ' ', $heading)) }}
{{ is_array($value) ? json_encode($value) : $value }}
@endif
@endforeach