@foreach($table['columns'] as $column) @endforeach @forelse($table['rows'] as $row) @foreach($table['columns'] as $column) @endforeach @empty @endforelse @if(!empty($table['totals']) && !empty($table['rows'])) @foreach($table['columns'] as $column) @endforeach @endif
Location {{ $column['label'] }}
{{ $row['location_name'] }} @if($column['type'] === 'currency') ${{ number_format($row[$column['id']] ?? 0, 2) }} @elseif($column['type'] === 'number') {{ number_format($row[$column['id']] ?? 0) }} @else {{ $row[$column['id']] ?? '' }} @endif
No data found for this report
{{ $table['totals']['location_name'] }} @if($column['type'] === 'currency') ${{ number_format($table['totals'][$column['id']] ?? 0, 2) }} @elseif($column['type'] === 'number') {{ number_format($table['totals'][$column['id']] ?? 0) }} @else {{ $table['totals'][$column['id']] ?? '' }} @endif