© 2026 Hedgehog Software, LLC
Filament\Tables\Actions\Action
extraModalFooterActions
Tables\Actions\Action::make('edit-followup')->label(__('messages.table.action.followup.edit-followup')) ->icon('heroicon-o-pencil-square') ->before(function (Tables\Actions\Action $action, \App\Models\FollowUp $record) { // Authorize the action Gate::forUser(auth()->user())->authorize('update', $record); }) ->modalContent(function(\App\Models\FollowUp $record) { return view( 'followups.input', [ 'input' => $record->input, ], ); }) ->modalSubmitAction(false) ->extraModalFooterActions(function ($action) { return [ Tables\Actions\Action::make('save-form')->label(__('messages.table.action.followup.save-form')) ->action(function(\App\Models\FollowUp $record) { $this->dispatch('vueform.submit.' . $record->input->id); // Close the modal here? }) ->after(function() { // Close the modal here? }) ]; }),