import { NavGroup } from "@/types";

export const navGroups: NavGroup[] = [
  {
    label: "ระบบฝึกอบรม",
    items: [
      {
        title: "แดชบอร์ด",
        url: "/dashboard/overview",
        icon: "dashboard",
        isActive: false,
        shortcut: ["d", "d"],
        items: [],
        access: { requireOrg: true },
      },
      {
        title: "รอตรวจสอบ",
        url: "/dashboard/pending-review",
        icon: "checks",
        shortcut: ["p", "r"],
        isActive: false,
        items: [],
        access: { requireOrg: true, businessRole: "HRD" },
      },
      {
        title: "ประวัติการอบรม",
        url: "/dashboard/training-records",
        icon: "calendar",
        shortcut: ["t", "r"],
        isActive: false,
        items: [],
        access: { requireOrg: true },
      },
      {
        title: "บทเรียนออนไลน์",
        url: "/dashboard/online-lessons",
        icon: "video",
        shortcut: ["o", "l"],
        isActive: false,
        items: [],
        access: { requireOrg: true },
      },
      {
        title: "ข้อมูลหลัก",
        url: "/dashboard/users",
        icon: "workspace",
        shortcut: ["m", "d"],
        isActive: false,
        items: [
          {
            title: "ผู้ใช้งานระบบ",
            url: "/dashboard/users",
            icon: "teams",
            isActive: false,
            items: [],
            access: { requireOrg: true, businessRoles: ["IT"] },
          },
          {
            title: "รายชื่อพนักงานทั้งหมด",
            url: "/dashboard/employee-directory",
            icon: "employee",
            isActive: false,
            items: [],
            access: { requireOrg: true, businessRoles: ["HRD", "IT"] },
          },
          {
            title: "หลักสูตร",
            url: "/dashboard/courses",
            icon: "post",
            isActive: false,
            items: [],
            access: { requireOrg: true, businessRoles: ["HRD", "IT"] },
          },
          {
            title: "นโยบาย",
            url: "/dashboard/training-policy",
            icon: "settings",
            isActive: false,
            items: [],
            access: { requireOrg: true, businessRoles: ["HRD", "IT"] },
          },
          {
            title: "การอบรมตามตำแหน่ง",
            url: "/dashboard/training-matrix",
            icon: "checks",
            isActive: false,
            items: [],
            access: { requireOrg: true, businessRoles: ["HRD", "IT"] },
          },
          {
            title: "ประกาศ",
            url: "/dashboard/announcements",
            icon: "notification",
            isActive: false,
            items: [],
            access: { requireOrg: true, businessRoles: ["HRD", "IT"] },
          },
        ],
        access: { requireOrg: true, businessRoles: ["HRD", "IT"] },
      },
      {
        title: "บันทึกการใช้งาน",
        url: "/dashboard/audit-logs",
        icon: "fileTypeDoc",
        shortcut: ["a", "l"],
        isActive: false,
        items: [],
        access: { requireOrg: true, systemRole: "super_admin" },
      },
      {
        title: "Permission Management",
        url: "/dashboard/permissions/templates",
        icon: "lock",
        shortcut: ["p", "m"],
        isActive: false,
        items: [
          {
            title: "Permission Templates",
            url: "/dashboard/permissions/templates",
            icon: "workspace",
            isActive: false,
            items: [],
            access: { requireOrg: true, systemRole: "super_admin" },
          },
          {
            title: "Permission Matrix",
            url: "/dashboard/permissions/matrix",
            icon: "checks",
            isActive: false,
            items: [],
            access: { requireOrg: true, systemRole: "super_admin" },
          },
          {
            title: "User Permissions",
            url: "/dashboard/permissions/users",
            icon: "teams",
            isActive: false,
            items: [],
            access: { requireOrg: true, systemRole: "super_admin" },
          },
          {
            title: "Permission Audit Logs",
            url: "/dashboard/permissions/audit-logs",
            icon: "fileTypeDoc",
            isActive: false,
            items: [],
            access: { requireOrg: true, systemRole: "super_admin" },
          },
        ],
        access: { requireOrg: true, systemRole: "super_admin" },
      },
      {
        title: "รายงาน",
        url: "/dashboard/reports",
        icon: "fileTypeXls",
        shortcut: ["r", "p"],
        isActive: false,
        items: [],
        access: { requireOrg: true, businessRole: "HRD" },
      },
    ],
  },
];
