->actions([
Action::make('basket')
->requiresConfirmation()
->icon('heroicon-o-shopping-cart')
->iconButton()
->action(function (Event $record) {
//does not work
//$this->dispatchBrowserEvent('cart-updated');
Notification::make()
->title(__('Added to the basket'))
->body($record->course->name)
->success()
->send();
}),
])
->actions([
Action::make('basket')
->requiresConfirmation()
->icon('heroicon-o-shopping-cart')
->iconButton()
->action(function (Event $record) {
//does not work
//$this->dispatchBrowserEvent('cart-updated');
Notification::make()
->title(__('Added to the basket'))
->body($record->course->name)
->success()
->send();
}),
])