Actions\Action::make('activate')
->button()
->disabled(fn (Arena $record) => $record->id == $activeVenueId)
->label(fn (Arena $record) => $record->id == $activeVenueId ? __('filament/venues.active') : __('filament/venues.activate'))
->color(fn (Arena $record) => $record->id == $activeVenueId ? 'gray' : 'success')
->action(function (Arena $record) {
Auth::user()->switchArena($record);
Notification::make()
->title(new HtmlString('<span class="font-bold underline">'. $record->title .'</span> is active now!'))
->success()
->send();
})
Actions\Action::make('activate')
->button()
->disabled(fn (Arena $record) => $record->id == $activeVenueId)
->label(fn (Arena $record) => $record->id == $activeVenueId ? __('filament/venues.active') : __('filament/venues.activate'))
->color(fn (Arena $record) => $record->id == $activeVenueId ? 'gray' : 'success')
->action(function (Arena $record) {
Auth::user()->switchArena($record);
Notification::make()
->title(new HtmlString('<span class="font-bold underline">'. $record->title .'</span> is active now!'))
->success()
->send();
})