-
-
+
+ {/* Delete Confirmation Modal */}
+ {deleteModal.type !== null && (
+
+
+
Delete Plan?
+
This will permanently remove the plan. This action cannot be undone.
+
+
+
diff --git a/src/app/admin/settings/page.tsx b/src/app/admin/settings/page.tsx
index 4d25171..bd7558a 100644
--- a/src/app/admin/settings/page.tsx
+++ b/src/app/admin/settings/page.tsx
@@ -125,6 +125,7 @@ export interface CompanySettings {
monthlyPenalty2: number;
monthlyPenalty3: number;
ficoSharePercent: number;
+ freeServiceConditions: { months: number; freeServices: number }[];
description: string;
}[];
rentToOwn: {
@@ -151,6 +152,7 @@ export interface CompanySettings {
profit: number;
ficoRentSharePercent: number;
ficoProfitSharePercent: number;
+ freeServiceConditions: { months: number; freeServices: number }[];
description: string;
}[];
shareEv: {
@@ -179,6 +181,7 @@ export interface CompanySettings {
monthlyPenalty3: number;
totalMonthlySubscription: number;
ficoSharePercent: number;
+ freeServiceConditions: { months: number; freeServices: number }[];
description: string;
}[];
investment: {
@@ -498,6 +501,10 @@ const initialSettings: CompanySettings = {
monthlyPenalty2: 30000,
monthlyPenalty3: 50000,
ficoSharePercent: 50,
+ freeServiceConditions: [
+ { months: 3, freeServices: 2 },
+ { months: 6, freeServices: 4 },
+ ],
description: 'Premium single person rental plan with extra benefits',
},
{
@@ -519,6 +526,10 @@ const initialSettings: CompanySettings = {
monthlyPenalty2: 22000,
monthlyPenalty3: 40000,
ficoSharePercent: 45,
+ freeServiceConditions: [
+ { months: 2, freeServices: 1 },
+ { months: 3, freeServices: 2 },
+ ],
description: 'Standard single person rental plan',
},
{
@@ -540,6 +551,9 @@ const initialSettings: CompanySettings = {
monthlyPenalty2: 18000,
monthlyPenalty3: 30000,
ficoSharePercent: 40,
+ freeServiceConditions: [
+ { months: 2, freeServices: 1 },
+ ],
description: 'Economy single person rental plan',
}
],
@@ -568,6 +582,10 @@ const initialSettings: CompanySettings = {
profit: 20000,
ficoRentSharePercent: 50,
ficoProfitSharePercent: 45,
+ freeServiceConditions: [
+ { months: 3, freeServices: 2 },
+ { months: 6, freeServices: 4 },
+ ],
description: 'Premium rent to own plan with high-end EV',
},
{
@@ -594,6 +612,10 @@ const initialSettings: CompanySettings = {
profit: 15000,
ficoRentSharePercent: 45,
ficoProfitSharePercent: 45,
+ freeServiceConditions: [
+ { months: 2, freeServices: 1 },
+ { months: 3, freeServices: 2 },
+ ],
description: 'Standard rent to own plan',
},
{
@@ -620,6 +642,9 @@ const initialSettings: CompanySettings = {
profit: 15000,
ficoRentSharePercent: 40,
ficoProfitSharePercent: 40,
+ freeServiceConditions: [
+ { months: 2, freeServices: 1 },
+ ],
description: 'Economy rent to own plan',
}
],
@@ -650,6 +675,10 @@ const initialSettings: CompanySettings = {
monthlyPenalty3: 35000,
totalMonthlySubscription: 16800,
ficoSharePercent: 50,
+ freeServiceConditions: [
+ { months: 3, freeServices: 2 },
+ { months: 6, freeServices: 4 },
+ ],
description: 'Premium shared EV with premium bikes',
},
{
@@ -678,6 +707,10 @@ const initialSettings: CompanySettings = {
monthlyPenalty3: 25000,
totalMonthlySubscription: 11200,
ficoSharePercent: 45,
+ freeServiceConditions: [
+ { months: 2, freeServices: 1 },
+ { months: 3, freeServices: 2 },
+ ],
description: 'Standard shared EV plan',
},
{
@@ -706,6 +739,9 @@ const initialSettings: CompanySettings = {
monthlyPenalty3: 20000,
totalMonthlySubscription: 8400,
ficoSharePercent: 40,
+ freeServiceConditions: [
+ { months: 2, freeServices: 1 },
+ ],
description: 'Economy shared EV plan',
}
],
@@ -1127,6 +1163,7 @@ export default function CompanySettingsPage() {
monthlyPenalty2: 22000,
monthlyPenalty3: 40000,
ficoSharePercent: 45,
+ freeServiceConditions: [],
description: '',
} : type === 'rentToOwn' ? {
id: newId,
@@ -1152,6 +1189,7 @@ export default function CompanySettingsPage() {
profit: 15000,
ficoRentSharePercent: 45,
ficoProfitSharePercent: 45,
+ freeServiceConditions: [],
description: '',
} : {
id: newId,
@@ -1179,6 +1217,7 @@ export default function CompanySettingsPage() {
monthlyPenalty3: 25000,
totalMonthlySubscription: 11200,
ficoSharePercent: 45,
+ freeServiceConditions: [],
description: '',
};
if (type === 'singleRent') {