{{-- Week navigation --}}

{{ $this->weekLabel }}

@php $team = $this->team; @endphp @if (count($team) === 0)
Aucun collaborateur affecté à vos marchés pour le moment.
@else
@foreach (['Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam', 'Dim'] as $label) @endforeach @foreach ($team as $row) @foreach ($row['days'] as $day) @php $cell = match (true) { $day['on_leave'] => 'bg-info-50 text-info-700 dark:bg-info-400/10 dark:text-info-300', // v3.10.0 §4 — Férié validé : rien n'est attendu ce jour-là. $day['on_holiday'] && $day['hours'] <= 0 => 'bg-warning-50 text-warning-700 dark:bg-warning-400/10 dark:text-warning-300', $day['missing'] => 'bg-danger-50 text-danger-700 dark:bg-danger-400/10 dark:text-danger-300', $day['hours'] > 0 => 'bg-success-50 text-success-700 dark:bg-success-400/10 dark:text-success-300', default => 'text-gray-400', }; @endphp @endforeach @endforeach
Collaborateur{{ $label }}Total Manque
{{ $row['employee']->fullName }} @if ($day['on_leave']) Congé @elseif ($day['on_holiday'] && $day['hours'] <= 0) Férié @elseif ($day['hours'] > 0) {{ rtrim(rtrim(number_format($day['hours'], 2, ',', ' '), '0'), ',') }} @elseif ($day['missing']) — @else · @endif {{ rtrim(rtrim(number_format($row['total'], 2, ',', ' '), '0'), ',') }} h @if ($row['missing'] > 0) {{ $row['missing'] }} @else 0 @endif
Saisi Manquant Congé
@endif