applyGeoRules(); } protected function getHeaderActions(): array { return [ DeleteAction::make() ->after(fn () => $this->applyGeoRules()), ]; } protected function applyGeoRules(): void { try { app(GeoBlockService::class)->applyCurrentRules(); Notification::make() ->title(__('Geo rules applied')) ->success() ->send(); } catch (Exception $e) { Notification::make() ->title(__('Geo rules apply failed')) ->body($e->getMessage()) ->danger() ->send(); } } }