{{-- One row of "Aujourd'hui" — same content as my-tasks-card.blade.php's row, except the project badge: a non-rangé element shows a red "À ranger" badge here instead of the neutral-gray one used everywhere else in the app. Kept as its own partial (not shared with my-tasks-card) precisely for that one difference — decision made explicit with the user before building this page, rather than adding a "$redUnfiledBadge" flag to the shared partial. $task — the ProjectElement to render. --}} @php $isDone = $task->status->category === 'done'; $isOverdue = $task->due_date && ($task->due_date->toDateString() <= Carbon\Carbon::today()->subDay()->toDateString()) && ! in_array($task->status->category, ['done', 'cancelled'], true); $isMeeting = $task->type->code === 'meeting'; $canToggleDone = ! $isMeeting || $task->meeting?->organizer_id === $this->currentPersonId(); $projectColor = $task->projectColorOrNeutral(); @endphp