// Mock data for Payments

export const paymentStats = {
  totalRevenue: 1250000,
  activeSubscriptions: 42,
  frozenAccounts: 3,
  avgRevenuePerUser: 29762,
  revenueGrowth: 12.5,
  subscriptionGrowth: 8.3,
}

export const revenueData = {
  labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
  datasets: [
    {
      name: 'Revenue',
      values: [150000, 180000, 200000, 220000, 250000, 250000],
    },
  ],
}

export const connectionsByPlan = {
  labels: ['1-10', '11-50', '51-100', '100+'],
  datasets: [
    {
      name: 'Customers',
      values: [15, 18, 7, 2],
    },
  ],
}

export const customers = [
  {
    id: 'cust-001',
    name: 'Acme Corporation',
    email: 'billing@acme.com',
    connections: 85,
    status: 'active',
    monthlyAmount: 42500,
    lastPayment: '2024-03-01',
    since: '2023-06-15',
  },
  {
    id: 'cust-002',
    name: 'TechStart LLC',
    email: 'admin@techstart.io',
    connections: 23,
    status: 'active',
    monthlyAmount: 11500,
    lastPayment: '2024-03-05',
    since: '2023-09-20',
  },
  {
    id: 'cust-003',
    name: 'Global Retail',
    email: 'it@globalretail.com',
    connections: 150,
    status: 'active',
    monthlyAmount: 75000,
    lastPayment: '2024-03-01',
    since: '2022-11-01',
  },
  {
    id: 'cust-004',
    name: 'SmallBiz Inc',
    email: 'owner@smallbiz.co',
    connections: 5,
    status: 'frozen',
    monthlyAmount: 2500,
    lastPayment: '2024-01-15',
    since: '2023-12-01',
    frozenReason: 'Payment overdue 60 days',
  },
  {
    id: 'cust-005',
    name: 'Enterprise Solutions',
    email: 'finance@enterprise.com',
    connections: 200,
    status: 'active',
    monthlyAmount: 100000,
    lastPayment: '2024-03-10',
    since: '2022-03-15',
  },
  {
    id: 'cust-006',
    name: 'Startup Labs',
    email: 'hello@startuplabs.dev',
    connections: 12,
    status: 'frozen',
    monthlyAmount: 6000,
    lastPayment: '2024-02-01',
    since: '2024-01-10',
    frozenReason: 'Payment declined',
  },
]

export const frozenAccounts = customers.filter(c => c.status === 'frozen')

export const paymentHistory = [
  {
    id: 'pay-001',
    customerId: 'cust-001',
    customerName: 'Acme Corporation',
    amount: 42500,
    date: '2024-03-01',
    status: 'completed',
    method: 'bank_transfer',
  },
  {
    id: 'pay-002',
    customerId: 'cust-003',
    customerName: 'Global Retail',
    amount: 75000,
    date: '2024-03-01',
    status: 'completed',
    method: 'bank_transfer',
  },
  {
    id: 'pay-003',
    customerId: 'cust-002',
    customerName: 'TechStart LLC',
    amount: 11500,
    date: '2024-03-05',
    status: 'completed',
    method: 'card',
  },
  {
    id: 'pay-004',
    customerId: 'cust-005',
    customerName: 'Enterprise Solutions',
    amount: 100000,
    date: '2024-03-10',
    status: 'completed',
    method: 'bank_transfer',
  },
  {
    id: 'pay-005',
    customerId: 'cust-006',
    customerName: 'Startup Labs',
    amount: 6000,
    date: '2024-03-01',
    status: 'failed',
    method: 'card',
  },
]
