$this->id, 'user_id' => $this->user_id, 'subject' => $this->subject, 'category' => $this->category, 'status' => $this->status, 'user' => $this->whenLoaded('user', fn () => new UserBriefResource($this->user)), 'replies' => $this->whenLoaded('replies', fn () => HelpTicketReplyResource::collection($this->replies)), 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]; } }