{
  "key": "file_56_client_compact_ar",
  "name": "56mm Client Compact Arabic",
  "size": "56mm",
  "template_json": {
    "version": 1,
    "settings": {
      "size": "56mm",
      "font_family": "Arial, sans-serif",
      "font_style": "normal",
      "custom_css": ""
    },
    "components": [
      {
        "type": "image",
        "label": "Logo",
        "content": {
          "tagSource": "logo",
          "alt": "logo"
        },
        "style": {
          "maxHeight": 55,
          "textAlign": "center"
        },
        "visibility": {
          "tokens": [
            "logo"
          ],
          "groupKey": "logo_56"
        }
      },
      {
        "type": "text",
        "label": "Business Name",
        "content": {
          "mode": "tag",
          "tag": "business_name"
        },
        "style": {
          "fontSize": 16,
          "bold": true,
          "textAlign": "center",
          "htmlTag": "h3"
        }
      },
      {
        "type": "text",
        "label": "Location Name",
        "content": {
          "mode": "tag",
          "tag": "location_name",
          "prefix": "الفرع: "
        },
        "style": {
          "fontSize": 10,
          "textAlign": "center",
          "htmlTag": "p"
        },
        "visibility": {
          "tokens": [
            "location_name"
          ],
          "groupKey": "location_56"
        }
      },
      {
        "type": "text",
        "label": "Location Address",
        "content": {
          "mode": "tag",
          "tag": "address",
          "prefix": "الموقع: "
        },
        "style": {
          "fontSize": 10,
          "textAlign": "center",
          "htmlTag": "p"
        },
        "visibility": {
          "tokens": [
            "address"
          ],
          "groupKey": "address_56"
        }
      },
      {
        "type": "divider",
        "label": "Header Divider",
        "style": {
          "lineStyle": "solid",
          "lineThickness": 1
        }
      },
      {
        "type": "text",
        "label": "Invoice Number",
        "content": {
          "mode": "tag",
          "tag": "invoice_no",
          "prefix": "رقم الفاتورة: "
        },
        "style": {
          "fontSize": 10,
          "bold": true,
          "textAlign": "left",
          "htmlTag": "p"
        }
      },
      {
        "type": "text",
        "label": "Invoice Date",
        "content": {
          "mode": "tag",
          "tag": "invoice_date",
          "prefix": "التاريخ: "
        },
        "style": {
          "fontSize": 10,
          "textAlign": "left",
          "htmlTag": "p"
        }
      },
      {
        "type": "text",
        "label": "Customer Name",
        "content": {
          "mode": "tag",
          "tag": "customer_name",
          "prefix": "العميل: "
        },
        "style": {
          "fontSize": 10,
          "bold": true,
          "textAlign": "left",
          "htmlTag": "p"
        },
        "visibility": {
          "tokens": [
            "customer_name"
          ],
          "groupKey": "customer_name_56"
        }
      },
      {
        "type": "text",
        "label": "Customer Mobile",
        "content": {
          "mode": "tag",
          "tag": "customer_mobile",
          "prefix": "رقم التلفون: "
        },
        "style": {
          "fontSize": 10,
          "textAlign": "left",
          "htmlTag": "p"
        },
        "visibility": {
          "tokens": [
            "customer_mobile"
          ],
          "groupKey": "customer_mobile_56"
        }
      },
      {
        "type": "text",
        "label": "Customer Address",
        "content": {
          "mode": "tag",
          "tag": "customer_address",
          "prefix": "العنوان: "
        },
        "style": {
          "fontSize": 10,
          "textAlign": "left",
          "htmlTag": "p"
        },
        "visibility": {
          "tokens": [
            "customer_address"
          ],
          "groupKey": "customer_address_56"
        }
      },
      {
        "type": "table",
        "label": "Line Items",
        "content": {
          "tableMode": "line",
          "columns": [
            {
              "header": "المنتج",
              "width": 36,
              "align": "left",
              "tags": [
                "line.name"
              ]
            },
            {
              "header": "ك",
              "width": 12,
              "align": "center",
              "tags": [
                "line.quantity"
              ]
            },
            {
              "header": "الوحدة",
              "width": 24,
              "align": "right",
              "tags": [
                "line.unit_price"
              ]
            },
            {
              "header": "المجموع",
              "width": 28,
              "align": "right",
              "tags": [
                "line.line_total"
              ]
            }
          ]
        },
        "style": {
          "headerFontSize": 9,
          "bodyFontSize": 9,
          "headerBold": true,
          "borderStyle": "solid",
          "borderWidth": 1,
          "borderColor": "#000000"
        }
      },
      {
        "type": "divider",
        "label": "Summary Divider",
        "style": {
          "lineStyle": "solid",
          "lineThickness": 1
        }
      },
      {
        "type": "text",
        "label": "Total Label",
        "content": {
          "mode": "static",
          "staticText": "المجموع"
        },
        "layout": {
          "width": 44,
          "newLine": true
        },
        "style": {
          "fontSize": 11,
          "bold": true,
          "textAlign": "left",
          "htmlTag": "p"
        }
      },
      {
        "type": "text",
        "label": "Total Value",
        "content": {
          "mode": "tag",
          "tag": "total"
        },
        "layout": {
          "width": 56,
          "newLine": false
        },
        "style": {
          "fontSize": 11,
          "bold": true,
          "textAlign": "right",
          "htmlTag": "p"
        }
      },
      {
        "type": "text",
        "label": "Paid Label",
        "content": {
          "mode": "static",
          "staticText": "المدفوع"
        },
        "layout": {
          "width": 44,
          "newLine": true
        },
        "style": {
          "fontSize": 10,
          "textAlign": "left",
          "htmlTag": "p"
        }
      },
      {
        "type": "text",
        "label": "Paid Value",
        "content": {
          "mode": "tag",
          "tag": "total_paid"
        },
        "layout": {
          "width": 56,
          "newLine": false
        },
        "style": {
          "fontSize": 10,
          "textAlign": "right",
          "htmlTag": "p"
        }
      },
      {
        "type": "text",
        "label": "Cash Label",
        "content": {
          "mode": "static",
          "staticText": "نقدي"
        },
        "layout": {
          "width": 44,
          "newLine": true
        },
        "style": {
          "fontSize": 10,
          "textAlign": "left",
          "htmlTag": "p"
        },
        "visibility": {
          "tokens": [
            "payment_cash"
          ],
          "groupKey": "cash_56"
        }
      },
      {
        "type": "text",
        "label": "Cash Value",
        "content": {
          "mode": "tag",
          "tag": "payment_cash"
        },
        "layout": {
          "width": 56,
          "newLine": false
        },
        "style": {
          "fontSize": 10,
          "textAlign": "right",
          "htmlTag": "p"
        },
        "visibility": {
          "tokens": [
            "payment_cash"
          ],
          "groupKey": "cash_56"
        }
      },
      {
        "type": "text",
        "label": "KNET Label",
        "content": {
          "mode": "static",
          "staticText": "كي نت"
        },
        "layout": {
          "width": 44,
          "newLine": true
        },
        "style": {
          "fontSize": 10,
          "textAlign": "left",
          "htmlTag": "p"
        },
        "visibility": {
          "tokens": [
            "payment_knet"
          ],
          "groupKey": "knet_56"
        }
      },
      {
        "type": "text",
        "label": "KNET Value",
        "content": {
          "mode": "tag",
          "tag": "payment_knet"
        },
        "layout": {
          "width": 56,
          "newLine": false
        },
        "style": {
          "fontSize": 10,
          "textAlign": "right",
          "htmlTag": "p"
        },
        "visibility": {
          "tokens": [
            "payment_knet"
          ],
          "groupKey": "knet_56"
        }
      }
    ]
  }
}
