{
 "id": "customer-complaints-log",
 "file": "softwiro-customer-complaints-log.xlsx",
 "title": "شيت سجل شكاوى العملاء وتذاكر الدعم",
 "language": "ar",
 "direction": "rtl",
 "how_it_works": "White cells are typed input; cells whose kind is \"formula\" are calculated and must not be overwritten. Add one record per row under the header row of a record table, keeping the columns in order.",
 "sheets": [
  {
   "name": "ابدأ هنا",
   "formula_cells": 0
  },
  {
   "name": "الإعدادات",
   "formula_cells": 0,
   "record_tables": [
    {
     "header_row": 9,
     "first_record_row": 10,
     "sample_rows_filled": 6,
     "capacity_last_row": 15,
     "columns": [
      {
       "column": "D",
       "header": "القناة",
       "kind": "input",
       "examples": [
        "هاتف",
        "واتساب",
        "إيميل"
       ]
      },
      {
       "column": "E",
       "header": "التصنيف",
       "kind": "input",
       "examples": [
        "جودة المنتج",
        "التأخر في التوصيل",
        "الفوترة والسداد"
       ]
      },
      {
       "column": "F",
       "header": "المسؤول",
       "kind": "input",
       "examples": [
        "أحمد",
        "سارة",
        "محمود"
       ]
      },
      {
       "column": "G",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "جديدة",
        "قيد المعالجة",
        "بانتظار العميل"
       ]
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "تاريخ ووقت التقييم",
     "cell": "B4",
     "value": "2026-11-28"
    },
    {
     "label": "نسبة التنبيه المبكر من الهدف",
     "cell": "B5",
     "value": 0.8
    },
    {
     "label": "بداية التقرير الشهري (أول يوم في الشهر)",
     "cell": "B6",
     "value": "2026-10-01"
    },
    {
     "label": "عدد التذاكر التي تُعدّ بعدها الشكاوى «متكررة»",
     "cell": "B7",
     "value": 3
    }
   ]
  },
  {
   "name": "العملاء",
   "formula_cells": 300,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 15,
     "capacity_last_row": 105,
     "columns": [
      {
       "column": "A",
       "header": "كود العميل",
       "kind": "input",
       "examples": [
        "C001",
        "C002",
        "C003"
       ]
      },
      {
       "column": "B",
       "header": "اسم العميل",
       "kind": "input",
       "examples": [
        "شركة النور للتجهيزات",
        "مطعم الواحة",
        "عيادة د. هالة"
       ]
      },
      {
       "column": "C",
       "header": "الهاتف",
       "kind": "input",
       "examples": [
        "01000000101",
        "01000000102",
        "01000000103"
       ]
      },
      {
       "column": "D",
       "header": "المدينة",
       "kind": "input",
       "examples": [
        "القاهرة",
        "الجيزة",
        "الإسكندرية"
       ]
      },
      {
       "column": "E",
       "header": "عدد التذاكر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('التذاكر'!$B$6:$B$505,A6&\"\"))"
      },
      {
       "column": "F",
       "header": "المفتوحة منها",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('التذاكر'!$B$6:$B$505,A6&\"\",'التذاكر'!$R$6:$R$505,0))"
      },
      {
       "column": "G",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(E6>='الإعدادات'!$B$7,\"شكاوى متكررة\",\"\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "التذاكر",
   "formula_cells": 4500,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 30,
     "capacity_last_row": 505,
     "columns": [
      {
       "column": "A",
       "header": "رقم التذكرة",
       "kind": "input",
       "examples": [
        "T-1001",
        "T-1002",
        "T-1003"
       ]
      },
      {
       "column": "B",
       "header": "كود العميل",
       "kind": "input",
       "examples": [
        "C002",
        "C007",
        "C001"
       ],
       "allowed_values": {
        "from_range": "'العملاء'!$A$6:$A$105"
       }
      },
      {
       "column": "C",
       "header": "اسم العميل",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('العملاء'!$B$6:$B$105,MATCH(B6,'العملاء'!$A$6:$A$105,0)),\"كود غير معروف\"))"
      },
      {
       "column": "D",
       "header": "القناة",
       "kind": "input",
       "examples": [
        "واتساب",
        "هاتف",
        "إيميل"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$D$10:$D$19"
       }
      },
      {
       "column": "E",
       "header": "التصنيف",
       "kind": "input",
       "examples": [
        "جودة المنتج",
        "التأخر في التوصيل",
        "الفوترة والسداد"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$E$10:$E$19"
       }
      },
      {
       "column": "F",
       "header": "الأولوية",
       "kind": "input",
       "examples": [
        "متوسطة",
        "عالية",
        "متوسطة"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$10:$A$13"
       }
      },
      {
       "column": "G",
       "header": "تاريخ ووقت الفتح",
       "kind": "input",
       "examples": [
        "2026-10-05",
        "2026-10-07",
        "2026-10-09"
       ]
      },
      {
       "column": "H",
       "header": "تاريخ ووقت الإغلاق",
       "kind": "input",
       "examples": [
        "2026-10-06",
        "2026-10-07",
        "2026-10-10"
       ]
      },
      {
       "column": "I",
       "header": "المسؤول",
       "kind": "input",
       "examples": [
        "أحمد",
        "سارة",
        "محمود"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$F$10:$F$19"
       }
      },
      {
       "column": "J",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "تم الحل",
        "مغلقة",
        "مغلقة"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$G$10:$G$14"
       }
      },
      {
       "column": "K",
       "header": "الحل المتبع",
       "kind": "input",
       "examples": [
        "استبدال الصنف",
        "توصيل في اليوم نفسه",
        "تصحيح الفاتورة"
       ]
      },
      {
       "column": "L",
       "header": "الرضا (1-5)",
       "kind": "input",
       "examples": [
        4,
        5,
        3
       ]
      },
      {
       "column": "M",
       "header": "ساعات المعالجة",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",NOT(ISNUMBER(G6))),\"\",ROUND((IF(AND(R6=1,ISNUMBER(H6)),H6,'الإعدادات'!$B$4)-G6)*24,2))"
      },
      {
       "column": "N",
       "header": "هدف الساعات",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",F6&\"\"=\"\"),\"\",IFERROR(VLOOKUP(F6,'الإعدادات'!$A$10:$B$13,2,FALSE),\"\"))"
      },
      {
       "column": "O",
       "header": "تجاوز الهدف؟",
       "kind": "formula",
       "formula_row_1": "=IF(OR(M6=\"\",N6=\"\"),\"\",IF(M6>N6,\"نعم\",\"لا\"))"
      },
      {
       "column": "P",
       "header": "ساعات التجاوز",
       "kind": "formula",
       "formula_row_1": "=IF(O6=\"نعم\",ROUND(M6-N6,2),\"\")"
      },
      {
       "column": "Q",
       "header": "التنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(NOT(ISNUMBER(G6)),\"ناقص تاريخ الفتح\",IF(N6=\"\",\"ناقصة الأولوية\",IF(R6=1,IF(ISNUMBER(H6),IF(O6=\"نعم\",\"أُغلقت متأخرة\",\"أُغلقت في الوقت\"),\"ناقص تاريخ الإغلاق\"),IF(O6=\"نعم\",\"متأخرة\",IF(M6>='الإعدادات'!$B$5*N6,\"قريبة من الهدف\",\"ضمن الوقت\"))))))"
      },
      {
       "column": "R",
       "header": "مغلقة (1/0)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(OR(J6=\"تم الحل\",J6=\"مغلقة\"),1,0))"
      },
      {
       "column": "S",
       "header": "مفتاح الترتيب",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",R6=1,M6=\"\",N6=\"\"),\"\",ROUND(N6-M6,2))"
      },
      {
       "column": "T",
       "header": "ترتيب المفتوحة",
       "kind": "formula",
       "formula_row_1": "=IF(S6=\"\",\"\",COUNTIF($S$6:$S$505,\"<\"&S6)+COUNTIF($S$6:S6,S6))"
      }
     ]
    }
   ]
  },
  {
   "name": "المفتوحة",
   "formula_cells": 552,
   "record_tables": [
    {
     "header_row": 7,
     "first_record_row": 8,
     "sample_rows_filled": 0,
     "capacity_last_row": 57,
     "columns": [
      {
       "column": "A",
       "header": "م",
       "kind": "formula",
       "formula_row_1": "=IF(1<=$B$4,1,\"\")"
      },
      {
       "column": "B",
       "header": "رقم التذكرة",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('التذاكر'!$A$6:$A$505,MATCH($A8,'التذاكر'!$T$6:$T$505,0))&\"\")"
      },
      {
       "column": "C",
       "header": "العميل",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('التذاكر'!$C$6:$C$505,MATCH($A8,'التذاكر'!$T$6:$T$505,0))&\"\")"
      },
      {
       "column": "D",
       "header": "الأولوية",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('التذاكر'!$F$6:$F$505,MATCH($A8,'التذاكر'!$T$6:$T$505,0))&\"\")"
      },
      {
       "column": "E",
       "header": "تاريخ الفتح",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('التذاكر'!$G$6:$G$505,MATCH($A8,'التذاكر'!$T$6:$T$505,0)))"
      },
      {
       "column": "F",
       "header": "الساعات المنقضية",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('التذاكر'!$M$6:$M$505,MATCH($A8,'التذاكر'!$T$6:$T$505,0)))"
      },
      {
       "column": "G",
       "header": "هدف الساعات",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('التذاكر'!$N$6:$N$505,MATCH($A8,'التذاكر'!$T$6:$T$505,0)))"
      },
      {
       "column": "H",
       "header": "المتبقي (ساعات)",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('التذاكر'!$S$6:$S$505,MATCH($A8,'التذاكر'!$T$6:$T$505,0)))"
      },
      {
       "column": "I",
       "header": "التنبيه",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('التذاكر'!$Q$6:$Q$505,MATCH($A8,'التذاكر'!$T$6:$T$505,0))&\"\")"
      },
      {
       "column": "J",
       "header": "المسؤول",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('التذاكر'!$I$6:$I$505,MATCH($A8,'التذاكر'!$T$6:$T$505,0))&\"\")"
      },
      {
       "column": "K",
       "header": "التصنيف",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('التذاكر'!$E$6:$E$505,MATCH($A8,'التذاكر'!$T$6:$T$505,0))&\"\")"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "تذاكر مفتوحة",
     "cell": "B4",
     "formula": "=COUNT('التذاكر'!$S$6:$S$505)"
    },
    {
     "label": "منها متأخرة عن الهدف",
     "cell": "B5",
     "formula": "=COUNTIFS('التذاكر'!$Q$6:$Q$505,\"متأخرة\")"
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 242,
   "record_tables": [
    {
     "header_row": 19,
     "first_record_row": 20,
     "sample_rows_filled": 0,
     "capacity_last_row": 80,
     "columns": [
      {
       "column": "A",
       "header": "الأولوية",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!A10"
      },
      {
       "column": "B",
       "header": "العدد",
       "kind": "formula",
       "formula_row_1": "=COUNTIFS('التذاكر'!$F$6:$F$505,A20)"
      },
      {
       "column": "C",
       "header": "المغلقة",
       "kind": "formula",
       "formula_row_1": "=COUNTIFS('التذاكر'!$F$6:$F$505,A20,'التذاكر'!$R$6:$R$505,1)"
      },
      {
       "column": "D",
       "header": "متوسط ساعات الحل",
       "kind": "formula",
       "formula_row_1": "=IF(C20=0,\"\",SUMIFS('التذاكر'!$M$6:$M$505,'التذاكر'!$F$6:$F$505,A20,'التذاكر'!$R$6:$R$505,1)/C20)"
      },
      {
       "column": "E",
       "header": "الهدف (ساعات)",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!B10"
      },
      {
       "column": "F",
       "header": "خارج الهدف",
       "kind": "formula",
       "formula_row_1": "=COUNTIFS('التذاكر'!$F$6:$F$505,A20,'التذاكر'!$R$6:$R$505,1,'التذاكر'!$O$6:$O$505,\"نعم\")"
      },
      {
       "column": "G",
       "header": "نسبة الالتزام",
       "kind": "formula",
       "formula_row_1": "=IF(C20=0,\"\",(C20-F20)/C20)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "إجمالي التذاكر",
     "cell": "B5",
     "formula": "=COUNT('التذاكر'!$R$6:$R$505)"
    },
    {
     "label": "مفتوحة",
     "cell": "B6",
     "formula": "=COUNTIFS('التذاكر'!$R$6:$R$505,0)"
    },
    {
     "label": "مغلقة",
     "cell": "B7",
     "formula": "=COUNTIFS('التذاكر'!$R$6:$R$505,1)"
    },
    {
     "label": "مفتوحة ومتأخرة عن الهدف",
     "cell": "B8",
     "formula": "=COUNTIFS('التذاكر'!$Q$6:$Q$505,\"متأخرة\")"
    },
    {
     "label": "مفتوحة وقريبة من الهدف",
     "cell": "B9",
     "formula": "=COUNTIFS('التذاكر'!$Q$6:$Q$505,\"قريبة من الهدف\")"
    },
    {
     "label": "أُغلقت ضمن الهدف",
     "cell": "B10",
     "formula": "=COUNTIFS('التذاكر'!$R$6:$R$505,1,'التذاكر'!$O$6:$O$505,\"لا\")"
    },
    {
     "label": "أُغلقت خارج الهدف",
     "cell": "B11",
     "formula": "=COUNTIFS('التذاكر'!$R$6:$R$505,1,'التذاكر'!$O$6:$O$505,\"نعم\")"
    },
    {
     "label": "نسبة الالتزام بالهدف (المغلقة)",
     "cell": "B12",
     "formula": "=IF(B7=0,\"\",B10/B7)"
    },
    {
     "label": "متوسط ساعات الحل (المغلقة)",
     "cell": "B13",
     "formula": "=IF(B7=0,\"\",SUMIFS('التذاكر'!$M$6:$M$505,'التذاكر'!$R$6:$R$505,1)/B7)"
    },
    {
     "label": "متوسط رضا العملاء (من 5)",
     "cell": "B14",
     "formula": "=IF(B15=0,\"\",SUMIFS('التذاكر'!$L$6:$L$505,'التذاكر'!$L$6:$L$505,\">0\")/B15)"
    },
    {
     "label": "عدد التذاكر المقيَّمة",
     "cell": "B15",
     "formula": "=COUNTIFS('التذاكر'!$L$6:$L$505,\">0\")"
    },
    {
     "label": "عملاء بشكاوى متكررة",
     "cell": "B16",
     "formula": "=COUNTIFS('العملاء'!$G$6:$G$105,\"شكاوى متكررة\")"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}