Dynamic Provider Integration:
- Replace hardcoded provider arrays with database-driven payment_providers lookup
- Display provider status (Active/Inactive) in selection dropdowns
- Add provider_variant_id and provider_product_id input fields to plan configuration
- Update EditPlan and SubscriptionForm with dynamic provider selection
- Add empty state handling with helpful guidance when no providers exist
UI/UX Improvements:
- Format billing_cycle_days to readable text (Daily, Weekly, Monthly, Quarterly, Annually)
- Add color-coded badges for billing cycle frequency
- Fix plan_providers and plan_feature_limits count display with eager loading
- Implement intelligent color coding for count indicators
- Add visual status indicators for provider availability
Database Compatibility:
- Fix SQLite strftime() compatibility across all dashboard widgets
- Fix CAST AS REAL syntax in ChurnAnalysis widget
- Add database-agnostic date and cast expression methods
- Support MySQL, SQLite, PostgreSQL, and SQL Server
Bug Fixes:
- Fix null reference error in SubscriptionForm provider_data access
- Add null safety checks for new subscription creation
- Optimize queries with withCount() to prevent N+1 issues
Performance Optimizations:
- Add eager loading with withCount() for relationship counts
- Optimize plan provider and feature limit queries
- Prevent N+1 query issues in resource tables
BREAKING CHANGE: Plan provider configuration now uses dynamic provider options
from payment_providers table instead of hardcoded list.
- Add unified payment provider architecture with contract-based design
- Implement 6 payment providers: Stripe, Lemon Squeezy, Polar, Oxapay, Crypto, Activation Keys
- Create subscription management with lifecycle handling (create, cancel, pause, resume, update)
- Add coupon system with usage tracking and trial extensions
- Build Filament admin resources for payment providers, subscriptions, coupons, and trials
- Implement payment orchestration service with provider registry and configuration management
- Add comprehensive payment logging and webhook handling for all providers
- Create customer analytics dashboard with revenue, churn, and lifetime value metrics
- Add subscription migration service for provider switching
- Include extensive test coverage for all payment functionality