authorize('billing.manage'); $case = DunningCase::query()->with('subscription.customer')->findOr($id, fn () => abort(404)); $this->id = $case->id; $this->label = $case->subscription?->customer?->name ?? '—'; } public function confirm(): void { $this->authorize('billing.manage'); $this->dispatch('dunning-deadline-extended', id: $this->id, days: (int) $this->days, note: $this->note); $this->closeModal(); } public function render() { return view('livewire.admin.extend-dunning-deadline'); } }