// /media/hf/data/projects/Dawinder/transport/lib/mockData.ts
import { Vehicle, Driver, Trip, Expense, Advance, LedgerEntry, Notification } from '../types';

export const mockVehicles: Vehicle[] = [
  { id: 'v1', registrationNumber: 'MH-12 AB 4532', status: 'active', rcExpiry: '2026-10-15', insuranceExpiry: '2026-06-10', permitExpiry: '2027-01-20', assignedDriverId: 'd1' },
  { id: 'v2', registrationNumber: 'DL-01 GH 9021', status: 'in_trip', rcExpiry: '2027-05-12', insuranceExpiry: '2026-12-01', permitExpiry: '2026-11-15', assignedDriverId: 'd2' },
  { id: 'v3', registrationNumber: 'KA-05 MM 3310', status: 'idle', rcExpiry: '2026-08-20', insuranceExpiry: '2026-07-25', permitExpiry: '2026-09-30' },
  { id: 'v4', registrationNumber: 'RJ-14 CC 1122', status: 'maintenance', rcExpiry: '2025-12-10', insuranceExpiry: '2026-05-30', permitExpiry: '2025-11-05' },
  { id: 'v5', registrationNumber: 'UP-32 XY 8899', status: 'active', rcExpiry: '2027-03-15', insuranceExpiry: '2027-01-10', permitExpiry: '2027-02-28', assignedDriverId: 'd3' },
  { id: 'v6', registrationNumber: 'TN-09 PQ 5566', status: 'in_trip', rcExpiry: '2026-11-05', insuranceExpiry: '2026-09-15', permitExpiry: '2026-10-20', assignedDriverId: 'd4' },
  { id: 'v7', registrationNumber: 'GJ-01 KL 4455', status: 'active', rcExpiry: '2028-01-10', insuranceExpiry: '2027-06-25', permitExpiry: '2027-08-15', assignedDriverId: 'd5' },
  { id: 'v8', registrationNumber: 'WB-02 ZZ 9900', status: 'idle', rcExpiry: '2026-04-12', insuranceExpiry: '2026-03-20', permitExpiry: '2026-05-10' },
  { id: 'v9', registrationNumber: 'MP-04 ST 2233', status: 'in_trip', rcExpiry: '2027-07-07', insuranceExpiry: '2027-05-05', permitExpiry: '2027-06-06', assignedDriverId: 'd6' },
  { id: 'v10', registrationNumber: 'HR-26 DF 7788', status: 'active', rcExpiry: '2026-12-25', insuranceExpiry: '2026-10-30', permitExpiry: '2026-11-20', assignedDriverId: 'd7' },
];

export const mockDrivers: Driver[] = [
  { id: 'd1', name: 'Raju Singh', phone: '+91 9876543210', licenseNumber: 'DL-1420110012345', licenseExpiry: '2028-05-20', aadhaarNumber: 'XXXX-XXXX-1234', walletBalance: 5000, advanceBalance: 2000, assignedVehicleId: 'v1', status: 'active' },
  { id: 'd2', name: 'Manoj Kumar', phone: '+91 9876543211', licenseNumber: 'DL-1420110012346', licenseExpiry: '2027-10-15', aadhaarNumber: 'XXXX-XXXX-2345', walletBalance: 12000, advanceBalance: 0, assignedVehicleId: 'v2', activeTripId: 't2', status: 'active' },
  { id: 'd3', name: 'Suresh Babu', phone: '+91 9876543212', licenseNumber: 'DL-1420110012347', licenseExpiry: '2026-12-10', aadhaarNumber: 'XXXX-XXXX-3456', walletBalance: 8500, advanceBalance: 5000, assignedVehicleId: 'v5', status: 'active' },
  { id: 'd4', name: 'Amit Yadav', phone: '+91 9876543213', licenseNumber: 'DL-1420110012348', licenseExpiry: '2029-01-25', aadhaarNumber: 'XXXX-XXXX-4567', walletBalance: 3000, advanceBalance: 10000, assignedVehicleId: 'v6', activeTripId: 't4', status: 'active' },
  { id: 'd5', name: 'Vikas Tiwari', phone: '+91 9876543214', licenseNumber: 'DL-1420110012349', licenseExpiry: '2026-08-30', aadhaarNumber: 'XXXX-XXXX-5678', walletBalance: 15000, advanceBalance: 0, assignedVehicleId: 'v7', status: 'active' },
  { id: 'd6', name: 'Ramesh Patel', phone: '+91 9876543215', licenseNumber: 'DL-1420110012350', licenseExpiry: '2028-11-12', aadhaarNumber: 'XXXX-XXXX-6789', walletBalance: 4500, advanceBalance: 3000, assignedVehicleId: 'v9', activeTripId: 't6', status: 'active' },
  { id: 'd7', name: 'Dinesh Sharma', phone: '+91 9876543216', licenseNumber: 'DL-1420110012351', licenseExpiry: '2027-04-18', aadhaarNumber: 'XXXX-XXXX-7890', walletBalance: 9000, advanceBalance: 1500, assignedVehicleId: 'v10', status: 'active' },
  { id: 'd8', name: 'Pradeep Yadav', phone: '+91 9876543217', licenseNumber: 'DL-1420110012352', licenseExpiry: '2026-06-22', aadhaarNumber: 'XXXX-XXXX-8901', walletBalance: 0, advanceBalance: 0, status: 'on_leave' },
];

export const mockTrips: Trip[] = [
  { id: 't1', route: 'Delhi → Mumbai', origin: 'Delhi', destination: 'Mumbai', status: 'completed', vehicleId: 'v1', driverId: 'd1', freightAmount: 45000, startDate: '2026-05-10', expectedEndDate: '2026-05-14', completedDate: '2026-05-14' },
  { id: 't2', route: 'Pune → Hyderabad', origin: 'Pune', destination: 'Hyderabad', status: 'in_transit', vehicleId: 'v2', driverId: 'd2', freightAmount: 25000, startDate: '2026-05-28', expectedEndDate: '2026-05-30' },
  { id: 't3', route: 'Chennai → Bengaluru', origin: 'Chennai', destination: 'Bengaluru', status: 'pod_uploaded', vehicleId: 'v5', driverId: 'd3', freightAmount: 12000, startDate: '2026-05-25', expectedEndDate: '2026-05-26' },
  { id: 't4', route: 'Kolkata → Bhubaneswar', origin: 'Kolkata', destination: 'Bhubaneswar', status: 'loaded', vehicleId: 'v6', driverId: 'd4', freightAmount: 18000, startDate: '2026-05-29', expectedEndDate: '2026-05-30' },
  { id: 't5', route: 'Indore → Nagpur', origin: 'Indore', destination: 'Nagpur', status: 'reached_pickup', vehicleId: 'v7', driverId: 'd5', freightAmount: 15000, startDate: '2026-05-30', expectedEndDate: '2026-05-31' },
  { id: 't6', route: 'Ahmedabad → Jaipur', origin: 'Ahmedabad', destination: 'Jaipur', status: 'started', vehicleId: 'v9', driverId: 'd6', freightAmount: 22000, startDate: '2026-05-29', expectedEndDate: '2026-05-31' },
  { id: 't7', route: 'Delhi → Chandigarh', origin: 'Delhi', destination: 'Chandigarh', status: 'assigned', vehicleId: 'v10', driverId: 'd7', freightAmount: 8000, startDate: '2026-06-01', expectedEndDate: '2026-06-01' },
  { id: 't8', route: 'Mumbai → Pune', origin: 'Mumbai', destination: 'Pune', status: 'completed', vehicleId: 'v1', driverId: 'd1', freightAmount: 10000, startDate: '2026-05-15', expectedEndDate: '2026-05-15', completedDate: '2026-05-16' },
  { id: 't9', route: 'Hyderabad → Chennai', origin: 'Hyderabad', destination: 'Chennai', status: 'cancelled', vehicleId: 'v3', driverId: 'd8', freightAmount: 20000, startDate: '2026-05-20', expectedEndDate: '2026-05-22' },
  { id: 't10', route: 'Bengaluru → Kochi', origin: 'Bengaluru', destination: 'Kochi', status: 'created', vehicleId: 'v8', driverId: 'd2', freightAmount: 28000, startDate: '2026-06-02', expectedEndDate: '2026-06-04' },
  { id: 't11', route: 'Lucknow → Kanpur', origin: 'Lucknow', destination: 'Kanpur', status: 'completed', vehicleId: 'v5', driverId: 'd3', freightAmount: 5000, startDate: '2026-05-01', expectedEndDate: '2026-05-01', completedDate: '2026-05-01' },
  { id: 't12', route: 'Patna → Ranchi', origin: 'Patna', destination: 'Ranchi', status: 'pod_uploaded', vehicleId: 'v7', driverId: 'd5', freightAmount: 14000, startDate: '2026-05-26', expectedEndDate: '2026-05-27' },
  { id: 't13', route: 'Surat → Rajkot', origin: 'Surat', destination: 'Rajkot', status: 'in_transit', vehicleId: 'v2', driverId: 'd2', freightAmount: 11000, startDate: '2026-05-29', expectedEndDate: '2026-05-29' },
  { id: 't14', route: 'Guwahati → Shillong', origin: 'Guwahati', destination: 'Shillong', status: 'loaded', vehicleId: 'v9', driverId: 'd6', freightAmount: 9000, startDate: '2026-05-29', expectedEndDate: '2026-05-29' },
  { id: 't15', route: 'Coimbatore → Madurai', origin: 'Coimbatore', destination: 'Madurai', status: 'assigned', vehicleId: 'v10', driverId: 'd7', freightAmount: 7500, startDate: '2026-05-31', expectedEndDate: '2026-05-31' },
];

export const mockExpenses: Expense[] = [
  { id: 'e1', tripId: 't1', driverId: 'd1', category: 'fuel', amount: 15000, description: 'Diesel at HP Pump', status: 'approved', date: '2026-05-11' },
  { id: 'e2', tripId: 't1', driverId: 'd1', category: 'toll', amount: 3500, description: 'Fastag recharge', status: 'approved', date: '2026-05-12' },
  { id: 'e3', tripId: 't2', driverId: 'd2', category: 'food', amount: 800, description: 'Dinner at Dhaba', status: 'pending', date: '2026-05-28' },
  { id: 'e4', tripId: 't2', driverId: 'd2', category: 'fuel', amount: 8000, description: 'Diesel filling', status: 'pending', date: '2026-05-28' },
  { id: 'e5', tripId: 't3', driverId: 'd3', category: 'loading_unloading', amount: 1500, description: 'Labor charges', status: 'approved', date: '2026-05-25' },
  { id: 'e6', tripId: 't4', driverId: 'd4', category: 'maintenance', amount: 4500, description: 'Tyre puncture and oil change', status: 'rejected', date: '2026-05-29' },
  { id: 'e7', tripId: 't5', driverId: 'd5', category: 'toll', amount: 1200, description: 'Toll tax', status: 'approved', date: '2026-05-30' },
  { id: 'e8', tripId: 't6', driverId: 'd6', category: 'fuel', amount: 10000, description: 'Reliance Petrol Pump', status: 'pending', date: '2026-05-29' },
  { id: 'e9', tripId: 't8', driverId: 'd1', category: 'other', amount: 500, description: 'Parking fee', status: 'approved', date: '2026-05-15' },
  { id: 'e10', tripId: 't11', driverId: 'd3', category: 'food', amount: 300, description: 'Lunch', status: 'approved', date: '2026-05-01' },
  { id: 'e11', tripId: 't12', driverId: 'd5', category: 'loading_unloading', amount: 2000, description: 'Unloading at warehouse', status: 'approved', date: '2026-05-27' },
  { id: 'e12', tripId: 't13', driverId: 'd2', category: 'fuel', amount: 4000, description: 'Diesel', status: 'pending', date: '2026-05-29' },
  { id: 'e13', tripId: 't14', driverId: 'd6', category: 'toll', amount: 800, description: 'Toll plaza', status: 'pending', date: '2026-05-29' },
  { id: 'e14', tripId: 't1', driverId: 'd1', category: 'maintenance', amount: 2000, description: 'Headlight repair', status: 'approved', date: '2026-05-13' },
  { id: 'e15', tripId: 't3', driverId: 'd3', category: 'fuel', amount: 3000, description: 'Fuel', status: 'approved', date: '2026-05-25' },
  { id: 'e16', tripId: 't4', driverId: 'd4', category: 'food', amount: 600, description: 'Meals', status: 'pending', date: '2026-05-29' },
  { id: 'e17', tripId: 't6', driverId: 'd6', category: 'other', amount: 1000, description: 'Challan', status: 'rejected', date: '2026-05-29' },
  { id: 'e18', tripId: 't8', driverId: 'd1', category: 'fuel', amount: 2500, description: 'Diesel', status: 'approved', date: '2026-05-15' },
  { id: 'e19', tripId: 't12', driverId: 'd5', category: 'toll', amount: 1500, description: 'Tolls', status: 'approved', date: '2026-05-26' },
  { id: 'e20', tripId: 't14', driverId: 'd6', category: 'food', amount: 400, description: 'Dinner', status: 'pending', date: '2026-05-29' },
];

export const mockLedgerEntries: LedgerEntry[] = [
  { id: 'l1', driverId: 'd1', date: '2026-05-01', type: 'credit', amount: 20000, description: 'Salary for April' },
  { id: 'l2', driverId: 'd1', date: '2026-05-05', type: 'debit', amount: 5000, description: 'Salary Advance' },
  { id: 'l3', driverId: 'd1', date: '2026-05-16', type: 'credit', amount: 2000, description: 'Trip Incentive (t1)', referenceId: 't1' },
  { id: 'l4', driverId: 'd2', date: '2026-05-01', type: 'credit', amount: 22000, description: 'Salary for April' },
  { id: 'l5', driverId: 'd2', date: '2026-05-28', type: 'debit', amount: 10000, description: 'Trip Advance (t2)', referenceId: 't2' },
];

export const mockNotifications: Notification[] = [
  { id: 'n1', type: 'compliance', message: 'Vehicle RJ-14 CC 1122 insurance expired!', date: '2026-05-30', isRead: false },
  { id: 'n2', type: 'trip', message: 'Trip t3 POD pending upload.', date: '2026-05-27', isRead: false },
  { id: 'n3', type: 'financial', message: 'Pending settlement for Driver Amit Yadav.', date: '2026-05-29', isRead: true },
  { id: 'n4', type: 'compliance', message: 'Vehicle MH-12 AB 4532 insurance expiring in 12 days.', date: '2026-05-29', isRead: false },
];
