{"_id":{"$oid":"6a795e63186d0ac57cfb9e9e"},"isActive":true,"templateType":"kitchen","title":"فاکتور 8 سانتی اشپزخانه","html":"<!doctype html>\n<html lang=\"fa\" dir=\"rtl\">\n  <head>\n    <meta charset=\"utf-8\" />\n       <style>\n      @page { margin: 4mm; }\n      * { box-sizing: border-box; }\n\n      body {\n        margin: 0;\n        color: #000;\n        background: #fff;\n        font-family: Tahoma, Arial, sans-serif;\n        font-size: 13px;\n      }\n\n      .kitchen-receipt {\n        padding: 10px;\n        border: 2px solid #000;\n      }\n\n      .title {\n        padding-bottom: 9px;\n        border-bottom: 2px solid #000;\n        font-size: 17px;\n        font-weight: 700;\n        text-align: center;\n      }\n\n      .meta {\n        display: grid;\n        grid-template-columns: 1fr 1fr;\n        gap: 7px;\n        padding: 10px 0;\n        border-bottom: 1px solid #000;\n      }\n\n      .meta-item {\n        padding: 5px;\n        border: 1px solid #000;\n      }\n\n      .label {\n        display: block;\n        margin-bottom: 3px;\n        font-size: 10px;\n      }\n\n      .value { font-weight: 700; }\n\n      .order-description {\n        margin-top: 10px;\n        padding: 8px;\n        border: 1px solid #000;\n      }\n\n      .order-description[data-order-description=\"\"] {\n        display: none;\n      }\n\n      .order-description-title {\n        display: block;\n        margin-bottom: 4px;\n        font-size: 10px;\n        font-weight: 700;\n      }\n\n      .separator {\n        border: 0;\n        border-top: 2px solid #000;\n        margin: 11px 0;\n      }\n\n      .kitchen-items {\n        width: 100%;\n        border-collapse: collapse;\n      }\n\n      .kitchen-items th {\n        padding: 5px 3px 8px;\n        border-bottom: 1px solid #000;\n        font-size: 11px;\n        text-align: right;\n      }\n\n      .kitchen-items td {\n        padding: 9px 3px;\n        vertical-align: top;\n      }\n\n      .kitchen-items tbody tr:not(:last-child) td {\n        border-bottom: 1px solid #000;\n      }\n\n      .kitchen-items tbody tr:last-child td {\n        border-bottom: 0;\n      }\n\n      .kitchen-items th:last-child,\n      .kitchen-items td:last-child {\n        width: 52px;\n        text-align: center;\n        font-weight: 700;\n      }\n\n      .item-name {\n        font-size: 14px;\n        font-weight: 700;\n      }\n\n      .item-description {\n        margin-top: 4px;\n        font-size: 11px;\n        line-height: 1.7;\n      }\n\n      .item-description:empty { display: none; }\n\n      .footer {\n        margin-top: 12px;\n        font-size: 10px;\n        text-align: center;\n      }\n    </style>\n  </head>\n\n  <body>\n    <main class=\"kitchen-receipt\">\n      <div class=\"title\">فیش آشپزخانه</div>\n\n      <section class=\"meta\">\n        <div class=\"meta-item\">\n          <span class=\"label\">شماره فاکتور</span>\n          <span class=\"value\">{{orderNumber}}</span>\n        </div>\n\n        <div class=\"meta-item\">\n          <span class=\"label\">تاریخ</span>\n          <span class=\"value\">{{orderDate}}</span>\n        </div>\n\n        <div class=\"meta-item\">\n          <span class=\"label\">ساعت</span>\n          <span class=\"value\">{{orderTime}}</span>\n        </div>\n      </section>\n\n      <section\n        class=\"order-description\"\n        data-order-description=\"{{orderDescription}}\"\n      >\n        <span class=\"order-description-title\">توضیحات سفارش</span>\n        <span>{{orderDescription}}</span>\n      </section>\n\n      <hr class=\"separator\" />\n\n      <!--\n        هر ردیف {{kitchenItems}} باید ساختاری مشابه زیر داشته باشد:\n\n        <tr>\n          <td>\n            <div class=\"item-name\">نام آیتم</div>\n            <div class=\"item-description\">توضیحات آیتم</div>\n          </td>\n          <td>تعداد</td>\n        </tr>\n      -->\n      <table class=\"kitchen-items\">\n        <thead>\n\n        </thead>\n        <tbody>\n          {{kitchenItems}}\n        </tbody>\n      </table>\n\n      <div class=\"footer\">{{orderDescription}}</div>\n    </main>\n  </body>\n</html>","variables":["{{orderNumber}}","{{orderDate}}","{{orderTime}}","{{orderDescription}}","{{kitchenItems}}"],"description":"Default HTML template for kitchen production prints.","gid":"39552883-1bf2-4398-884c-a7659b7acc1b","isDelete":false,"createdAt":{"$date":"2026-08-10T05:15:15.952Z"},"updatedAt":{"$date":"2026-08-10T05:15:15.952Z"}}
{"_id":{"$oid":"6a795e64186d0ac57cfb9e9f"},"isActive":true,"templateType":"bar","title":"بیرون بر 8 سانتی","html":"<!doctype html>\n<html lang=\"fa\" dir=\"rtl\">\n  <head>\n    <meta charset=\"utf-8\" />\n    <style>\n      @page { margin: 4mm; }\n      * { box-sizing: border-box; }\n      body {\n        margin: 0;\n        color: #000;\n        background: #fff;\n        font-family: Tahoma, Arial, sans-serif;\n        font-size: 12px;\n      }\n\n      .receipt { overflow: hidden; border: 1px solid #000; }\n      .receipt-header {\n        padding: 14px 12px;\n        border-bottom: 2px solid #000;\n        text-align: center;\n      }\n\n      .brand {\n        display: flex;\n        flex-direction: column;\n        align-items: center;\n        gap: 6px;\n      }\n\n      .logo {\n        width: 72px;\n        height: 72px;\n        filter: grayscale(1);\n        object-fit: contain;\n      }\n\n      .brand-name { font-size: 16px; font-weight: 700; }\n      .receipt-meta {\n        display: flex;\n        justify-content: space-between;\n        gap: 8px;\n        margin-top: 9px;\n        font-size: 10px;\n      }\n\n      .content { padding: 12px; }\n      .details {\n        display: grid;\n        grid-template-columns: 1fr 1fr;\n        gap: 8px;\n      }\n\n      .detail { padding: 7px; border: 1px solid #000; }\n      .detail.full-width { grid-column: 1 / -1; }\n      .detail-label { margin-bottom: 3px; font-size: 10px; }\n      .detail-value { font-weight: 700; }\n\n      /* در صورت خالی بودن آدرس، این بخش نمایش داده نمی‌شود */\n      .customer-address[data-customer-address=\"\"] { display: none; }\n\n      .separator {\n        border: 0;\n        border-top: 1px dashed #000;\n        margin: 12px 0;\n      }\n\n      .items { width: 100%; border-collapse: collapse; }\n      .items th {\n        padding: 0 3px 8px;\n        border-bottom: 1px solid #000;\n        font-size: 10px;\n        font-weight: 700;\n        text-align: right;\n        white-space: nowrap;\n      }\n\n      .items td {\n        padding: 8px 3px;\n        border-bottom: 1px dashed #000;\n        vertical-align: top;\n      }\n\n      .items th:first-child,\n      .items td:first-child { width: 40%; }\n\n      .items th:not(:first-child),\n      .items td:not(:first-child) {\n        text-align: center;\n        white-space: nowrap;\n      }\n\n      .summary { margin-top: 10px; }\n      .summary-row {\n        display: flex;\n        justify-content: space-between;\n        padding: 4px 0;\n      }\n\n      .total {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        margin-top: 7px;\n        padding-top: 9px;\n        border-top: 2px solid #000;\n        font-size: 13px;\n        font-weight: 700;\n      }\n\n      .footer {\n        margin-top: 12px;\n        font-size: 10px;\n        text-align: center;\n      }\n    </style>\n  </head>\n\n  <body>\n    <main class=\"receipt\">\n      <header class=\"receipt-header\">\n        <div class=\"brand\">\n          <img class=\"logo\" data-print-section=\"ownerLogo\" src=\"{{ownerLogo}}\" />\n          <div class=\"brand-name\" data-print-section=\"ownerName\">{{ownerName}}</div>\n        </div>\n\n        <div class=\"receipt-meta\">\n          <span>فاکتور بیرون‌بر</span>\n          <span>{{orderDate}}</span>\n        </div>\n      </header>\n\n      <section class=\"content\">\n        <div class=\"details\">\n          <div class=\"detail\">\n            <span class=\"detail-label\">شماره سفارش: </span>\n            <span class=\"detail-value\">{{orderNumber}}</span>\n          </div>\n\n          <div class=\"detail\">\n            <span class=\"detail-label\">نام مشتری: </span>\n            <span class=\"detail-value\">{{customerName}}</span>\n          </div>\n\n          <div\n            class=\"detail full-width customer-address\"\n            data-customer-address=\"{{customerAddress}}\"\n          >\n            <span class=\"detail-label\">آدرس مشتری: </span>\n            <span class=\"detail-value\">{{customerAddress}}</span>\n          </div>\n        </div>\n\n        <hr class=\"separator\" />\n\n        {{items}}\n\n        <hr class=\"separator\" />\n\n        <div class=\"summary\">\n          <div class=\"summary-row\" data-print-section=\"discount\">\n            <span>جمع تخفیف</span>\n            <span>{{discountAmount}}</span>\n          </div>\n\n          <div class=\"summary-row\" data-print-section=\"deliveryFee\">\n            <span>هزینه ارسال</span>\n            <span>{{deliveryFee}}</span>\n          </div>\n\n          <div class=\"summary-row\" data-print-section=\"packagingFee\">\n            <span>هزینه بسته‌بندی</span>\n            <span>{{packagingFee}}</span>\n          </div>\n\n          <div class=\"summary-row\" data-print-section=\"tax\">\n            <span>مالیات</span>\n            <span>{{taxAmount}}</span>\n          </div>\n        </div>\n\n        <div class=\"total\">\n          <span>مبلغ قابل پرداخت</span>\n          <span>{{totalAmount}}</span>\n        </div>\n\n        <div class=\"footer\" data-print-section=\"footer\">\n          از انتخاب شما سپاسگزاریم\n        </div>\n        <div class=\"footer\" data-print-section=\"footer\">\n          Powered with ♥ in LiveMenu\n        </div>\n        <div class=\"footer\" data-print-section=\"ownerAppUrl\">\n          {{ownerAppUrl}}\n        </div>\n      </section>\n    </main>\n  </body>\n</html>","variables":["{{ownerLogo}}","{{ownerName}}","{{orderDate}}","{{orderNumber}}","{{customerName}}","{{customerAddress}}","{{items}}","{{discountAmount}}","{{deliveryFee}}","{{packagingFee}}","{{taxAmount}}","{{totalAmount}}","{{ownerAppUrl}}"],"description":"Default HTML template for bar production prints.","gid":"ded8897b-f11e-4f65-8bad-cff7c9855a62","isDelete":false,"createdAt":{"$date":"2026-08-10T05:15:16.001Z"},"updatedAt":{"$date":"2026-08-10T05:15:16.001Z"}}
{"_id":{"$oid":"6a795e64186d0ac57cfb9ea0"},"isActive":true,"templateType":"cashier","title":"8 سانتی سالن","html":"<!doctype html>\n<html lang=\"fa\" dir=\"rtl\">\n  <head>\n    <meta charset=\"utf-8\" />\n    <style>\n      @page { margin: 4mm; }\n      * { box-sizing: border-box; }\n      body { margin: 0; color: #000; background: #fff; font-family: Tahoma, Arial, sans-serif; font-size: 12px; }\n      .receipt { overflow: hidden; border: 1px solid #000; }\n      .receipt-header { padding: 14px 12px; border-bottom: 2px solid #000; text-align: center; }\n      .brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }\n      .logo { width: 72px; height: 72px; filter: grayscale(1); object-fit: contain; }\n      .brand-name { font-size: 16px; font-weight: 700; }\n      .receipt-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 10px; }\n      .content { padding: 12px; }\n      .details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }\n      .detail { padding: 7px; border: 1px solid #000; }\n      .detail-label { margin-bottom: 3px; font-size: 10px; }\n      .detail-value { font-weight: 700; }\n      .separator { border: 0; border-top: 1px dashed #000; margin: 12px 0; }\n      .items { width: 100%; border-collapse: collapse; }\n      .items th { padding: 0 3px 8px; border-bottom: 1px solid #000; font-size: 10px; font-weight: 700; text-align: right; white-space: nowrap; }\n      .items td { padding: 8px 3px; border-bottom: 1px dashed #000; vertical-align: top; }\n      .items th:first-child, .items td:first-child { width: 40%; }\n      .items th:not(:first-child), .items td:not(:first-child) { text-align: center; white-space: nowrap; }\n      .summary { margin-top: 10px; }\n      .summary-row { display: flex; justify-content: space-between; padding: 4px 0; }\n      .total { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; padding-top: 9px; border-top: 2px solid #000; font-size: 13px; font-weight: 700; }\n      .footer { margin-top: 12px; font-size: 10px; text-align: center; }\n    </style>\n  </head>\n  <body>\n    <main class=\"receipt\">\n      <header class=\"receipt-header\">\n        <div class=\"brand\">\n          <img class=\"logo\" data-print-section=\"ownerLogo\" src=\"{{ownerLogo}}\" />\n          <div class=\"brand-name\" data-print-section=\"ownerName\">{{ownerName}}</div>\n        </div>\n        <div class=\"receipt-meta\"><span>شماره سفارش : {{orderNumber}}</span><span>{{orderDate}}</span></div>\n      </header>\n      <section class=\"content\">\n        <div class=\"details\">\n          <div class=\"detail\" data-print-section=\"table\"><span class=\"detail-label\">شماره میز : </span><span class=\"detail-value\">{{tableName}} | {{tableCode}}</span></div>\n          <div class=\"detail\"><span class=\"detail-label\">نام مشتری : </span><span class=\"detail-value\">{{customerName}}</span></div>\n        </div>\n        <hr class=\"separator\" />\n        {{items}}\n        <div class=\"summary\">\n          <div class=\"summary-row\" data-print-section=\"discount\"><span>جمع تخفیف</span><span>{{discountAmount}}</span></div>\n          <div class=\"summary-row\" data-print-section=\"deliveryFee\"><span>هزینه ارسال</span><span>{{deliveryFee}}</span></div>\n          <div class=\"summary-row\" data-print-section=\"packagingFee\"><span>هزینه بسته‌بندی</span><span>{{packagingFee}}</span></div>\n          <div class=\"summary-row\" data-print-section=\"tax\"><span>مالیات</span><span>{{taxAmount}}</span></div>\n        </div>\n        <div class=\"total\"><span>مبلغ قابل پرداخت</span><span>{{totalAmount}}</span></div>\n        <div class=\"footer\" data-print-section=\"footer\">از انتخاب شما سپاسگزاریم</div>\n        <div class=\"footer\" data-print-section=\"footer\">Powered with ♥ in LiveMenu</div>\n        <div class=\"footer\" data-print-section=\"ownerAppUrl\">{{ownerAppUrl}}</div>\n      </section>\n    </main>\n  </body>\n</html>","variables":["{{ownerLogo}}","{{ownerName}}","{{orderNumber}}","{{orderDate}}","{{tableName}}","{{tableCode}}","{{customerName}}","{{items}}","{{discountAmount}}","{{deliveryFee}}","{{packagingFee}}","{{taxAmount}}","{{totalAmount}}","{{ownerAppUrl}}"],"description":"Default HTML template for cashier prints.","gid":"029972d5-4bac-4b00-b833-a97b0e759f86","isDelete":false,"createdAt":{"$date":"2026-08-10T05:15:16.008Z"},"updatedAt":{"$date":"2026-08-10T05:15:16.008Z"}}
{"_id":{"$oid":"6a795e64186d0ac57cfb9ea1"},"isActive":true,"templateType":"customer","title":"Customer receipt","html":"<!doctype html>\n<html lang=\"fa\" dir=\"rtl\">\n  <head>\n    <meta charset=\"utf-8\" />\n    <style>\n      @page { margin: 4mm; }\n      * { box-sizing: border-box; }\n      body { margin: 0; color: #000; background: #fff; font-family: Tahoma, Arial, sans-serif; font-size: 13px; }\n      .kitchen-receipt { border: 2px solid #000; padding: 10px; }\n      .kitchen-title { padding-bottom: 9px; border-bottom: 2px solid #000; font-size: 17px; font-weight: 700; text-align: center; }\n      .meta { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; font-weight: 700; }\n      .destination { margin-bottom: 8px; padding: 7px; border: 1px solid #000; }\n      .order-description { margin-bottom: 8px; padding: 7px; border: 1px solid #000; line-height: 1.7; }\n      .order-description[data-order-description=\"\"] { display: none; }\n      .separator { border: 0; border-top: 1px solid #000; margin: 9px 0; }\n      .kitchen-items, .items { width: 100%; border-collapse: collapse; }\n      .kitchen-items th, .items th { padding: 5px 3px; border-bottom: 1px solid #000; text-align: right; font-size: 11px; }\n      .kitchen-items tbody tr:not(:last-child) td, .items tbody tr:not(:last-child) td { padding: 8px 3px; border-bottom: 1px solid #000; vertical-align: top; }\n      .kitchen-items tbody tr:last-child td, .items tbody tr:last-child td { padding: 8px 3px; border-bottom: 0; vertical-align: top; }\n      .kitchen-items th:last-child, .kitchen-items td:last-child, .items th:not(:first-child), .items td:not(:first-child) { text-align: center; white-space: nowrap; }\n      .summary-row, .total { display: flex; justify-content: space-between; padding: 4px 0; }\n      .total { margin-top: 7px; padding-top: 8px; border-top: 2px solid #000; font-weight: 700; }\n      .footer { margin-top: 11px; font-size: 10px; text-align: center; }\n    </style>\n  </head>\n  <body>\n    <main class=\"kitchen-receipt\">\n      <div class=\"kitchen-title\">رسید آشپزخانه</div>\n      <div class=\"meta\"><span>شماره سفارش: {{orderNumber}}</span><span>{{orderDate}}</span><span>{{orderTime}}</span></div>\n      <div class=\"destination\" data-print-section=\"table\">شماره میز: <strong>{{tableName}}</strong><br />کد میز: <strong>{{tableCode}}</strong></div>\n      <div class=\"order-description\" data-order-description=\"{{orderDescription}}\">توضیحات سفارش: {{orderDescription}}</div>\n      <hr class=\"separator\" />\n      {{items}}\n      <hr class=\"separator\" />\n        <div class=\"summary\">\n          <div class=\"summary-row\" data-print-section=\"discount\"><span>جمع تخفیف</span><span>{{discountAmount}}</span></div>\n          <div class=\"summary-row\" data-print-section=\"deliveryFee\"><span>هزینه ارسال</span><span>{{deliveryFee}}</span></div>\n          <div class=\"summary-row\" data-print-section=\"packagingFee\"><span>هزینه بسته‌بندی</span><span>{{packagingFee}}</span></div>\n          <div class=\"summary-row\" data-print-section=\"tax\"><span>مالیات</span><span>{{taxAmount}}</span></div>\n        </div>\n        <div class=\"total\" data-print-section=\"total\"><span>مبلغ قابل پرداخت</span><span>{{totalAmount}}</span></div>\n      <div class=\"footer\" data-print-section=\"footer\">از انتخاب شما سپاسگزاریم</div>\n    </main>\n  </body>\n</html>","variables":["{{orderNumber}}","{{orderDate}}","{{orderTime}}","{{tableName}}","{{tableCode}}","{{orderDescription}}","{{items}}","{{discountAmount}}","{{deliveryFee}}","{{packagingFee}}","{{taxAmount}}","{{totalAmount}}"],"description":"Default HTML template for customer-facing receipts.","gid":"a1abf8ff-c8fc-4412-9734-aa3186893327","isDelete":false,"createdAt":{"$date":"2026-08-10T05:15:16.013Z"},"updatedAt":{"$date":"2026-08-10T05:15:16.013Z"}}
