validate(); Invoice::create([ 'client_id' => $this->client_id, 'status' => $this->status, 'notes' => $this->notes, 'internal_notes' => $this->notes, ]); $this->reset(); Flux::modal('create-invoice')->close(); $this->dispatch('invoice-created'); } #[Computed] public function clients() { return Client::where('status', 'active')->orderBy('abbreviation')->get(); } }; ?>