record; Activity::event('server:schedule.update') ->property('name', $schedule->name) ->log(); } protected function mutateFormDataBeforeSave(array $data): array { $data['next_run_at'] = ScheduleResource::getNextRun( $data['cron_minute'], $data['cron_hour'], $data['cron_day_of_month'], $data['cron_month'], $data['cron_day_of_week'] ); return $data; } protected function getHeaderActions(): array { return [ Actions\DeleteAction::make() ->after(function ($record) { Activity::event('server:schedule.delete') ->property('name', $record->name) ->log(); }), $this->getSaveFormAction()->formId('form')->label('Save'), $this->getCancelFormAction()->formId('form'), ]; } public function getBreadcrumbs(): array { return []; } protected function getFormActions(): array { return []; } }