app(CsvDownloader::class), self::Xlsx => app(XlsxDownloader::class), }; } public function getDownloadNotificationAction(Export $export): NotificationAction { return NotificationAction::make("download_{$this->value}") ->label(__("filament-actions::export.notifications.completed.actions.download_{$this->value}.label")) ->url(route('filament.exports.download', ['export' => $export, 'format' => $this], absolute: false), shouldOpenInNewTab: true) ->markAsRead(); } }