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