| Nom & Prénom | En jours | ANNÉE {{ $start->format('Y') }} | Total | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DROIT {{ $start->format('Y') }} |
@foreach($months as $index => $month)
@php
$m = $index + 1;
if ($m < $highlightMonth) {
$thStyle = 'background-color: #b5e6a2;';
} elseif ($m == $highlightMonth) {
$thStyle = 'background-color: #ffff00;';
} else {
$thStyle = '';
}
@endphp
{{ $month }} | @endforeach||||||||||||||
| {{ $row['lastname'] }} | {{ $row['firstname'] }} | {{ $row['nbrHolidays'] }} | @for($m = 1; $m <= 12; $m++) @php $monthValue = $row['months'][$m] ?? ''; $tdStyle = ($m == $highlightMonth) ? 'background-color: #ffff00;' : ''; @endphp{{ $monthValue }} | @endfor{{ $row['totalDays'] }} | |||||||||||