export interface DashboardStats {
  branches_count: number;
  users_count: number;
  active_users_count: number;
  accounts_count: number;
  posted_entries_count: number;
  open_fiscal_year: string | null;
  // Sales module
  invoices_count?: number;
  total_revenue?: number;
  total_receivable?: number;
  monthly_revenue?: number;
  // Support module
  open_tasks?: number;
  in_progress_tasks?: number;
  total_tasks?: number;
  // POS module
  pos_open_sessions?: number;
  pos_today_sales?: number;
  pos_today_transactions?: number;
  pos_terminals_count?: number;
}

export interface DashboardData {
  company: DashboardCompanySummary;
  stats: DashboardStats;
}

export interface DashboardCompanySummary {
  id: number;
  name: string;
  name_en: string;
  name_ar: string;
  currency: string;
  email: string | null;
  phone: string | null;
  logo: string | null;
}
