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

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:laugh',
      order: 1000,
      title: $t('page.userlog.title'),
      authority: ['super', 'admin'],
    },
    name: 'Userlog',
    path: '/userlog',
    children: [
      {
        name: 'Userlist',
        path: '/userlist',
        component: () => import('#/views/userlog/userlist/index.vue'),
        meta: {
          affixTab: true,
          icon: 'lucide:list',
          title: $t('page.userlog.userlist'),
        },
      },
      {
        name: 'Assetlog',
        path: '/assetlog',
        component: () => import('#/views/userlog/assetlog/index.vue'),
        meta: {
          affixTab: true,
          icon: 'solar:stars-bold',
          title: $t('page.userlog.assetlog'),
        },
      },
      {
        name: 'EventLog',
        path: '/eventlog',
        component: () => import('#/views/userlog/eventlog/index.vue'),
        meta: {
          affixTab: true,
          icon: 'lucide:apple',
          title: $t('page.userlog.eventlog'),
        },
      },
      {
        name: 'OrderLog',
        path: '/orderlog',
        component: () => import('#/views/userlog/orderlog/index.vue'),
        meta: {
          affixTab: true,
          icon: 'solar:chat-round-money-bold',
          title: $t('page.userlog.orderlog'),
        },
      },
      
    ],
  },
];

export default routes;
