<% if (user.profileImage) { %> <% } %> <% if (user.companyName) { %>
<%= user.companyName %>
<% } %> <% if (user.busniessNo || user.email || user.phone) { %>
<% if (user.licenseNumber) { %> License No: <%= user.licenseNumber %> <% } %> <% if (user.email) { %> <%= user.email %> <% } %> <% if (user.phone) { %> <%= user.phone %> <% } %>
<% } %> <% const fullAddress = [ user.address, user.country ].filter(Boolean).join(', '); %> <% if (fullAddress) { %>
<%= fullAddress %>
<% } %>
Estimate Info
Estimate No :<%= EstimateNo %>
Date: <%= date %>
Valid Till: <%= dueDate %>
Client
<%= client.name %>
<%= client.email %>
<%= client.phone %>
<% items.forEach(item => { %> <% }) %>
Description Qty Price Discount Tax Total
<%= item.name %>
<%= item.description %>
<%= item.quantity %> <%= user.currencySymbol%><%= item.price.toFixed(2) %> <%= user.currencySymbol%><%= item.discountAmount.toFixed(2) %> <% if (taxType === "on_total") { %> <% if (item.isTaxable) { %> <% } else { %> <% } %> <% } else if (taxType === "per_item") { %> <%= user.currencySymbol %><%= item.taxAmount.toFixed(2) %> <% } %> <%= user.currencySymbol%><%= item.lineTotal.toFixed(2) %>
Subtotal <%= user.currencySymbol%><%= summary.subTotal.toFixed(2) %>
Discount - <%= user.currencySymbol%><%= summary.estimateDiscountAmount.toFixed(2) %>
Tax <%= taxType === "on_total" ? "on Total" : "Per Item" %> <%= user.currencySymbol%><%= summary.taxTotal.toFixed(2) %>
Total <%= user.currencySymbol%><%= summary.grandTotal.toFixed(2) %>
<% if (user.terms && user.terms.trim() !== "") { %>
Terms & Conditions
<%= user.terms %>
* Please review all terms before accepting this estimate.
<% } %> <% if (attachments && attachments.length) { %>
<% attachments.forEach(att => { %>
<% if (att.type && att.type.startsWith("image")) { %> <% } else if (att.type && att.type.includes("pdf")) { %>
📄 <%= att.name %>
PDF Document
View PDF
<% } else { %>
Attachment: <%= att.name %>
<% } %>
<% }) %>
<% } %>