Add sale management feature for admin panel

- Add database migration for sale fields (percentage, active, dates)
- Update API to handle sale operations and bulk updates
- Create SaleManager component for admin interface
- Update FilamentTableV2 to display sale prices on frontend
- Add sale column in admin dashboard
- Implement sale price calculations with strikethrough styling
This commit is contained in:
DaX
2025-07-05 14:48:31 +02:00
parent c0682e1969
commit 0df9d5d294
10 changed files with 354 additions and 5 deletions

View File

@@ -11,4 +11,8 @@ export interface Filament {
status?: string;
created_at?: string; // Using snake_case to match database
updated_at?: string; // Using snake_case to match database
sale_percentage?: number;
sale_active?: boolean;
sale_start_date?: string;
sale_end_date?: string;
}