const stageOrder = [ 'received', 'orderedByCustomer', 'documentsProcessed', 'paymentApproved', 'rmvRegistration', 'plateReceived', ]; const modelOptions = ['gn125', 'boxer125', 'click150i']; const sriLankaDistricts = [ 'Ampara', 'Anuradhapura', 'Badulla', 'Batticaloa', 'Colombo', 'Galle', 'Gampaha', 'Hambantota', 'Jaffna', 'Kalutara', 'Kandy', 'Kegalle', 'Kilinochchi', 'Kurunegala', 'Mannar', 'Matale', 'Matara', 'Moneragala', 'Mullaitivu', 'Nuwara Eliya', 'Polonnaruwa', 'Puttalam', 'Ratnapura', 'Trincomalee', 'Vavuniya', ]; String stageLabel(String stage) { switch (stage) { case 'received': return 'Received'; case 'orderedByCustomer': return 'Ordered by customer'; case 'documentsProcessed': return 'Documents processed'; case 'paymentApproved': return 'Payment approved'; case 'rmvRegistration': return 'RMV registration'; case 'plateReceived': return 'Plate received'; default: return stage; } } String? nextStage(String stage) { final index = stageOrder.indexOf(stage); if (index < 0 || index >= stageOrder.length - 1) return null; return stageOrder[index + 1]; } String modelLabel(String model) { switch (model) { case 'gn125': return 'GN125'; case 'boxer125': return 'Boxer 125'; case 'click150i': return 'Click 150i'; default: return model; } } String roleLabel(String role) { switch (role) { case 'superAdmin': return 'Super admin'; case 'salesRep': return 'Sales rep'; case 'dealer': return 'Dealer'; default: return role; } } String leaseProviderLabel(String provider) { switch (provider) { case 'gci': return 'GCI'; case 'thirdPartyFinance': return 'Finance'; case 'both': return 'GCI and finance'; default: return provider; } } String planLabel(String planType) { switch (planType) { case 'monthlySpecial': return 'Monthly special'; case 'general': return 'General'; default: return planType; } }