{{-- "Calendrier mensuel" — one cell per day (full weeks, Monday-start), showing the count of task/meeting/milestone elements relevant to the current person on that day. A day with elements opens a click-triggered dropdown (not a hover tooltip — those don't allow reliably clicking through their own content) listing them, each row opening the Aperçu panel on that element. $this->calendarMonth / previousMonth() / nextMonth() / calendarDays() all come from the page class (Dashboard.php). --}}
@foreach (['Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa', 'Di'] as $label)
{{ $label }}
@endforeach
@foreach ($this->calendarDays() as $day) @php $isToday = $day->date->isToday(); $count = $day->elements->count(); @endphp
@if ($count > 0) @foreach ($day->elements as $element) {{ $element->title }} @endforeach @else
! $day->inCurrentMonth, 'font-bold text-primary-600 ring-1 ring-primary-500' => $isToday, 'text-gray-500 dark:text-gray-400' => $day->inCurrentMonth && ! $isToday, ]) > {{ $day->date->day }}
@endif
@endforeach