{
 "id": "hoa-maintenance-requests",
 "file": "softwiro-hoa-maintenance-requests.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,
   "settings": [
    {
     "label": "تاريخ اليوم",
     "cell": "B4",
     "value": "2026-11-01"
    },
    {
     "label": "الأولوية",
     "cell": "B6",
     "value": "المدة المسموحة (يوم)"
    },
    {
     "label": "عاجلة",
     "cell": "B7",
     "value": 1
    },
    {
     "label": "عالية",
     "cell": "B8",
     "value": 3
    },
    {
     "label": "عادية",
     "cell": "B9",
     "value": 7
    },
    {
     "label": "منخفضة",
     "cell": "B10",
     "value": 14
    }
   ]
  },
  {
   "name": "البلاغات",
   "formula_cells": 7000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 21,
     "capacity_last_row": 1005,
     "columns": [
      {
       "column": "A",
       "header": "رقم البلاغ",
       "kind": "formula",
       "formula_row_1": "=IF(B6=\"\",\"\",ROW()-5)"
      },
      {
       "column": "B",
       "header": "تاريخ البلاغ",
       "kind": "input",
       "examples": [
        "2026-06-03",
        "2026-06-15",
        "2026-06-28"
       ]
      },
      {
       "column": "C",
       "header": "الوحدة / الموقع",
       "kind": "input",
       "examples": [
        "الدور 3",
        "شقة 5",
        "المدخل"
       ]
      },
      {
       "column": "D",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "مصعد",
        "سباكة",
        "كهرباء"
       ],
       "allowed_values": [
        "مصعد",
        "كهرباء",
        "سباكة",
        "نظافة",
        "أمن",
        "أخرى"
       ]
      },
      {
       "column": "E",
       "header": "الوصف",
       "kind": "input",
       "examples": [
        "المصعد يتوقف بين الطوابق",
        "تسريب في ماسورة المطبخ المشتركة",
        "إضاءة المدخل لا تعمل"
       ]
      },
      {
       "column": "F",
       "header": "الأولوية",
       "kind": "input",
       "examples": [
        "عاجلة",
        "عالية",
        "عادية"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$7:$A$10"
       }
      },
      {
       "column": "G",
       "header": "المسؤول",
       "kind": "input",
       "examples": [
        "فني المصاعد",
        "السباك",
        "الكهربائي"
       ]
      },
      {
       "column": "H",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "تم",
        "تم",
        "تم"
       ],
       "allowed_values": [
        "جديد",
        "جارٍ",
        "تم",
        "مؤجل"
       ]
      },
      {
       "column": "I",
       "header": "تاريخ الإغلاق",
       "kind": "input",
       "examples": [
        "2026-06-04",
        "2026-06-17",
        "2026-07-02"
       ]
      },
      {
       "column": "J",
       "header": "التكلفة",
       "kind": "input",
       "examples": [
        1800,
        450,
        300
       ]
      },
      {
       "column": "K",
       "header": "الأيام المفتوحة",
       "kind": "formula",
       "formula_row_1": "=IF(NOT(ISNUMBER(B6)),\"\",IF(H6=\"تم\",IF(ISNUMBER(I6),I6-B6,\"\"),'الإعدادات'!$B$4-B6))"
      },
      {
       "column": "L",
       "header": "المدة المسموحة",
       "kind": "formula",
       "formula_row_1": "=IF(F6=\"\",\"\",IFERROR(VLOOKUP(F6,'الإعدادات'!$A$7:$B$10,2,FALSE),\"\"))"
      },
      {
       "column": "M",
       "header": "التنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(OR(NOT(ISNUMBER(B6)),H6=\"تم\",L6=\"\"),\"\",IF(K6>L6,\"متأخر\",\"\"))"
      },
      {
       "column": "N",
       "header": "عمر المفتوح",
       "kind": "formula",
       "formula_row_1": "=IF(OR(NOT(ISNUMBER(B6)),H6=\"تم\"),\"\",K6)"
      },
      {
       "column": "O",
       "header": "ترتيب المفتوحة",
       "kind": "formula",
       "formula_row_1": "=IF(N6=\"\",\"\",COUNTIF($N$6:$N$1005,\">\"&N6)+COUNTIF($N$6:N6,N6))"
      },
      {
       "column": "P",
       "header": "تاريخ احتساب التكلفة",
       "kind": "formula",
       "formula_row_1": "=IF(OR(NOT(ISNUMBER(J6)),NOT(ISNUMBER(B6))),\"\",IF(ISNUMBER(I6),I6,B6))"
      }
     ]
    }
   ]
  },
  {
   "name": "المفتوحة",
   "formula_cells": 1101,
   "record_tables": [
    {
     "header_row": 6,
     "first_record_row": 7,
     "sample_rows_filled": 0,
     "capacity_last_row": 106,
     "columns": [
      {
       "column": "A",
       "header": "م",
       "kind": "formula",
       "formula_row_1": "=IF(1<=$B$4,1,\"\")"
      },
      {
       "column": "B",
       "header": "رقم البلاغ",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('البلاغات'!$A$6:$A$1005,MATCH($A7,'البلاغات'!$O$6:$O$1005,0)))"
      },
      {
       "column": "C",
       "header": "تاريخ البلاغ",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('البلاغات'!$B$6:$B$1005,MATCH($A7,'البلاغات'!$O$6:$O$1005,0)))"
      },
      {
       "column": "D",
       "header": "الوحدة / الموقع",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('البلاغات'!$C$6:$C$1005,MATCH($A7,'البلاغات'!$O$6:$O$1005,0))&\"\")"
      },
      {
       "column": "E",
       "header": "النوع",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('البلاغات'!$D$6:$D$1005,MATCH($A7,'البلاغات'!$O$6:$O$1005,0))&\"\")"
      },
      {
       "column": "F",
       "header": "الوصف",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('البلاغات'!$E$6:$E$1005,MATCH($A7,'البلاغات'!$O$6:$O$1005,0))&\"\")"
      },
      {
       "column": "G",
       "header": "الأولوية",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('البلاغات'!$F$6:$F$1005,MATCH($A7,'البلاغات'!$O$6:$O$1005,0))&\"\")"
      },
      {
       "column": "H",
       "header": "المسؤول",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('البلاغات'!$G$6:$G$1005,MATCH($A7,'البلاغات'!$O$6:$O$1005,0))&\"\")"
      },
      {
       "column": "I",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('البلاغات'!$H$6:$H$1005,MATCH($A7,'البلاغات'!$O$6:$O$1005,0))&\"\")"
      },
      {
       "column": "J",
       "header": "الأيام المفتوحة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('البلاغات'!$K$6:$K$1005,MATCH($A7,'البلاغات'!$O$6:$O$1005,0)))"
      },
      {
       "column": "K",
       "header": "التنبيه",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('البلاغات'!$M$6:$M$1005,MATCH($A7,'البلاغات'!$O$6:$O$1005,0))&\"\")"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد البلاغات المفتوحة",
     "cell": "B4",
     "formula": "=COUNT('البلاغات'!$N$6:$N$1005)"
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 76,
   "record_tables": [
    {
     "header_row": 16,
     "first_record_row": 17,
     "sample_rows_filled": 21,
     "capacity_last_row": 38,
     "columns": [
      {
       "column": "A",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "مصعد",
        "كهرباء",
        "سباكة"
       ]
      },
      {
       "column": "B",
       "header": "عدد البلاغات",
       "kind": "formula",
       "formula_row_1": "=COUNTIF('البلاغات'!$D$6:$D$1005,A17)"
      },
      {
       "column": "C",
       "header": "النسبة",
       "kind": "formula",
       "formula_row_1": "=IF($B$5=0,\"\",B17/$B$5)"
      },
      {
       "column": "D",
       "header": "التكلفة",
       "kind": "formula",
       "formula_row_1": "=SUMIFS('البلاغات'!$J$6:$J$1005,'البلاغات'!$D$6:$D$1005,A17)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "إجمالي البلاغات",
     "cell": "B5",
     "formula": "=COUNT('البلاغات'!$B$6:$B$1005)"
    },
    {
     "label": "جديد",
     "cell": "B6",
     "formula": "=COUNTIF('البلاغات'!$H$6:$H$1005,A6)"
    },
    {
     "label": "جارٍ",
     "cell": "B7",
     "formula": "=COUNTIF('البلاغات'!$H$6:$H$1005,A7)"
    },
    {
     "label": "تم",
     "cell": "B8",
     "formula": "=COUNTIF('البلاغات'!$H$6:$H$1005,A8)"
    },
    {
     "label": "مؤجل",
     "cell": "B9",
     "formula": "=COUNTIF('البلاغات'!$H$6:$H$1005,A9)"
    },
    {
     "label": "بلاغات مفتوحة (غير «تم»)",
     "cell": "B10",
     "formula": "=COUNT('البلاغات'!$N$6:$N$1005)"
    },
    {
     "label": "بلاغات متأخرة عن مدة أولويتها",
     "cell": "B11",
     "formula": "=COUNTIF('البلاغات'!$M$6:$M$1005,\"متأخر\")"
    },
    {
     "label": "متوسط أيام الإغلاق",
     "cell": "B12",
     "formula": "=IFERROR(ROUND(AVERAGEIFS('البلاغات'!$K$6:$K$1005,'البلاغات'!$H$6:$H$1005,\"تم\"),1),\"\")"
    },
    {
     "label": "إجمالي تكلفة الصيانة",
     "cell": "B13",
     "formula": "=SUM('البلاغات'!$J$6:$J$1005)"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}