Modal confirmation before click save button in modal

Good Morning, everyone how are you?

I need a help, I have the table where i have the edit action.
when click save I nedd to show the modal confirmation before the saving information in database, because if the person accept I need cancel the flow sign the contract and starting the new flow, generating new contract and sending try again to subjects

This is my actualy Action Edit

Tables\Actions\EditAction::make()
                        ->modalWidth(MaxWidth::ScreenExtraLarge)
                        ->closeModalByClickingAway(false)
                        ->closeModalByEscaping(false)
                        
                        ->mutateFormDataUsing(function (array $data) {
                            return PrepareDataToSaveContractInformation::handle($data, $this->record->id);
                        })->after(function ($record) {
                            AuditMoviment::create(
                                [
                                    'user_id' => auth()->user()->id,
                                    'register_id' => $record->id,
                                    'origin' => OriginEnum::STUDENT_CONTRACT_INFO,
                                    'action' => ActionEnum::UPDATED,
                                ]
                            );
                            (new \App\Actions\Student\Contracts\CreateContractStudent())->execute($record);
                        }),
Was this page helpful?