{
 "id": "photo-studio-bookings",
 "file": "softwiro-photo-studio-bookings.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": 2,
   "settings": [
    {
     "label": "تاريخ اليوم",
     "cell": "B4",
     "value": "2026-11-12"
    },
    {
     "label": "أي تاريخ داخل شهر الملخص",
     "cell": "B5",
     "value": "2026-10-15"
    },
    {
     "label": "البند",
     "cell": "B10",
     "value": "سعر الوحدة"
    },
    {
     "label": "طباعة 20×30",
     "cell": "B11",
     "value": 150
    },
    {
     "label": "طباعة 30×45",
     "cell": "B12",
     "value": 250
    },
    {
     "label": "ألبوم 20 صفحة",
     "cell": "B13",
     "value": 1200
    },
    {
     "label": "ألبوم 30 صفحة",
     "cell": "B14",
     "value": 1800
    },
    {
     "label": "إطار خشب",
     "cell": "B15",
     "value": 400
    },
    {
     "label": "صورة إضافية معدّلة",
     "cell": "B16",
     "value": 50
    },
    {
     "label": "فلاش USB بالصور",
     "cell": "B17",
     "value": 100
    }
   ],
   "results": [
    {
     "label": "أول يوم في الشهر",
     "cell": "B6",
     "formula": "=IF(B5=\"\",\"\",DATE(YEAR(B5),MONTH(B5),1))"
    },
    {
     "label": "آخر يوم في الشهر",
     "cell": "B7",
     "formula": "=IF(B5=\"\",\"\",EOMONTH(B5,0))"
    }
   ]
  },
  {
   "name": "الباقات",
   "formula_cells": 80,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 6,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "الباقة",
       "kind": "input",
       "examples": [
        "بورتريه شخصي",
        "جلسة عائلية",
        "جلسة مولود"
       ]
      },
      {
       "column": "B",
       "header": "المدة (دقيقة)",
       "kind": "input",
       "examples": [
        60,
        90,
        120
       ]
      },
      {
       "column": "C",
       "header": "السعر",
       "kind": "input",
       "examples": [
        1500,
        2500,
        3500
       ]
      },
      {
       "column": "D",
       "header": "صور معدّلة",
       "kind": "input",
       "examples": [
        15,
        30,
        25
       ]
      },
      {
       "column": "E",
       "header": "مطبوعات مشمولة",
       "kind": "input",
       "examples": [
        3,
        5,
        6
       ]
      },
      {
       "column": "F",
       "header": "أيام التسليم",
       "kind": "input",
       "examples": [
        5,
        7,
        10
       ]
      },
      {
       "column": "G",
       "header": "جلسات الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('الحجوزات'!$D$6:$D$1005,A6&\"\",'الحجوزات'!$X$6:$X$1005,1,'الحجوزات'!$AA$6:$AA$1005,1))"
      },
      {
       "column": "H",
       "header": "قيمة الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الحجوزات'!$R$6:$R$1005,'الحجوزات'!$D$6:$D$1005,A6&\"\",'الحجوزات'!$AA$6:$AA$1005,1))"
      }
     ]
    }
   ]
  },
  {
   "name": "المصورون",
   "formula_cells": 160,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 4,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "المصور",
       "kind": "input",
       "examples": [
        "كريم سعد",
        "مي عادل",
        "أحمد فتحي"
       ]
      },
      {
       "column": "B",
       "header": "التخصص",
       "kind": "input",
       "examples": [
        "بورتريه وعائلات",
        "مواليد وأطفال",
        "منتجات ومناسبات"
       ]
      },
      {
       "column": "C",
       "header": "جلسات الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('الحجوزات'!$E$6:$E$1005,A6&\"\",'الحجوزات'!$X$6:$X$1005,1,'الحجوزات'!$AA$6:$AA$1005,1))"
      },
      {
       "column": "D",
       "header": "قيمة الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الحجوزات'!$R$6:$R$1005,'الحجوزات'!$E$6:$E$1005,A6&\"\",'الحجوزات'!$AA$6:$AA$1005,1))"
      },
      {
       "column": "E",
       "header": "ساعات الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('الحجوزات'!$O$6:$O$1005,'الحجوزات'!$E$6:$E$1005,A6&\"\",'الحجوزات'!$X$6:$X$1005,1,'الحجوزات'!$AA$6:$AA$1005,1)/60,2))"
      },
      {
       "column": "F",
       "header": "تسليمات متأخرة الآن",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('الحجوزات'!$E$6:$E$1005,A6&\"\",'الحجوزات'!$U$6:$U$1005,\"متأخر\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "الأماكن",
   "formula_cells": 60,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 4,
     "capacity_last_row": 35,
     "columns": [
      {
       "column": "A",
       "header": "المكان",
       "kind": "input",
       "examples": [
        "ستوديو 1",
        "ستوديو 2",
        "حديقة الأورمان"
       ]
      },
      {
       "column": "B",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "داخلي",
        "داخلي",
        "خارجي"
       ],
       "allowed_values": [
        "داخلي",
        "خارجي"
       ]
      },
      {
       "column": "C",
       "header": "جلسات الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('الحجوزات'!$F$6:$F$1005,A6&\"\",'الحجوزات'!$X$6:$X$1005,1,'الحجوزات'!$AA$6:$AA$1005,1))"
      },
      {
       "column": "D",
       "header": "ساعات الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('الحجوزات'!$O$6:$O$1005,'الحجوزات'!$F$6:$F$1005,A6&\"\",'الحجوزات'!$X$6:$X$1005,1,'الحجوزات'!$AA$6:$AA$1005,1)/60,2))"
      }
     ]
    }
   ]
  },
  {
   "name": "الحجوزات",
   "formula_cells": 14000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 23,
     "capacity_last_row": 1005,
     "columns": [
      {
       "column": "A",
       "header": "رقم",
       "kind": "input",
       "examples": [
        1,
        2,
        3
       ]
      },
      {
       "column": "B",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-02",
        "2026-10-03",
        "2026-10-05"
       ]
      },
      {
       "column": "C",
       "header": "البداية",
       "kind": "input",
       "examples": [
        "10:00:00",
        "11:00:00",
        "16:00:00"
       ]
      },
      {
       "column": "D",
       "header": "الباقة",
       "kind": "input",
       "examples": [
        "بورتريه شخصي",
        "جلسة مولود",
        "جلسة خطوبة"
       ],
       "allowed_values": {
        "from_range": "'الباقات'!$A$6:$A$45"
       }
      },
      {
       "column": "E",
       "header": "المصور",
       "kind": "input",
       "examples": [
        "كريم سعد",
        "مي عادل",
        "نورا سمير"
       ],
       "allowed_values": {
        "from_range": "'المصورون'!$A$6:$A$45"
       }
      },
      {
       "column": "F",
       "header": "المكان",
       "kind": "input",
       "examples": [
        "ستوديو 1",
        "ستوديو 2",
        "حديقة الأورمان"
       ],
       "allowed_values": {
        "from_range": "'الأماكن'!$A$6:$A$35"
       }
      },
      {
       "column": "G",
       "header": "العميل",
       "kind": "input",
       "examples": [
        "هبة محمود",
        "دينا وائل",
        "سلمى ومحمد"
       ]
      },
      {
       "column": "H",
       "header": "الجوال",
       "kind": "input",
       "examples": [
        "01001110001",
        "01001110002",
        "01001110003"
       ]
      },
      {
       "column": "I",
       "header": "المناسبة",
       "kind": "input",
       "examples": [
        "بورتريه",
        "مولود",
        "خطوبة"
       ],
       "allowed_values": [
        "بورتريه",
        "مولود",
        "عائلة",
        "خطوبة",
        "منتجات",
        "مناسبة شركة",
        "أخرى"
       ]
      },
      {
       "column": "J",
       "header": "العربون",
       "kind": "input",
       "examples": [
        500,
        1000,
        2000
       ]
      },
      {
       "column": "K",
       "header": "المدفوع",
       "kind": "input",
       "examples": [
        1500,
        4700,
        7300
       ]
      },
      {
       "column": "L",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "تم التسليم",
        "تم التسليم",
        "تم التسليم"
       ],
       "allowed_values": [
        "محجوز",
        "تم التصوير",
        "اختيار الصور",
        "التعديل",
        "تم التسليم",
        "ملغي",
        "لم يحضر"
       ]
      },
      {
       "column": "M",
       "header": "تاريخ التسليم الفعلي",
       "kind": "input",
       "examples": [
        "2026-10-06",
        "2026-10-14",
        "2026-10-14"
       ]
      },
      {
       "column": "N",
       "header": "سعر الباقة",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",IFERROR(INDEX('الباقات'!$C$6:$C$45,MATCH($D6&\"\",'الباقات'!$A$6:$A$45,0)),\"باقة غير موجودة\"))"
      },
      {
       "column": "O",
       "header": "الدقائق",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",IFERROR(INDEX('الباقات'!$B$6:$B$45,MATCH($D6&\"\",'الباقات'!$A$6:$A$45,0)),0))"
      },
      {
       "column": "P",
       "header": "النهاية",
       "kind": "formula",
       "formula_row_1": "=IF(AND(ISNUMBER(C6),ISNUMBER(O6)),MOD(C6+O6/1440,1),\"\")"
      },
      {
       "column": "Q",
       "header": "الإضافات",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(B6),IF(A6&\"\"=\"\",0,SUMIFS('الإضافات'!$E$6:$E$505,'الإضافات'!$A$6:$A$505,A6&\"\")),\"\")"
      },
      {
       "column": "R",
       "header": "الإجمالي",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(B6),IF(X6=1,IF(ISNUMBER(N6),N6,0)+Q6,0),\"\")"
      },
      {
       "column": "S",
       "header": "المتبقي",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(B6),IF(X6=1,R6-N(K6),0),\"\")"
      },
      {
       "column": "T",
       "header": "موعد التسليم",
       "kind": "formula",
       "formula_row_1": "=IF(X6=1,IFERROR(B6+INDEX('الباقات'!$F$6:$F$45,MATCH($D6&\"\",'الباقات'!$A$6:$A$45,0)),\"\"),\"\")"
      },
      {
       "column": "U",
       "header": "تنبيه التسليم",
       "kind": "formula",
       "formula_row_1": "=IF(NOT(ISNUMBER(B6)),\"\",IF(X6<>1,\"\",IF(L6=\"تم التسليم\",IF(AND(ISNUMBER(T6),ISNUMBER(M6)),IF(M6>T6,\"سُلّم متأخرًا\",\"\"),\"\"),IF(OR(L6=\"تم التصوير\",L6=\"اختيار الصور\",L6=\"التعديل\"),IF(AND(ISNUMBER(T6),'الإعدادات'!$B$4>T6),\"متأخر\",\"\"),IF(AND(L6=\"محجوز\",B6<'الإعدادات'!$B$4),\"حدّث الحالة\",\"\")))))"
      },
      {
       "column": "V",
       "header": "تعارض مصور",
       "kind": "formula",
       "formula_row_1": "=IF(OR(X6<>1,Y6=\"\",E6&\"\"=\"\"),\"\",IF(COUNTIFS('الحجوزات'!$E$6:$E$1005,E6&\"\",'الحجوزات'!$X$6:$X$1005,1,'الحجوزات'!$Y$6:$Y$1005,\"<\"&Z6,'الحجوزات'!$Z$6:$Z$1005,\">\"&Y6)-1>0,\"تعارض\",\"\"))"
      },
      {
       "column": "W",
       "header": "تعارض مكان",
       "kind": "formula",
       "formula_row_1": "=IF(OR(X6<>1,Y6=\"\",F6&\"\"=\"\"),\"\",IF(COUNTIFS('الحجوزات'!$F$6:$F$1005,F6&\"\",'الحجوزات'!$X$6:$X$1005,1,'الحجوزات'!$Y$6:$Y$1005,\"<\"&Z6,'الحجوزات'!$Z$6:$Z$1005,\">\"&Y6)-1>0,\"تعارض\",\"\"))"
      },
      {
       "column": "X",
       "header": "فعّال",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(B6),IF(OR(L6=\"ملغي\",L6=\"لم يحضر\"),0,1),\"\")"
      },
      {
       "column": "Y",
       "header": "بداية (دقيقة)",
       "kind": "formula",
       "formula_row_1": "=IF(AND(ISNUMBER(B6),ISNUMBER(C6)),ROUND((B6+C6)*1440,0),\"\")"
      },
      {
       "column": "Z",
       "header": "نهاية (دقيقة)",
       "kind": "formula",
       "formula_row_1": "=IF(Y6=\"\",\"\",Y6+N(O6))"
      },
      {
       "column": "AA",
       "header": "ضمن الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(B6),IF(AND(B6>='الإعدادات'!$B$6,B6<='الإعدادات'!$B$7),1,0),\"\")"
      }
     ]
    }
   ]
  },
  {
   "name": "الإضافات",
   "formula_cells": 2500,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 11,
     "capacity_last_row": 505,
     "columns": [
      {
       "column": "A",
       "header": "رقم الحجز",
       "kind": "input",
       "examples": [
        3,
        3,
        2
       ]
      },
      {
       "column": "B",
       "header": "البند",
       "kind": "input",
       "examples": [
        "ألبوم 30 صفحة",
        "طباعة 30×45",
        "ألبوم 20 صفحة"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$11:$A$30"
       }
      },
      {
       "column": "C",
       "header": "الكمية",
       "kind": "input",
       "examples": [
        1,
        2,
        1
       ]
      },
      {
       "column": "D",
       "header": "سعر الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('الإعدادات'!$B$11:$B$30,MATCH(B6&\"\",'الإعدادات'!$A$11:$A$30,0)),\"بند غير موجود\"))"
      },
      {
       "column": "E",
       "header": "الإجمالي",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",NOT(ISNUMBER(D6))),\"\",ROUND(N(C6)*D6,2))"
      },
      {
       "column": "F",
       "header": "العميل",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الحجوزات'!$G$6:$G$1005,MATCH(A6,'الحجوزات'!$A$6:$A$1005,0))&\"\",\"حجز غير موجود\"))"
      },
      {
       "column": "G",
       "header": "تاريخ الحجز",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الحجوزات'!$B$6:$B$1005,MATCH(A6,'الحجوزات'!$A$6:$A$1005,0)),\"\"))"
      },
      {
       "column": "H",
       "header": "ضمن الشهر",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(G6),IF(AND(G6>='الإعدادات'!$B$6,G6<='الإعدادات'!$B$7),1,0),\"\")"
      }
     ]
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 122,
   "record_tables": [
    {
     "header_row": 32,
     "first_record_row": 33,
     "sample_rows_filled": 0,
     "capacity_last_row": 68,
     "columns": [
      {
       "column": "A",
       "header": "المصور",
       "kind": "formula",
       "formula_row_1": "=IF('المصورون'!A6&\"\"=\"\",\"\",'المصورون'!A6)"
      },
      {
       "column": "B",
       "header": "الجلسات",
       "kind": "formula",
       "formula_row_1": "=IF($A33=\"\",\"\",'المصورون'!C6)"
      },
      {
       "column": "C",
       "header": "القيمة",
       "kind": "formula",
       "formula_row_1": "=IF($A33=\"\",\"\",'المصورون'!D6)"
      },
      {
       "column": "D",
       "header": "الساعات",
       "kind": "formula",
       "formula_row_1": "=IF($A33=\"\",\"\",'المصورون'!E6)"
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "المرحلة",
     "cell": "B22",
     "value": "العدد"
    }
   ],
   "results": [
    {
     "label": "الشهر",
     "cell": "B3",
     "formula": "='الإعدادات'!B5"
    },
    {
     "label": "الجلسات المؤكدة",
     "cell": "B5",
     "formula": "=COUNTIFS('الحجوزات'!$X$6:$X$1005,1,'الحجوزات'!$AA$6:$AA$1005,1)"
    },
    {
     "label": "الحجوزات الملغاة",
     "cell": "B6",
     "formula": "=COUNTIFS('الحجوزات'!$L$6:$L$1005,\"ملغي\",'الحجوزات'!$AA$6:$AA$1005,1)"
    },
    {
     "label": "عملاء لم يحضروا",
     "cell": "B7",
     "formula": "=COUNTIFS('الحجوزات'!$L$6:$L$1005,\"لم يحضر\",'الحجوزات'!$AA$6:$AA$1005,1)"
    },
    {
     "label": "قيمة الحجوزات (الجلسات + الإضافات)",
     "cell": "B8",
     "formula": "=SUMIFS('الحجوزات'!$R$6:$R$1005,'الحجوزات'!$AA$6:$AA$1005,1)"
    },
    {
     "label": "منها مبيعات الإضافات",
     "cell": "B9",
     "formula": "=SUMIFS('الحجوزات'!$Q$6:$Q$1005,'الحجوزات'!$X$6:$X$1005,1,'الحجوزات'!$AA$6:$AA$1005,1)"
    },
    {
     "label": "المحصّل (عربون ومدفوعات)",
     "cell": "B10",
     "formula": "=SUMIFS('الحجوزات'!$K$6:$K$1005,'الحجوزات'!$AA$6:$AA$1005,1)"
    },
    {
     "label": "المتبقي على عملاء الشهر",
     "cell": "B11",
     "formula": "=SUMIFS('الحجوزات'!$S$6:$S$1005,'الحجوزات'!$AA$6:$AA$1005,1,'الحجوزات'!$S$6:$S$1005,\">0\")"
    },
    {
     "label": "المتبقي على كل العملاء (كل الشهور)",
     "cell": "B12",
     "formula": "=SUMIFS('الحجوزات'!$S$6:$S$1005,'الحجوزات'!$S$6:$S$1005,\">0\")"
    },
    {
     "label": "متوسط قيمة الجلسة",
     "cell": "B13",
     "formula": "=IF(B5=0,\"\",B8/B5)"
    },
    {
     "label": "حجوزات بها تعارض مصور (الشهر)",
     "cell": "B15",
     "formula": "=COUNTIFS('الحجوزات'!$V$6:$V$1005,\"تعارض\",'الحجوزات'!$AA$6:$AA$1005,1)"
    },
    {
     "label": "حجوزات بها تعارض مكان (الشهر)",
     "cell": "B16",
     "formula": "=COUNTIFS('الحجوزات'!$W$6:$W$1005,\"تعارض\",'الحجوزات'!$AA$6:$AA$1005,1)"
    },
    {
     "label": "تسليمات متأخرة الآن (كل الشهور)",
     "cell": "B17",
     "formula": "=COUNTIFS('الحجوزات'!$U$6:$U$1005,\"متأخر\")"
    },
    {
     "label": "سُلّمت بعد الموعد (الشهر)",
     "cell": "B18",
     "formula": "=COUNTIFS('الحجوزات'!$U$6:$U$1005,\"سُلّم متأخرًا\",'الحجوزات'!$AA$6:$AA$1005,1)"
    },
    {
     "label": "جلسات تحتاج تحديث الحالة",
     "cell": "B19",
     "formula": "=COUNTIFS('الحجوزات'!$U$6:$U$1005,\"حدّث الحالة\")"
    },
    {
     "label": "محجوز",
     "cell": "B23",
     "formula": "=COUNTIFS('الحجوزات'!$L$6:$L$1005,A23)"
    },
    {
     "label": "تم التصوير",
     "cell": "B24",
     "formula": "=COUNTIFS('الحجوزات'!$L$6:$L$1005,A24)"
    },
    {
     "label": "اختيار الصور",
     "cell": "B25",
     "formula": "=COUNTIFS('الحجوزات'!$L$6:$L$1005,A25)"
    },
    {
     "label": "التعديل",
     "cell": "B26",
     "formula": "=COUNTIFS('الحجوزات'!$L$6:$L$1005,A26)"
    },
    {
     "label": "تم التسليم",
     "cell": "B27",
     "formula": "=COUNTIFS('الحجوزات'!$L$6:$L$1005,A27)"
    },
    {
     "label": "ملغي",
     "cell": "B28",
     "formula": "=COUNTIFS('الحجوزات'!$L$6:$L$1005,A28)"
    },
    {
     "label": "لم يحضر",
     "cell": "B29",
     "formula": "=COUNTIFS('الحجوزات'!$L$6:$L$1005,A29)"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}