export interface AdminStats { totalUsers: number totalPlumbers: number totalOrders: number totalRevenue: number pendingOrders: number activeServices: number monthlyGrowth: number customerSatisfaction: number } export interface UserManagement { id: string name: string email: string role: "customer" | "plumber" | "admin" status: "active" | "suspended" | "pending" joinDate: string lastActive: string totalOrders?: number totalEarnings?: number } export interface OrderManagement { id: string customerName: string type: "product" | "service" status: "pending" | "processing" | "completed" | "cancelled" total: number date: string plumberName?: string } export interface ProductManagement { id: string name: string category: string price: number stock: number status: "active" | "inactive" sales: number lastUpdated: string } export interface ComplaintManagement { id: string customerName: string subject: string status: "open" | "in-progress" | "resolved" priority: "low" | "medium" | "high" date: string assignedTo?: string } // Mock data export const adminStats: AdminStats = { totalUsers: 1247, totalPlumbers: 89, totalOrders: 3456, totalRevenue: 125000, pendingOrders: 23, activeServices: 45, monthlyGrowth: 12.5, customerSatisfaction: 4.7, } export const users: UserManagement[] = [ { id: "1", name: "أحمد محمد", email: "ahmed@example.com", role: "customer", status: "active", joinDate: "2024-01-15", lastActive: "2024-03-08", totalOrders: 12, }, { id: "2", name: "محمد السباك", email: "mohammed@example.com", role: "plumber", status: "active", joinDate: "2024-02-01", lastActive: "2024-03-08", totalEarnings: 15000, }, { id: "3", name: "فاطمة علي", email: "fatima@example.com", role: "customer", status: "pending", joinDate: "2024-03-05", lastActive: "2024-03-07", totalOrders: 2, }, ] export const orders: OrderManagement[] = [ { id: "ORD-001", customerName: "أحمد محمد", type: "product", status: "completed", total: 450, date: "2024-03-08", }, { id: "SRV-001", customerName: "سارة أحمد", type: "service", status: "processing", total: 200, date: "2024-03-08", plumberName: "محمد السباك", }, { id: "ORD-002", customerName: "علي حسن", type: "product", status: "pending", total: 320, date: "2024-03-07", }, ] export const products: ProductManagement[] = [ { id: "1", name: "أنابيب PVC", category: "أنابيب", price: 25, stock: 150, status: "active", sales: 89, lastUpdated: "2024-03-08", }, { id: "2", name: "صنابير حمام", category: "صنابير", price: 120, stock: 45, status: "active", sales: 34, lastUpdated: "2024-03-07", }, { id: "3", name: "مضخة مياه", category: "مضخات", price: 800, stock: 0, status: "inactive", sales: 12, lastUpdated: "2024-03-05", }, ] export const complaints: ComplaintManagement[] = [ { id: "CMP-001", customerName: "أحمد محمد", subject: "تأخير في التسليم", status: "open", priority: "medium", date: "2024-03-08", }, { id: "CMP-002", customerName: "فاطمة علي", subject: "جودة المنتج", status: "in-progress", priority: "high", date: "2024-03-07", assignedTo: "فريق الجودة", }, { id: "CMP-003", customerName: "محمد حسن", subject: "مشكلة في الدفع", status: "resolved", priority: "low", date: "2024-03-06", }, ]