{{ currentTab === 'dashboard' ? 'Overview Dashboard' : 'Customer Database' }}
{{ currentTab === 'dashboard' ? 'Real-time database statistics & analytics' : 'Manage, search, and update customer profiles' }}
Total Customers
{{ stats.total_customers.toLocaleString() }}
Total Registrations
{{ stats.total_registrations.toLocaleString() }}
Total Est. Revenue
฿{{ stats.total_revenue.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2}) }}
Registrations by Course
Payment Status Breakdown
Course Popularity & Sales Metrics
| Course Name | Registrations Count | Estimated Revenue |
|---|---|---|
| {{ c.course_name }} | {{ c.count.toLocaleString() }} | ฿{{ (c.revenue || 0).toLocaleString(undefined, {maximumFractionDigits: 0}) }} |
| Name (TH / EN) | Nickname | Phone | Registered Courses | Actions | |
|---|---|---|---|---|---|
|
{{ cust.name_th }} {{ cust.surname_th }}
{{ cust.name_en }} {{ cust.surname_en }}
No Name Recorded
|
{{ cust.nickname }} | {{ cust.phone }} | {{ cust.email }} |
{{ c }}
|
|
| No customers found matching the criteria. | |||||
Showing page {{ pagination.page }} of {{ pagination.total_pages }} ({{ pagination.total }} records)
System User Administration
| Username | Role | Created At | Actions |
|---|---|---|---|
| {{ u.username }} | {{ u.role }} | {{ formatDateTime(u.created_at) }} | |
| No system users loaded. | |||