dispatch('withdrawal-confirmed'); $this->closeModal(); } public function render() { $right = WithdrawalRight::for(app(CustomDomainAccess::class)->contractOf($this->customer())); // No figures to read out any more: the refund is the whole amount, so // there is one sentence and nothing to work out from the contract. The // right itself is still resolved here rather than handed in from the // page, because markup is not evidence. return view('livewire.confirm-withdraw', ['right' => $right]); } }