{{ $company->address_1 }}{{ $company->address_2 ? ', ' . $company->address_2 : '' }}
Generated By: {{ auth()->user()->name }}
Date Generated: {{ now()->format('M d, Y H:i') }}
| Site | @for($d = 1; $d <= $days; $d++){{ $d }} | @endforTotal |
|---|---|---|
| {{ $row['site'] }} | @for($d = 1; $d <= $days; $d++){{ $row['days'][$d] > 0 ? $row['days'][$d] : '' }} | @endfor{{ $row['total'] }} |
| Totals | @for($d = 1; $d <= $days; $d++) @php $colTotal = collect($reportData)->sum(fn($r) => $r['days'][$d]); @endphp{{ $colTotal > 0 ? $colTotal : '' }} | @endfor{{ collect($reportData)->sum('total') }} |