{
  "id": "batch-labels-excel-template",
  "name": "Batch Number Labels",
  "description": "Batch Number Labels layout with mapped Batch Number, Product Name, Manufacture Date, Expiry Date fields, XLSX sample data, and print-ready sizing.",
  "category": "Barcode & Identification",
  "thumbnail": "/templates/thumbnails/batch-labels-excel-template.svg",
  "settings": {
    "width": 76,
    "height": 50,
    "unit": "mm",
    "dpi": 203,
    "name": "Batch Number Labels",
    "type": "batch_number_labels"
  },
  "elements": [
    {
      "id": "border",
      "type": "RECTANGLE",
      "x": 1,
      "y": 1,
      "width": 74,
      "height": 48,
      "fill": "#ffffff",
      "stroke": "#111827",
      "strokeWidth": 0.4,
      "borderRadius": 1
    },
    {
      "id": "title",
      "type": "TEXT",
      "x": 3,
      "y": 3,
      "width": 70,
      "height": 8,
      "content": "Batch Number Labels",
      "fontSize": 8,
      "fontWeight": "bold",
      "textAlign": "center",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "main",
      "type": "TEXT",
      "x": 4,
      "y": 12,
      "width": 68,
      "height": 8,
      "content": "{{Batch Number}}",
      "fontSize": 8.5,
      "fontWeight": "bold",
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "secondary",
      "type": "TEXT",
      "x": 4,
      "y": 22,
      "width": 68,
      "height": 6,
      "content": "{{Product Name}} | {{Manufacture Date}}",
      "fontSize": 6,
      "textFitMode": "shrink",
      "color": "#111827"
    },
    {
      "id": "barcode",
      "type": "BARCODE",
      "x": 4,
      "y": 33,
      "width": 68,
      "height": 12.5,
      "content": "{{Barcode}}",
      "barcodeFormat": "CODE128",
      "barcodeShowText": true
    },
    {
      "id": "mapped-details",
      "type": "TEXT",
      "x": 3,
      "y": 44,
      "width": 70,
      "height": 4,
      "content": "Expiry Date: {{Expiry Date}}",
      "fontSize": 4,
      "textFitMode": "shrink",
      "textAlign": "center",
      "color": "#374151"
    }
  ],
  "columns": [
    {
      "key": "batch_number",
      "label": "Batch Number",
      "required": true
    },
    {
      "key": "product_name",
      "label": "Product Name",
      "required": true
    },
    {
      "key": "manufacture_date",
      "label": "Manufacture Date",
      "required": true
    },
    {
      "key": "expiry_date",
      "label": "Expiry Date",
      "required": false
    },
    {
      "key": "barcode",
      "label": "Barcode",
      "required": false
    }
  ],
  "files": {
    "xlsx": "/label-templates/batch-labels-excel-template.xlsx",
    "json": "/templates/batch-labels-excel-template.json",
    "svg": "/templates/thumbnails/batch-labels-excel-template.svg"
  }
}
