Tio Átila
Tio Átila
FFilament
Created by Tio Átila on 11/25/2024 in #❓┊help
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);
}),
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);
}),
3 replies
FFilament
Created by Tio Átila on 3/3/2024 in #❓┊help
Error after upgrade filament 2 to 3
No description
1 replies
FFilament
Created by Tio Átila on 5/6/2023 in #❓┊help
Shield (Roles & Permissions)
4 replies