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(Perfume $perfume) { $this->canOrAbort('delete perfume'); $perfume->delete(); $this->dispatch('refreshDatatable'); $this->toast('Parfum berhasil dihapus.'); Flux::modals()->close(); } public function render() { return view('livewire.studio.catalog.perfume.index', [ 'pageTitle' => 'Parfum', ]); } }