label('Refund') ->color('danger') ->icon('heroicon-o-arrow-uturn-left') ->requiresConfirmation() ->visible(fn ($record): bool => !$record->refunded) ->action(function ($record) { $record->update(['refunded' => true]); // TODO: Call Stripe/PayPal API for actual refund }), ]; } }