public function toArray(Request $request): array 	{ 		return [ 			'id' => $this->getKey(), 			'product_id' => $this->productParent->id, 			'slugs' => $this->getTranslations($this->getSlugFieldName()), 			'title' => $this->getDefaultTranslation('title'), 			'price' => $this->price, 			'price_per_piece' => $this->getPricePerPiece(), 			'discounted_price' => $this->discounted_price, 			'discounted_price_valid_to' => formatTimestamp($this->discounted_price_valid_to), 			'lowest_price' => $this->productParent->lowest_price, 			'weight' => $this->weight, 			'number_of_items' => $this->number_of_items, 			'code' => $this->code, 			'featured' => $this->featured, 			'available_in_store' => $this->available_in_store, 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 			'emblems' => EmblemResource::collection($this->emblems), 			'media' => [ 				'image' => new MediaResource($this->storage()->getFirstFile('images')), 			], 		]; 	}