public function toArray(Request $request): array 	{ 		return [ 			'id' => $this->getKey(), 			'is_being_repaired' => $this->is_being_repaired, 			'is_replaced' => $this->when($this->isReclamation(), $this->is_replaced), 			'note' => $this->note, 			'repair_costs' => $this->repair_costs, 			'supplier' => $this->when($this->isReclamation(), $this->supplier), 			'buyer' => new BuyerResource($this->getBuyerDetails()), 			'repair_service' => $this->when(!$this->isReclamation(), new RepairServiceResource($this->getRepairServiceDetails())), 			'author' => new UserPublicResource($this->author->authParent), 			'item' => new BuyerReturnItemResource($this->item), 			'status' => new StatusResource($this->lastStatus->status), 			'comments' => $this->comments_count ?? $this->comments()->count(), 			'media' => MediaResource::collection($this->storage()->files('miscellaneous')), 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}