@if (count($information['correction_groups']) > 0)
@php
$invitations = $information['correction_groups'];
$correctionAddress = $information['correctionAddress'];
$currentDay = '';
$groupName = '';
$counter = 0;
$i = 0;
@endphp
@foreach($invitations as $key1 => $correctionDays)
@foreach($correctionDays as $key => $correctionDay)
@if(is_array($correctionDay))
@php
$dayPart = $correctionDay['daypart_code'] === 'am'? $labels['morning']: $labels['afternoon'];
$dateFormatted = $correctionDay['date_formatted']. ', '.$dayPart;
//if($currentDay != $dateFormatted){
//$currentDay = $dateFormatted;
if ($groupName != $correctionDay['group_name']) {
$groupName = $correctionDay['group_name'];
if($counter > 0){
echo '';
}
@endphp
@if($i > 0)
@endif
{{$groupName}}
{{$labels['groupboss']
. ' ' .$correctionDays['boss_name'] . ' ' . $correctionDays['boss_prename']}}
{{$labels['groupboss2']. ' ' .$correctionDays['boss2_name'] . ' '
. $correctionDays['boss2_prename']}}
@php
// }
@endphp
0 ? "style='margin-top:10px'" : "" @endphp>
| date |
Lieu |
No. de tél. pour ce jour |
@php
$counter++;
}
@endphp
| {{$dateFormatted}} |
@if($correctionAddress)
{{$correctionAddress['address']}}
@if ($correctionAddress['address2'])
{{$correctionAddress['address2']}}
@endif
{{'CH-' . $correctionAddress['postalcode'] .' ' . $correctionAddress['city']}}
@endif
|
@if($correctionAddress)
{{$correctionAddress['phone']}}
@endif
|
@endif
@endforeach
@php $i++ @endphp
@endforeach
@endif