diff --git a/app/dashboard/driver/repayment/page.tsx b/app/dashboard/driver/repayment/page.tsx index 90eaca6..f427e1a 100644 --- a/app/dashboard/driver/repayment/page.tsx +++ b/app/dashboard/driver/repayment/page.tsx @@ -1,6 +1,6 @@ import Link from "next/link" import { redirect } from "next/navigation" -import { ArrowRight, Wallet } from "lucide-react" +import { AlertTriangle, ArrowRight, CheckCircle2, Wallet } from "lucide-react" import { DashboardShell } from "@/components/dashboard/dashboard-shell" import { DashboardHeader } from "@/components/dashboard/investor-overview/dashboard-header" @@ -8,9 +8,12 @@ import { ContractSummaryCard } from "@/components/dashboard/driver-hire-purchase import { DriverPaymentForm } from "@/components/dashboard/driver-hire-purchase/driver-payment-form" import { DriverPaymentsTable } from "@/components/dashboard/driver-hire-purchase/driver-payments-table" import { DriverVirtualAccountCard } from "@/components/dashboard/driver-hire-purchase/driver-virtual-account-card" +import { RepaymentScheduleTable } from "@/components/dashboard/driver-hire-purchase/repayment-schedule-table" +import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert" import { Button } from "@/components/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import dbConnect from "@/lib/dbConnect" +import { formatNaira } from "@/lib/currency" import { getSessionFromCookies } from "@/lib/auth/session" import { getDriverContract, getDriverPayments } from "@/lib/services/driver-contracts.service" import { getOrProvisionDriverVirtualAccount } from "@/lib/services/paystack-dva.service" @@ -61,7 +64,7 @@ export default async function DriverRepaymentPage() { No Active Contract - A repayment contract must be assigned before you can make payments. + No active hire-purchase contract is assigned to your driver account yet. Once a contract is assigned, this repayment center will show your vehicle, schedule, arrears, and ownership progress. @@ -132,7 +135,7 @@ export default async function DriverRepaymentPage() {

Repayment Center

- Make weekly fiat NGN repayments for your hire-purchase contract. + Track your active contract, repayment schedule, arrears, overpayments, and ownership progress.