@php use App\Support\ReportExporter; @endphp
@if ($companyName !== '')
{{ $companyName }}
@endif @if ($companyAddress !== '')
{{ $companyAddress }}
@endif
@if ($logoUrl !== '')@endif

{{ $title }}

@if ($subtitle !== '')

{{ $subtitle }}

@endif @foreach ($columns as $col)@endforeach @foreach ($rows as $row) @foreach ($columns as $col) @endforeach @endforeach @if ($totals !== null) @foreach ($columns as $col) @endforeach @endif
{{ $col['label'] }}
{{ ReportExporter::cell($row[$col['key']] ?? '', $col) }}
{{ array_key_exists($col['key'], $totals) ? ReportExporter::cell($totals[$col['key']], $col) : '' }}