{{ $dateStart }} {{ $timeStart }} - {{ $dateEnd }} {{ $timeEnd }} (UTC +1)
{{ __('reports.report_type') ?? 'Report Type' }}: {{ $reportName }}
@foreach($group['rows'] as $row)
@php
$dateVal = $row[2] ?? '-';
$colCount = count($headers);
$totalDynamic = max(0, $colCount - 3);
$midPoint = ceil($totalDynamic / 2) + 3;
@endphp
@if(count($group['rows']) > 1)
Date: {{ $dateVal }}
@endif
@for($i = 3; $i < $midPoint; $i++)
@if(isset($headers[$i]))
| {{ $headers[$i] }}: |
{{ $row[$i] ?? '-' }} |
@endif
@endfor
|
@for($i = $midPoint; $i < $colCount; $i++)
@if(isset($headers[$i]))
| {{ $headers[$i] }}: |
{{ $row[$i] ?? '-' }} |
@endif
@endfor
|
@endforeach
@if(!empty($group['total']))
@php
$totalRow = $group['total'];
@endphp
TOTAL
@for($i = 3; $i < $midPoint; $i++)
@if(isset($headers[$i]))
| {{ $headers[$i] }}: |
{{ $totalRow[$i] ?? '-' }} |
@endif
@endfor
|
@for($i = $midPoint; $i < $colCount; $i++)
@if(isset($headers[$i]))
| {{ $headers[$i] }}: |
{{ $totalRow[$i] ?? '-' }} |
@endif
@endfor
|
@endif
@if(!empty($group['average']))
@php
$avgRow = $group['average'];
@endphp
MOYENNE (par période)
@for($i = 3; $i < $midPoint; $i++)
@if(isset($headers[$i]))
| {{ $headers[$i] }}: |
{{ $avgRow[$i] ?? '-' }} |
@endif
@endfor
|
@for($i = $midPoint; $i < $colCount; $i++)
@if(isset($headers[$i]))
| {{ $headers[$i] }}: |
{{ $avgRow[$i] ?? '-' }} |
@endif
@endfor
|
@endif