<% let priceLines = {}; let partyHeadings = {}; ['buyer', 'vendor', 'moderator'].forEach(type => { priceLines[type] = ob.currencyMod.pairedCurrency( ob.payout[`${type}Output`].amount, ob.currencyMod.getServerCurrency().code, ob.userCurrency ); partyHeadings[type] = ob[`${type}Name`] ? ob.polyT(`orderDetail.summaryTab.disputePayout.${type}HeadingWithName`, { name: ob[`${type}Name`] }) : ob.polyT(`orderDetail.summaryTab.disputePayout.${type}Heading`); }); %>

<%= ob.polyT('orderDetail.summaryTab.disputePayout.heading') %>

<% if (ob.timestamp) { %> <%= ob.moment(ob.timestamp).format('lll') %> <% } %>
<%= partyHeadings.buyer %>
<%= priceLines.buyer %>
<%= partyHeadings.vendor %>
<%= priceLines.vendor %>
<%= partyHeadings.moderator %>
<%= priceLines.moderator %>
<% if (ob.showAcceptButton) { %> <%= ob.processingButton({ className: `btn clrBAttGrad clrBrDec1 clrTOnEmph tx5b js-acceptPayout ${ob.acceptInProgress ? 'processing' : ''} ${ob.acceptConfirmOn ? 'disabled' : '' }`, btnText: ob.polyT('orderDetail.summaryTab.disputePayout.btnAcceptPayout') }) %> <% } %> <% if (ob.acceptConfirmOn) { %>
<%= ob.polyT('orderDetail.summaryTab.disputePayout.acceptPayoutConfirm.title') %>

<%= ob.polyT('orderDetail.summaryTab.disputePayout.acceptPayoutConfirm.body') %>


<% } %>
<% const noteFromHeading = ob.moderatorName ? ob.polyT('orderDetail.summaryTab.disputePayout.noteFromHeadingWithName', { name: ob.moderatorName }) : ob.polyT('orderDetail.summaryTab.disputePayout.noteFromHeading'); %>
<%= noteFromHeading %>
<%= ob.resolution %>