public function toArray(Request $request): array 	{ 		$storage = $this->storage();  		return [ 			'id' => $this->getKey(), 			'product_id' => $this->productParent->id, 			'slugs' => $this->getTranslations($this->getSlugFieldName()), 			'title' => $this->getDefaultTranslation('title'), 			'subtitle' => $this->getDefaultTranslation('subtitle'), 			'body' => $this->getDefaultTranslation('body'), 			'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($storage->getFirstFile('images')), 				'images' => MediaResource::collection($storage->files('images')), 				'certificates' => MediaResource::collection($storage->files('certificates')), 			], 		]; 	}