public function update(StoreDiscount $request, Discount $id): RedirectResponse 	{ 		$id->update([ 			'title' => $request->title, 			'period_from' => $request->period_from ? formatTimestamp($request->period_from, 'Y-m-d H:i:s', $request->user()->timezone) : null, 			'period_to' => $request->period_to ? formatTimestamp($request->period_to, 'Y-m-d H:i:s', $request->user()->timezone) : null, 			'amount' => $request->amount, 			'is_percentage' => $request->boolean('is_percentage'), 			'active' => $request->boolean('active'), 			'add_up_with_other_discounts' => $request->boolean('add_up_with_other_discounts'), 		]);  		$id->storeDiscountItems();  		if ($id->type == Discount::GENERAL_DISCOUNT) { 			SetCurrentlyActiveProductDiscountAndLowestPrice::dispatch(); 		}  		return $this->redirectFromSave('discounts.list'); 	}