const all = (t)=>{
	return [
    {
      name: 'All User',
      route: '/administrator/allUser',
      icon: 'yonghu',
      expandIcon: 'icon-xiala',
      key: 'sub1',
      isShow: true
      // children: [
      //         {
      //             name:'User Management',
      //             route:'/home/excil1',
      //             icon:'',
      //             key:'/home/excil22',
      //             isShow:true,
      //         },
      //         {
      //             code:'ROLE_MANAGER',
      //             name:'Access Permission',
      //             route:'/home/excil2',
      //             icon:'',
      //             key:'/home/excil33',
      //             isShow:true,
      //         },
      //     ],
    },
    {
      name: 'Design Frequency',
      route: '/administrator/testClickData',
      icon: 'shenpi',
      expandIcon: 'icon-xiala',
      key: 'sub2',
      isShow: true
    },
    {
      name: 'Trial User',
      icon: 'usetime',
      expandIcon: 'icon-xiala',
      key: 'sub3',
      isShow: true,
      children: [
        {
          name: 'All Trial User',
          route: '/administrator/trialAllUser',
          icon: 'usetime',
          key: 'sub3-1',
          isShow: true
        },
        {
          name: 'Trial User Approval',
          route: '/administrator/trialApproval',
          icon: 'usetime',
          key: 'sub3-2',
          isShow: true
        },
        {
          name: 'Trial User CHART',
          route: '/administrator/trialUserCountry',
          icon: '',
          key: 'sub3-3',
          isShow: true
        },
        {
          name: 'Conversion Rate',
          route: '/administrator/trialUserConversionRateChart',
          icon: '',
          key: 'sub3-4',
          isShow: true
        }
      ]
    },
    {
      name: 'Function Use CHART',
      route: '/administrator/recentActiveChart',
      icon: 'usetime',
      key: 'sub4',
      isShow: true
    },
    {
      name: 'Active User',
      icon: 'usetime',
      route: '/administrator/recentActiveUser',
      key: 'sub5',
      isShow: true
    },
    {
      name: 'New User',
      icon: 'usetime',
      expandIcon: 'icon-xiala',
      key: 'sub6',
      isShow: true,
      children: [
        {
          name: 'New User List',
          route: '/administrator/recentNewUser',
          icon: '',
          key: 'sub6-1',
          isShow: true
        },
        {
          name: 'New User CHART',
          route: '/administrator/recentNewUserChart',
          icon: '',
          key: 'sub6-2',
          isShow: true
        }
      ]
    },
    {
      name: 'Events',
      icon: 'usetime',
      key: 'sub9',
      expandIcon: 'icon-xiala',
      isShow: true,
      children: [
        {
          name: 'Questionnaire Survey',
          route: '/administrator/questionnaire',
          icon: '',
          key: 'sub9-1',
          isShow: true
        }
        // {
        // 	code:'ROLE_MANAGER',
        // 	name:'Access Permission',
        // 	route:'/home/excil2',
        // 	icon:'',
        // 	key:'/home/excil33',
        // 	isShow:true,
        // },
      ]
    },
    {
      name: 'Affiliate',
      icon: 'usetime',
      expandIcon: 'icon-xiala',
      key: 'sub10',
      isShow: true,
      children: [
        {
          name: 'Approval Affiliate',
          route: '/administrator/affiliateAudit',
          icon: '',
          key: 'sub10-1',
          isShow: true
        },
        {
          name: 'Affiliate Referral',
          route: '/administrator/affiliateReferral',
          icon: '',
          key: 'sub10-2',
          isShow: true
        }
      ]
    },
    {
      name: 'Transaction',
      icon: 'usetime',
      expandIcon: 'icon-xiala',
      key: 'sub11',
      isShow: true,
      children: [
        {
          name: 'Transaction Record',
          route: '/administrator/TransactionTable',
          icon: '',
          key: 'sub11-1',
          isShow: true
        }
        // {
        // 	code:'ROLE_MANAGER',
        // 	name:'Access Permission',
        // 	route:'/home/excil2',
        // 	icon:'',
        // 	key:'/home/excil33',
        // 	isShow:true,
        // },
      ]
    },
    {
      name: 'Promotion Code',
      icon: 'usetime',
      route: '/administrator/coupons',
      key: 'sub12',
      isShow: true
    },
    {
      name: 'Organization',
      icon: 'usetime',
      route: '/administrator/organization',
      key: 'sub13',
      isShow: true
    },
    {
      name: 'Organization Plan',
      icon: 'usetime',
      route: '/administrator/subscriptionPlan',
      key: 'sub14',
      isShow: true
    }
  ]
}
const schoolOrEnterprise = (t) =>{
	return[
		{
			name:t('admin.allUser'),
			route:'/administrator/allUserSE',
			icon:'usetime',
			key:'sub1',
			isShow:true,
		},
		{
			name:t('admin.UserData'),
			route:'/administrator/testClickDataSE',
			icon:'usetime',
			key:'sub2',
			isShow:true,
		},{
			name:t('admin.FunctionUseCHART'),
			route:'/administrator/recentActiveChartSE',
			icon:'usetime',
			key:'sub3',
			isShow:true,
		},
		// {
		// 	name:'Design Frequency',
		// 	icon:'usetime',
		// 	route:'/administrator/testClickDataSE',
		// 	key:'sub4',
		// 	isShow:true,
		// },
		// {
		// 	name:'Credits Detail',
		// 	route:'/administrator/generateFrequencySE',
		// 	icon:'usetime',
		// 	key:'sub3',
		// 	isShow:true,
		// }
		// ,{
		// 	name:'Coupons',
		// 	icon:'usetime',
		// 	route:'/administrator/coupons',
		// 	key:'sub12',
		// 	isShow:true,
		// },
		// {
		// 	name:'Design Frequency',
		// 	icon:'usetime',
		// 	route:'/administrator/designFrequency',
		// 	key:'sub5',
		// 	isShow:true,
		// },
		// {
		// 	name:'Generate Frequency',
		// 	icon:'usetime',
		// 	route:'/administrator/generateFrequency',
		// 	key:'sub5',
		// 	isShow:true,
		// }
	]
}
export default {all , schoolOrEnterprise}