Submit button when editing table data

Hi, I am new to laravel and filament, in a table I have several fields that can be updated such as date and some booleans: After some states have been updated I want to send customers a mail with an update regarding their order. Problem is that I do not want these mails to be directly sent and I'd rather have a submit button in the corner that the changes to the table can be submitted to prevent incorrect mails being send. What would be a good method doing this, here is an example of one field that is being updated:
ToggleColumn::make('no_longer_available')->label("No Longer Available")->afterStateUpdated(function ($record) {
if ($record->no_longer_available == true) {
$this->orderNotificationService->notifyCustomerNLA($record->order_id, $record->id);

}
}),
ToggleColumn::make('no_longer_available')->label("No Longer Available")->afterStateUpdated(function ($record) {
if ($record->no_longer_available == true) {
$this->orderNotificationService->notifyCustomerNLA($record->order_id, $record->id);

}
}),
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server