export const PERMS = {
  dashboard:     'edr_passenger_app:dashboard:view',
  bookings: {
    view:        'edr_passenger_app:bookings:view',
    manage:      'edr_passenger_app:bookings:manage',
    cancel:      'edr_passenger_app:bookings:cancel',
  },
  passengers: {
    view:        'edr_passenger_app:passengers:view',
    manage:      'edr_passenger_app:passengers:manage',
  },
  tickets: {
    view:        'edr_passenger_app:tickets:view',
    manage:      'edr_passenger_app:tickets:manage',
    generate:    'edr_passenger_app:tickets:generate',
  },

  // ── Master Data ────────────────────────────────────────────────
  stations: {
    view:        'edr_passenger_app:stations:view',
    manage:      'edr_passenger_app:stations:manage',
  },
  trains: {
    view:        'edr_passenger_app:trains:view',
    manage:      'edr_passenger_app:trains:manage',
  },
  coaches: {
    view:        'edr_passenger_app:coaches:view',
    manage:      'edr_passenger_app:coaches:manage',
  },
  seats: {
    view:        'edr_passenger_app:seats:view',
    manage:      'edr_passenger_app:seats:manage',
  },
  classes: {
    view:        'edr_passenger_app:classes:view',
    manage:      'edr_passenger_app:classes:manage',
  },
  routes: {
    view:        'edr_passenger_app:routes:view',
    manage:      'edr_passenger_app:routes:manage',
  },
  schedules: {
    view:        'edr_passenger_app:schedules:view',
    manage:      'edr_passenger_app:schedules:manage',
  },

  // ── Tourism ────────────────────────────────────────────────────
  packages: {
    view:        'edr_passenger_app:packages:view',
    manage:      'edr_passenger_app:packages:manage',
  },
  inquiries: {
    view:        'edr_passenger_app:inquiries:view',
    manage:      'edr_passenger_app:inquiries:manage',
  },

  // ── Finance ────────────────────────────────────────────────────
  tariffRates: {
    view:        'edr_passenger_app:tariff_rates:view',
    manage:      'edr_passenger_app:tariff_rates:manage',
  },
  payments: {
    view:        'edr_passenger_app:payments:view',
    manage:      'edr_passenger_app:payments:manage',
    // legacy aliases — still honoured by the backend guards
    viewAll:     'edr_passenger_app:payments:view_all',
    refund:      'edr_passenger_app:payments:refund',
    manageMethods: 'edr_passenger_app:payments:manage_methods',
  },
  paymentMethods: {
    view:        'edr_passenger_app:payment_methods:view',
    manage:      'edr_passenger_app:payment_methods:manage',
  },
  currencies: {
    view:        'edr_passenger_app:currencies:view',
    manage:      'edr_passenger_app:currencies:manage',
  },

  reports: {
    view:        'edr_passenger_app:reports:view',
  },
  fraud: {
    view:        'edr_passenger_app:fraud:view',
    manage:      'edr_passenger_app:fraud:manage',
  },
  audit: {
    view:        'edr_passenger_app:audit:view',
  },
  agents: {
    view:        'edr_passenger_app:agents:view',
    manage:      'edr_passenger_app:agents:manage',
  },
  notifications: {
    send:        'edr_passenger_app:notifications:send',
  },
  admin:         'edr_passenger_app:admin',
} as const;
