export default function createRoute({
  path,
  icon,
  label,
  order,
  scopes,
}) {
  return {
    component: () => import('@/recruits/layouts/main-view.vue'),
    path,
    children: [
      {
        component: () => import('@/recruits/layouts/basic-list-layout.vue'),
        path: 'categories',
        children: [
          {
            name: 'reports',
            component: () => import('@/recruits/components/reports'),
            path: '',
            meta: {
              label,
              place: 'drawer',
              icon,
              order,
              scopes,
            }
          }
        ],
      },
      {
        component: () => import('@/recruits/layouts/tabbed-card-layout'),
        path: 'list/:id',
        meta: {
          tabs: [
            // {
            //   name: 'Ручные',
            //   path: 'reports-manual',
            // },
            // {
            //   name: 'Автоматические',
            //   path: 'reports-automatic',
            //   disabled: true,
            // }
          ]
        },
        children: [
          {
            name: 'reports-manual',
            components: {
              masthead: () => import('@/recruits/components/reports/list/masthead.vue'),
              default: () => import('@/recruits/components/reports/list')
            },
            path: '',
            meta: {
              type: 'manual',
              label,
            },
          },
          {
            name: 'reports-automatic',
            components: {
              masthead: () => import('@/recruits/components/reports/list/masthead.vue'),
              default: () => import('@/recruits/components/reports/list')
            },
            path: 'automatic',
            meta: {
              type: 'automatic',
              label,
            },
          }
        ]
      }
    ]
  };
}