items->sum(fn ($item) => $item->unit_price * $item->quantity); } public function getTotal() { return $this->items->sum(fn ($item) => $item->unit_price * $item->quantity - replaceCurrency($this->form->discount) - $this->voucherDiscount); } }