query("month", Carbon::now()->englishMonth)); $yearPeriod = $yearPeriodRetriever->selected(); $users = User::query() ->orderBy("last_name") ->orderBy("first_name") ->get(); $calendar = $calendarGenerator->generate($yearPeriod, $month); return inertia("Calendar", [ "calendar" => $calendar, "currentMonth" => $month, "users" => UserResource::collection($users), ]); } }