$this->id, 'name' => $this->title, 'created_by' => $this->created_by, 'description' => $this->description, 'duration' => $this->estimated_time, 'estimated_duration' => $this->pricequote_time, 'time_worked' => $this->tracked_time, 'is_finished' => $this->is_finished, 'starts_at' => $this->created_at, 'deadline' => $this->deadline, 'project_code' => ($this->project) ? $this->project->code . ' ' . $this->project->name : null, 'team' => ($this->team) ?: null, 'employees' => UserResource::collection($this->usersOutsideTeam), 'subtasks' => SubTaskResource::collection($this->subtasks), 'files' => AttachmentResource::collection($this->attachments), 'color' => $this->color, ]; } }