<% if (locals.notifications && locals.notifications.length > 0) { %>
<% locals.notifications.forEach(n => { %>
<%- n.message.replace(/\*\*(.*?)\*\*/g, '$1') %>
<% if (n.expense_id) { %>
Store/Vendor: <%= n.store_name %>
Date: <%= (n.date || '').toString().split('T')[0] %>
Transaction ID: <%= n.transaction_id %>
Job Number: <%= n.job_number || '—' %>
Supervisor: <%= n.supervisor || '—' %>
Payment Type: <%= n.payment_type %>
<% if (n.description) { %>
Description: <%= n.description %>
<% } %>
Total: $<%= parseFloat(n.total_amount || 0).toFixed(2) %>
(Net: $<%= parseFloat(n.net_amount || 0).toFixed(2) %>, Tax: $<%= parseFloat(n.tax_amount || 0).toFixed(2) %> <%= n.tax_type %>)
<% if (n.receipt_photo_path) { %>
<% } %>
<% if (n.rejection_reason) { %>
Rejection Reason: <%= n.rejection_reason %>
<% } %>
<% } %>
<%= new Date(n.created_at).toLocaleString() %>
<% }) %>
<% } else { %>
<% } %>