import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:store',
      order: 10,
      title: '门店管理',
    },
    name: 'Store',
    path: '/store',
    children: [
      {
        name: 'StoreList',
        path: '/store/list',
        component: () => import('#/views/store/list/index.vue'),
        meta: {
          icon: 'lucide:list',
          title: '门店列表',
        },
      },
      {
        name: 'StoreHours',
        path: '/store/hours',
        component: () => import('#/views/store/hours/index.vue'),
        meta: {
          icon: 'lucide:clock',
          title: '营业时间',
        },
      },
      {
        name: 'StoreDelivery',
        path: '/store/delivery',
        component: () => import('#/views/store/delivery/index.vue'),
        meta: {
          icon: 'lucide:truck',
          title: '配送设置',
        },
      },
      {
        name: 'StorePickup',
        path: '/store/pickup',
        component: () => import('#/views/store/pickup/index.vue'),
        meta: {
          icon: 'lucide:shopping-bag',
          title: '自提设置',
        },
      },
      {
        name: 'StoreFees',
        path: '/store/fees',
        component: () => import('#/views/store/fees/index.vue'),
        meta: {
          icon: 'lucide:wallet',
          title: '费用设置',
        },
      },
      {
        name: 'StoreStaff',
        path: '/store/staff',
        component: () => import('#/views/store/staff/index.vue'),
        meta: {
          icon: 'lucide:users',
          title: '员工排班',
        },
      },
      {
        name: 'StoreDineIn',
        path: '/store/dine-in',
        component: () => import('#/views/store/dine-in/index.vue'),
        meta: {
          icon: 'lucide:utensils',
          title: '堂食管理',
        },
      },
    ],
  },
];

export default routes;
