Dashboard
Overview of your ISP operations
{/* KPI Cards */}
{statsLoading ? (
{[1, 2, 3, 4].map((i) => (
))}
) : (
0 ? "+" : ""}${stats.revenue.growth.toFixed(1)}% vs last month`
: "vs last month"
}
href="/payments"
/>
)}
{/* Secondary stats */}
router.push("/tickets?status=OPEN")}
>
Open Tickets
{stats?.support.openTickets ?? 0}
router.push("/tickets?status=IN_PROGRESS")}
>
In-Progress Tickets
{stats?.support.inProgressTickets ?? 0}
router.push("/tasks")}
>
Pending Tasks
{stats?.tasks.pending ?? 0}
{/* Revenue Chart */}
{!statsLoading && (
Revenue Overview
{hasChartData ? (
`₱${(v / 1000).toFixed(0)}k`} />
formatCurrency(Number(v))} />
) : (
Revenue data will appear once payments are recorded.
)}
)}
{/* Recent Tickets */}
Recent Tickets
{recentTickets.length === 0 ? (
No tickets yet
) : (
{recentTickets.map((ticket) => (
router.push("/tickets")}
>
{ticket.subject}
{ticket.client
? `${ticket.client.firstName} ${ticket.client.lastName}`
: "No client"}{" "}
• {formatDateTime(ticket.createdAt)}
{ticket.priority}
{ticket.status}
))}
)}
);
}