// third-party
import { FormattedMessage } from 'react-intl';

// assets
import {
  BorderOutlined,
  BoxPlotOutlined,
  ChromeOutlined,
  DeploymentUnitOutlined,
  GatewayOutlined,
  MenuUnfoldOutlined,
  QuestionOutlined,
  SmileOutlined,
  StopOutlined,
  DashboardOutlined,
  ClockCircleOutlined,
  SettingOutlined,
  MailOutlined,
  ImportOutlined,
  BarChartOutlined,
  FileDoneOutlined,
  PartitionOutlined,
  CarOutlined,
  UserOutlined,
  ProfileOutlined,
  TeamOutlined,
  MoneyCollectOutlined,
  ContactsOutlined,
  ShopOutlined,
  CarryOutOutlined,
  IdcardOutlined,
  TruckOutlined,
  WarningOutlined,
  RadarChartOutlined
} from '@ant-design/icons';

// icons
const icons = {
  ChromeOutlined,
  MenuUnfoldOutlined,
  BoxPlotOutlined,
  StopOutlined,
  BorderOutlined,
  SmileOutlined,
  GatewayOutlined,
  QuestionOutlined,
  DeploymentUnitOutlined,
  DashboardOutlined,
  ClockCircleOutlined,
  SettingOutlined,
  MailOutlined,
  ImportOutlined,
  BarChartOutlined,
  FileDoneOutlined,
  PartitionOutlined,
  CarOutlined,
  UserOutlined,
  ProfileOutlined,
  TeamOutlined,
  MoneyCollectOutlined,
  ContactsOutlined,
  ShopOutlined,
  CarryOutOutlined,
  IdcardOutlined,
  TruckOutlined,
  WarningOutlined,
  RadarChartOutlined
};

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

const nearle = {
  id: 'nearle_Pages',
  title: <FormattedMessage id="Doormile" />,
  icon: icons.FileDoneOutlined,
  type: 'group',
  children: [
    {
      id: 'dispatch',
      title: <FormattedMessage id="dispatch" />,
      type: 'item',
      url: '/doormile/dispatch',
      icon: icons.PartitionOutlined
    },
    {
      id: 'orders',
      title: <FormattedMessage id="orders" />,
      type: 'item',
      url: '/doormile/orders',
      icon: icons.DashboardOutlined
    },
    {
      id: 'deliveries',
      title: <FormattedMessage id="deliveries" />,
      type: 'item',
      url: '/doormile/deliveries',
      icon: icons.CarOutlined
    },
    {
      id: 'riders',
      title: <FormattedMessage id="riders" />,
      type: 'item',
      url: '/doormile/riders',
      icon: icons.UserOutlined
    },
    {
      id: 'tenants',
      title: <FormattedMessage id="tenants" />,
      type: 'item',
      url: '/doormile/tenants',
      icon: icons.TeamOutlined
    },
    {
      id: 'pricing',
      title: <FormattedMessage id="pricing" />,
      type: 'item',
      url: '/doormile/pricing',
      icon: icons.MoneyCollectOutlined
    },
    {
      id: 'customers',
      title: <FormattedMessage id="customers" />,
      type: 'item',
      url: '/doormile/customers',
      icon: icons.ContactsOutlined
    },
    {
      id: 'fleetops',
      title: <FormattedMessage id="fleetops" />,
      type: 'collapse',
      icon: icons.TruckOutlined,
      children: [
        {
          id: 'hubs',
          title: <FormattedMessage id="hubs" />,
          type: 'item',
          url: '/doormile/hubs',
          icon: icons.ShopOutlined
        },
        {
          id: 'vehicles',
          title: <FormattedMessage id="vehicles" />,
          type: 'item',
          url: '/doormile/vehicles',
          icon: icons.CarOutlined
        },
        {
          id: 'tripsheets',
          title: <FormattedMessage id="tripsheets" />,
          type: 'item',
          url: '/doormile/tripsheets',
          icon: icons.CarryOutOutlined
        },
        {
          id: 'exceptions',
          title: <FormattedMessage id="exceptions" />,
          type: 'item',
          url: '/doormile/exceptions',
          icon: icons.WarningOutlined
        },
        {
          id: 'competitiveintel',
          title: <FormattedMessage id="competitiveintel" />,
          type: 'item',
          url: '/doormile/competitive-intel',
          icon: icons.RadarChartOutlined
        },
        {
          id: 'appusers',
          title: <FormattedMessage id="appusers" />,
          type: 'item',
          url: '/doormile/app-users',
          icon: icons.IdcardOutlined
        }
      ]
    },
    {
      id: 'reports',
      title: <FormattedMessage id="reports" />,
      type: 'collapse',
      icon: icons.BarChartOutlined,
      children: [
        {
          id: 'reports',
          title: <FormattedMessage id="ordersummary" />,
          type: 'item',
          url: '/doormile/reports/orderssummary',
          icon: icons.ProfileOutlined
        },
        {
          id: 'ordersdetails',
          title: <FormattedMessage id="ordersdetails" />,
          type: 'item',
          url: '/doormile/reports/ordersdetails',
          icon: icons.DashboardOutlined
        },
        {
          id: 'riderssummary',
          title: <FormattedMessage id="riderssummary" />,
          type: 'item',
          url: '/doormile/reports/riderssummary',
          icon: icons.UserOutlined
        }
      ]
    }
  ]
};

export default nearle;
