label(trans('filament-actions::export.modal.actions.export.label')); $this->authorize(fn () => auth()->user()->can(Permission::ACTION_SCHEDULE_READ, $server)); $this->action(fn (ScheduleExporterService $service, Schedule $schedule) => response()->streamDownload(function () use ($service, $schedule) { echo $service->handle($schedule); }, 'schedule-' . str($schedule->name)->kebab()->lower()->trim() . '.json')); } }