+ <% it.invoices.forEach(function(inv) {
+ const statusColors = { paid: 'green', confirming: 'blue', pending: 'yellow' };
+ const statusColor = statusColors[inv.status] || 'gray';
+ const date = new Date(inv.created_at).toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric' });
+ const planLabel = inv.plan === 'lifetime' ? 'Lifetime' : `Pro × ${inv.months}mo`;
+ %>
+
+
+
+
+ <%= planLabel %>
+ $<%= Number(inv.amount_usd).toFixed(2) %> · <%= inv.coin.toUpperCase() %>
+
+
+
+
<%= date %>
+ <% if (inv.status === 'pending' || inv.status === 'confirming') { %>
+
View
+ <% } else if (inv.status === 'paid' && inv.txid) { %>
+
Paid
+ <% } %>
+
+
+ <% }) %>
+
+