get('notification'); if ($hasNotification) { $this->js(<<<'JS' const url = new URL(window.location); url.search = ''; window.history.replaceState({}, '', url); JS); $this->toast($hasNotification); } } public function delete(Bottle $bottle): void { $this->canOrAbort('delete bottle'); $bottle->delete(); $this->dispatch('refreshDatatable'); $this->toast('Botol berhasil dihapus.'); Flux::modals()->close(); } public function render(): View { return view('livewire.studio.catalog.bottle.index', [ 'pageTitle' => 'Botol', ]); } }