$this->id, 'activity_id' => $this->activity_id, 'name' => $this->name, 'home_field' => $this->home_field ??'', 'home_logo' => $this->home_logo ??'', 'away' => $this->away ??'', 'away_logo' => $this->away_logo ??'', 'game_at' => $this->game_at->format('Y-m-d H:i'), 'little_game_at' => $this->game_at->format('H:i'), 'game_day' => $this->game_at->format('Y-m-d'), 'game_at_comparison_now' => $this->state < 2 ? now()->gte($this->game_at) : true, 'mark' => $this->mark, 'game_score' => $this->score, 'has_guess' => !$this->logs->isEmpty() ? ($this->logs[0]->score):false, 'has_guess_right' => !$this->logs->isEmpty() ? ($this->logs[0]->is_right):false, 'state' => $this->state, ]; } public function with($request) { return ['code' => Response::HTTP_OK, 'message' => '']; } }