// Mock data for the daily ops dashboard

window.OPS_DATA = {
  business: {
    name: 'Trattoria del Sole',
    date: 'Saturday, April 25',
    dayStartedAt: '11:30',
    dayDurationMins: 4 * 60 + 18, // 4h 18m so far
  },

  kpis: {
    revenue: 2847.50,
    revenueGoal: 4500,
    revenueLastWeek: 2640.00,
    covers: 64,
    coversGoal: 110,
    coversLastWeek: 71,
    tablesOpen: 7,
    tablesTotal: 18,
    avgTicket: 44.49,
  },

  hourly: [
    // Lunch service mostly done, dinner ramping up
    { hour: '11', revenue: 0 },
    { hour: '12', revenue: 480 },
    { hour: '13', revenue: 720 },
    { hour: '14', revenue: 410 },
    { hour: '15', revenue: 180 },
    { hour: '16', revenue: 90 },
    { hour: '17', revenue: 240 },
    { hour: '18', revenue: 580 },
    { hour: '19', revenue: 147 },
    { hour: '20', revenue: 0 },
    { hour: '21', revenue: 0 },
    { hour: '22', revenue: 0 },
  ],

  shifts: [
    { id: 1, name: 'Marco Riva',     section: 'Terrace',     clockIn: '11:00', hoursWorked: 4.8, tables: ['A1', 'A2'],       status: 'active' },
    { id: 2, name: 'Sofia Greco',    section: 'Main hall',   clockIn: '11:00', hoursWorked: 4.8, tables: ['B2'],             status: 'active' },
    { id: 3, name: 'Luca Bianchi',   section: 'Main hall',   clockIn: '11:30', hoursWorked: 4.3, tables: ['A4', 'B4'],       status: 'break' },
    { id: 4, name: 'Elena Costa',    section: 'Bar',         clockIn: '12:00', hoursWorked: 3.8, tables: ['B1', 'B2'],       status: 'active' },
    { id: 5, name: 'Alessandro Conti', section: 'Terrace',   clockIn: '17:00', hoursWorked: 0.3, tables: [],                 status: 'active' },
  ],

  scheduledShifts: [
    { id: 6, name: 'Giulia Ferri',   section: 'Main hall',   scheduledAt: '18:00' },
    { id: 7, name: 'Paolo Mancini',  section: 'Bar',         scheduledAt: '18:30' },
  ],

  reservations: [
    { id: 1, time: '19:00', name: 'Bianchi',   guests: 4, table: 'A1', notes: 'Anniversary' },
    { id: 2, time: '19:30', name: 'Romano',    guests: 2, table: 'B3', notes: '' },
    { id: 3, time: '20:00', name: 'De Luca',   guests: 6, table: 'C1', notes: 'High chair' },
    { id: 4, time: '20:00', name: 'Ferrari',   guests: 2, table: '—',  notes: 'VIP' },
    { id: 5, time: '20:30', name: 'Russo',     guests: 8, table: 'C2', notes: 'Birthday' },
    { id: 6, time: '21:00', name: 'Marino',    guests: 3, table: 'A3', notes: '' },
  ],

  recentMessages: [
    { id: 1, to: 'Marco Riva',   text: 'Come see me',          sentAt: '15:42', read: true  },
    { id: 2, to: 'Everyone',     text: 'Specials updated — see kitchen', sentAt: '15:10', read: true },
    { id: 3, to: 'Luca Bianchi', text: 'Table A4 needs cleaning', sentAt: '14:55', read: false },
  ],

  presets: [
    'Come see me',
    'Table __ needs you',
    'Table __ needs cleaning',
    'Take a break',
  ],
};
