export type Product = {
  id: string;
  name: string;
  nameBn: string;
  category: string;
  price: number;
  stock: number;
  unit: string;
  barcode: string;
};

export type CartItem = Product & { quantity: number };

export type Sale = {
  id: string;
  items: { name: string; quantity: number; price: number }[];
  total: number;
  discount: number;
  paid: number;
  change: number;
  paymentMethod: string;
  date: string;
  customer?: string;
};

export const categories = [
  "সব পণ্য",
  "ইলেকট্রিক ওয়্যার",
  "সুইচ ও সকেট",
  "লাইট ও বাল্ব",
  "ফ্যান",
  "পাইপ ও ফিটিংস",
  "হার্ডওয়্যার টুলস",
  "পেইন্ট",
  "সিমেন্ট ও রড",
];

export const products: Product[] = [
  { id: "1", name: "BRB Wire 1.3mm", nameBn: "বিআরবি তার ১.৩মিমি", category: "ইলেকট্রিক ওয়্যার", price: 2850, stock: 45, unit: "কয়েল", barcode: "1001" },
  { id: "2", name: "BRB Wire 2.5mm", nameBn: "বিআরবি তার ২.৫মিমি", category: "ইলেকট্রিক ওয়্যার", price: 4500, stock: 30, unit: "কয়েল", barcode: "1002" },
  { id: "3", name: "Paradise Wire 1.3mm", nameBn: "প্যারাডাইস তার ১.৩মিমি", category: "ইলেকট্রিক ওয়্যার", price: 2650, stock: 50, unit: "কয়েল", barcode: "1003" },
  { id: "4", name: "Anchor Switch", nameBn: "অ্যাঙ্কর সুইচ", category: "সুইচ ও সকেট", price: 120, stock: 200, unit: "পিস", barcode: "2001" },
  { id: "5", name: "MK Switch", nameBn: "এমকে সুইচ", category: "সুইচ ও সকেট", price: 250, stock: 150, unit: "পিস", barcode: "2002" },
  { id: "6", name: "2 Pin Socket", nameBn: "২ পিন সকেট", category: "সুইচ ও সকেট", price: 85, stock: 300, unit: "পিস", barcode: "2003" },
  { id: "7", name: "3 Pin Socket", nameBn: "৩ পিন সকেট", category: "সুইচ ও সকেট", price: 150, stock: 180, unit: "পিস", barcode: "2004" },
  { id: "8", name: "LED Bulb 9W", nameBn: "এলইডি বাল্ব ৯ওয়াট", category: "লাইট ও বাল্ব", price: 150, stock: 500, unit: "পিস", barcode: "3001" },
  { id: "9", name: "LED Bulb 15W", nameBn: "এলইডি বাল্ব ১৫ওয়াট", category: "লাইট ও বাল্ব", price: 220, stock: 300, unit: "পিস", barcode: "3002" },
  { id: "10", name: "LED Tube Light 20W", nameBn: "এলইডি টিউব লাইট ২০ওয়াট", category: "লাইট ও বাল্ব", price: 350, stock: 100, unit: "পিস", barcode: "3003" },
  { id: "11", name: "Ceiling Fan 56\"", nameBn: "সিলিং ফ্যান ৫৬\"", category: "ফ্যান", price: 2800, stock: 25, unit: "পিস", barcode: "4001" },
  { id: "12", name: "Exhaust Fan 12\"", nameBn: "এক্সস্ট ফ্যান ১২\"", category: "ফ্যান", price: 1200, stock: 40, unit: "পিস", barcode: "4002" },
  { id: "13", name: "PVC Pipe 1\"", nameBn: "পিভিসি পাইপ ১\"", category: "পাইপ ও ফিটিংস", price: 180, stock: 200, unit: "পিস", barcode: "5001" },
  { id: "14", name: "PVC Elbow 1\"", nameBn: "পিভিসি এলবো ১\"", category: "পাইপ ও ফিটিংস", price: 25, stock: 500, unit: "পিস", barcode: "5002" },
  { id: "15", name: "Hammer", nameBn: "হাতুড়ি", category: "হার্ডওয়্যার টুলস", price: 350, stock: 60, unit: "পিস", barcode: "6001" },
  { id: "16", name: "Screwdriver Set", nameBn: "স্ক্রু ড্রাইভার সেট", category: "হার্ডওয়্যার টুলস", price: 450, stock: 35, unit: "সেট", barcode: "6002" },
  { id: "17", name: "Plier", nameBn: "প্লায়ার", category: "হার্ডওয়্যার টুলস", price: 280, stock: 80, unit: "পিস", barcode: "6003" },
  { id: "18", name: "Elite Paint 1L", nameBn: "এলিট পেইন্ট ১লি.", category: "পেইন্ট", price: 550, stock: 70, unit: "লিটার", barcode: "7001" },
  { id: "19", name: "Berger Paint 1L", nameBn: "বার্জার পেইন্ট ১লি.", category: "পেইন্ট", price: 750, stock: 45, unit: "লিটার", barcode: "7002" },
  { id: "20", name: "Cement 50kg", nameBn: "সিমেন্ট ৫০কেজি", category: "সিমেন্ট ও রড", price: 520, stock: 100, unit: "বস্তা", barcode: "8001" },
];

export const recentSales: Sale[] = [
  {
    id: "S001",
    items: [
      { name: "বিআরবি তার ১.৩মিমি", quantity: 2, price: 2850 },
      { name: "অ্যাঙ্কর সুইচ", quantity: 10, price: 120 },
    ],
    total: 6900,
    discount: 100,
    paid: 7000,
    change: 200,
    paymentMethod: "নগদ",
    date: "2026-05-02T10:30:00",
    customer: "আব্দুল করিম",
  },
  {
    id: "S002",
    items: [
      { name: "এলইডি বাল্ব ৯ওয়াট", quantity: 20, price: 150 },
      { name: "সিলিং ফ্যান ৫৬\"", quantity: 1, price: 2800 },
    ],
    total: 5800,
    discount: 0,
    paid: 5800,
    change: 0,
    paymentMethod: "বিকাশ",
    date: "2026-05-02T09:15:00",
  },
  {
    id: "S003",
    items: [
      { name: "সিমেন্ট ৫০কেজি", quantity: 10, price: 520 },
    ],
    total: 5200,
    discount: 200,
    paid: 5000,
    change: 0,
    paymentMethod: "নগদ",
    date: "2026-05-01T16:45:00",
    customer: "রহিম উদ্দিন",
  },
  {
    id: "S004",
    items: [
      { name: "হাতুড়ি", quantity: 2, price: 350 },
      { name: "প্লায়ার", quantity: 3, price: 280 },
      { name: "স্ক্রু ড্রাইভার সেট", quantity: 1, price: 450 },
    ],
    total: 1990,
    discount: 0,
    paid: 2000,
    change: 10,
    paymentMethod: "নগদ",
    date: "2026-05-01T14:20:00",
  },
  {
    id: "S005",
    items: [
      { name: "পিভিসি পাইপ ১\"", quantity: 20, price: 180 },
      { name: "পিভিসি এলবো ১\"", quantity: 40, price: 25 },
    ],
    total: 4600,
    discount: 100,
    paid: 4500,
    change: 0,
    paymentMethod: "নগদ",
    date: "2026-05-01T11:00:00",
    customer: "কামাল হোসেন",
  },
];
