Update May 12 by Elvis

This commit is contained in:
belviskhoremk
2026-05-12 00:28:37 +00:00
parent b32a70cd0e
commit c4450c993b
37 changed files with 3749 additions and 600 deletions

18
lib/api/admin.ts Normal file
View File

@@ -0,0 +1,18 @@
import { api } from "@/lib/api";
export interface DashboardStats {
revenue_today: number;
revenue_week: number;
revenue_month: number;
orders_pending: number;
bookings_pending: number;
bookings_confirmed: number;
products_count: number;
catalog_value: number;
low_stock_count: number;
new_customers_month: number;
}
export async function getDashboardStats(): Promise<DashboardStats> {
return api.get<DashboardStats>("/admin/stats/overview");
}