public function toArray(Request $request): array 	{ 		return [ 			'id' => $this->getKey(), 			'product_id' => $this->productParent->id, 			'slugs' => $this->getTranslations($this->getSlugFieldName()), 			'title' => $this->getDefaultTranslation('title'), 			'subtitle' => $this->getDefaultTranslation('subtitle'), 			'year' => $this->year, 			'price' => $this->price, 			'weight' => $this->weight, 			'volume' => $this->volume, 			'in_stock' => $this->in_stock, 			'featured' => $this->featured, 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 			'media' => [ 				'image' => new MediaResource($this->storage()->getFirstFile('images')), 			], 		]; 	}