$this->ticket_num, 'subject' => $this->subject, 'description' => $this->description, 'status' => $this->status, 'room' => $this->room, 'priority' => $this->resource->priority(), 'gallery' => TicketGallery::clientUrls($this->resource), 'customer' => $this->whenLoaded('customer', fn () => ['fullname' => $this->customer->fullname]), 'replies' => ClientTicketReplyResource::collection($this->whenLoaded('reply')), 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]; } }