public function isVotingStarted() { //the react page handles both voting and results display. return $this->voting_starts_at !== null && $this->voting_starts_at->isPast(); }