public function toArray($request): array 	{ 		$lang = $request->lang ?? 'hr';  		return [ 			'id' => $this->id, 			'name' => $this->getTranslation('name', $lang, $this->name), 			'product_slug' => $this->linkedProduct?->slug, 			'ingredients' => $this->getTranslation('ingredients', $lang, $this->ingredients), 			'preparation_description' => $this->getTranslation('preparation_description', $lang, $this->preparation_description), 			'media' => [ 				'image' => new MediaResource($this->storage()->getFirstFile('image')), 				'pdf' => new MediaResource($this->storage()->getFirstFile('pdf_' . $lang)), 			], 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}