import { RouterView } from 'vue-router';

export default {
    path: '/agency',
    name: 'Agency',
    meta: {
        title: 'agency',
        icon: 'garage_home',
        moduleName: 'Agency',
    },
    component: RouterView,
    redirect: { name: 'AgencyCard' },
    menus: {
        main: [],
        card: ['AgencyBasicData', 'AgencyModes', 'AgencyWorkCenters', 'AgencyLog'],
    },
    children: [
        {
            path: '/agency/:id',
            name: 'AgencyCard',
            component: () => import('src/pages/Route/Agency/Card/AgencyCard.vue'),
            redirect: { name: 'AgencySummary' },
            children: [
                {
                    name: 'AgencySummary',
                    path: 'summary',
                    meta: {
                        title: 'summary',
                        icon: 'view_list',
                    },
                    component: () =>
                        import('src/pages/Route/Agency/Card/AgencySummary.vue'),
                },
                {
                    name: 'AgencyBasicData',
                    path: 'basic-data',
                    meta: {
                        title: 'basicData',
                        icon: 'vn:settings',
                    },
                    component: () =>
                        import('pages/Route/Agency/Card/AgencyBasicData.vue'),
                },
                {
                    path: 'workCenter',
                    name: 'AgencyWorkCenterCard',
                    redirect: { name: 'AgencyWorkCenters' },
                    children: [
                        {
                            path: '',
                            name: 'AgencyWorkCenters',
                            meta: {
                                icon: 'apartment',
                                title: 'workCenters',
                            },
                            component: () =>
                                import(
                                    'src/pages/Route/Agency/Card/AgencyWorkcenter.vue'
                                ),
                        },
                    ],
                },
                {
                    path: 'modes',
                    name: 'AgencyModesCard',
                    redirect: { name: 'AgencyModes' },
                    children: [
                        {
                            path: '',
                            name: 'AgencyModes',
                            meta: {
                                icon: 'format_list_bulleted',
                                title: 'modes',
                            },
                            component: () =>
                                import('src/pages/Route/Agency/Card/AgencyModes.vue'),
                        },
                    ],
                },
                {
                    name: 'AgencyLog',
                    path: 'log',
                    meta: {
                        title: 'log',
                        icon: 'history',
                    },
                    component: () => import('src/pages/Route/Agency/Card/AgencyLog.vue'),
                },
            ],
        },
    ],
};
