// third-party
import { FormattedMessage } from 'react-intl';
import { AiOutlineBarChart } from 'react-icons/ai';
import { AiOutlineDashboard } from 'react-icons/ai';
import { TbListDetails } from 'react-icons/tb';
import { LiaFileInvoiceSolid } from 'react-icons/lia';

// assets
import {
  BorderOutlined,
  BoxPlotOutlined,
  ChromeOutlined,
  DeploymentUnitOutlined,
  GatewayOutlined,
  MenuUnfoldOutlined,
  QuestionOutlined,
  SmileOutlined,
  StopOutlined,
  DashboardOutlined,
  ClockCircleOutlined,
  UserOutlined,
  SettingOutlined
} from '@ant-design/icons';

// icons
const icons = {
  ChromeOutlined,
  MenuUnfoldOutlined,
  BoxPlotOutlined,
  StopOutlined,
  BorderOutlined,
  SmileOutlined,
  GatewayOutlined,
  QuestionOutlined,
  DeploymentUnitOutlined,
  DashboardOutlined,
  ClockCircleOutlined,
  UserOutlined,
  SettingOutlined
};

// ==============================|| MENU ITEMS - SUPPORT ||============================== //

const other = {
  id: 'other',
  title: <FormattedMessage id="MENU" />,
  type: 'group',
  children: [
    // {
    //   id: 'dashboard',
    //   title: <FormattedMessage id="Dashboard" />,
    //   type: 'item',
    //   url: '/dashboard',
    //   icon: icons.DashboardOutlined
    // },
    {
      id: 'orders',
      title: <FormattedMessage id="Orders" />,
      type: 'item',
      url: 'nearle/orders',
      icon: AiOutlineDashboard
    },
    {
      id: 'customers',
      title: <FormattedMessage id="Customers" />,
      type: 'item',
      url: 'nearle/customers',
      icon: icons.UserOutlined
    },
    {
      id: 'reports',
      title: <FormattedMessage id="Reports" />,
      type: 'collapse',
      icon: AiOutlineBarChart,
      children: [
        {
          id: 'OrderSummary',
          title: <FormattedMessage id="OrderSummary" />,
          type: 'item',
          url: 'reports/ordersummary',
          icon: TbListDetails
        },
        {
          id: 'OrdersDetails',
          title: <FormattedMessage id="OrdersDetails" />,
          type: 'item',
          url: 'reports/ordersdetails',
          icon: TbListDetails
        },
        {
          id: 'RiderSummary',
          title: <FormattedMessage id="RiderSummary" />,
          type: 'item',
          url: 'reports/ridersummary',
          icon: TbListDetails
        },
        {
          id: 'RiderLogs',
          title: <FormattedMessage id="RiderLogs" />,
          type: 'item',
          url: 'reports/riderlogs',
          icon: TbListDetails
        }
      ]
    },
    {
      id: 'invoice',
      title: <FormattedMessage id="Invoice" />,
      type: 'item',
      url: '/invoice',
      icon: LiaFileInvoiceSolid
    }

    // {
    //   id: 'account',
    //   title: <FormattedMessage id="Settings" />,
    //   type: 'item',
    //   url: '/accountsettings',
    //   icon: icons.SettingOutlined
    // },
    // {
    //   id: 'documentation',
    //   title: <FormattedMessage id="documentation" />,
    //   type: 'item',
    //   url: 'https://links.codedthemes.com/BQFrl',
    //   icon: icons.QuestionOutlined,
    //   external: true,
    //   target: true,
    //   chip: {
    //     label: 'gitbook',
    //     color: 'secondary',
    //     size: 'small'
    //   }
    // },
    // {
    //   id: 'roadmap',
    //   title: <FormattedMessage id="roadmap" />,
    //   type: 'item',
    //   url: 'https://links.codedthemes.com/RXnKQ',
    //   icon: icons.DeploymentUnitOutlined,
    //   external: true,
    //   target: true
    // }
  ]
};

export default other;
