diff --git a/app/Domain/CalendarGenerator.php b/app/Domain/CalendarGenerator.php index f2c69f3..d1f6cb8 100644 --- a/app/Domain/CalendarGenerator.php +++ b/app/Domain/CalendarGenerator.php @@ -42,7 +42,7 @@ class CalendarGenerator "isToday" => $day->isToday(), "isWeekend" => $day->isWeekend(), "isHoliday" => $holidays->contains($day), - "isFuture" => $day->isToday() || $day >= Carbon::now(), + "isFuture" => $day->isFuture(), "vacations" => $vacationsForDay->pluck("user_id"), "vacationTypes" => $vacationsForDay->pluck("vacationRequest.type", "user_id"), ];