<% if(ob.invalidData){ %>

<%= polyglot.t('errorMessages.serverError') %>

<% } else { %>
<% if(ob.status == 0){ %>
<% if(ob.transactionType == "purchases"){ %> <%= polyglot.t('transactions.BuyerPaidMessage', { paidAmount: ob.intlNumFormat(ob.orderPaid, 8), totalAmount: ob.intlNumFormat(ob.orderPrice, 8) }) %> <% } else { %> <%= polyglot.t('transactions.SellerPaidMessage', { paidAmount: ob.intlNumFormat(ob.orderPaid, 8), totalAmount: ob.intlNumFormat(ob.orderPrice, 8) }) %> <% } %>
<% if(ob.transactionType == "purchases"){ %> <%= polyglot.t('transactions.BuyerPaidMessageHelp') %> <% } else { %> <%= polyglot.t('transactions.SellerPaidMessageHelp') %> <% } %>
<% } %>
<% if(ob.buyer_order.order.shipping && ob.status > 0) { %>
<% if(ob.displayShippingPrice){ %> <%= ob.formatBitcoin(ob.displayShippingPriceBTC) %> (<%= ob.displayShippingPrice %>) <% } else if(ob.displayShippingPriceBTC){ %> <%= ob.formatBitcoin(ob.displayShippingPriceBTC) %> <% } else { %> <%= polyglot.t('Free') %> <% } %>
<% } %> <% if( ob.displayModerator) { %> <% } %>
*<%= polyglot.t('PriceForOne') %>
<%= polyglot.t('transactions.OrderTotal') %>
<% if(ob.displayTotalPrice){ %> <%= ob.formatBitcoin(ob.buyer_order.order.payment.amount) %> (<%= ob.displayTotalPrice %>) <% } else if(ob.buyer_order.order.payment.amount){ %> <%= ob.formatBitcoin(ob.buyer_order.order.payment.amount) %> <% } else { %> <%= polyglot.t('Free') %> <% } %>
<% if(ob.buyer_order.order.shipping && ob.status > 0) { %>
<%= polyglot.t('ShipTo') %>
<%- ob.buyer_order.order.shipping.ship_to %>
<%- ob.buyer_order.order.shipping.address %>
<%- ob.buyer_order.order.shipping.city %> <%- ob.buyer_order.order.shipping.state %> <%- ob.buyer_order.order.shipping.postal_code %>
<%- ob.buyer_order.order.alternate_contact %>
<%= polyglot.t('countries.' + ob.buyer_order.order.shipping.country) %>
<% } %> <% if( ob.vendor_order_confirmation) { %>
style="background-image: url(<%- ob.serverUrl %>get_image?hash=<%- ob.vendor_offer.listing.item.image_hashes[0] %>&guid=<%-ob.vendor_offer.listing.id.guid %>), url(imgs/defaultBanner.png);" <% } else { %> style="background-image: url(imgs/defaultBanner.png);" <% } %>>
<%- ob.vendor_order_confirmation.invoice.comments ? ob.vendor_order_confirmation.invoice.comments : polyglot.t('transactions.None') %>
<% if( ob.vendor_order_confirmation.invoice.shipping) { %>
<%= polyglot.t('transactions.EstimatedDelivery') %> <%= ob.vendor_order_confirmation.invoice.shipping.est_delivery ? ob.vendor_order_confirmation.invoice.shipping.est_delivery : polyglot.t('transactions.None') %>
<%= polyglot.t('transactions.Shipper') %> <%= ob.vendor_order_confirmation.invoice.shipping.shipper ? ob.vendor_order_confirmation.invoice.shipping.shipper : polyglot.t('transactions.None') %>
<%= polyglot.t('transactions.TrackingNumber') %> <%= ob.vendor_order_confirmation.invoice.shipping.tracking_number ? ob.vendor_order_confirmation.invoice.shipping.tracking_number : polyglot.t('transactions.None') %>
<% } %> <% if( ob.vendor_order_confirmation.invoice.content_source) { %> <% if( ob.vendor_order_confirmation.invoice.content_source.password) { %>
<%= polyglot.t('transactions.Password') %> <%= ob.vendor_order_confirmation.invoice.content_source.password ? ob.vendor_order_confirmation.invoice.content_source.password : polyglot.t('transactions.None') %>
<% }else{ %>
<%= polyglot.t('transactions.Password') %> <%- polyglot.t('transactions.None') %>
<% } %> <% } %>
<% if( ob.vendor_order_confirmation.invoice.content_source && ob.vendor_order_confirmation.invoice.content_source.url ) { %> <% } %>
<% } %>
<% if( ob.displayModerator) { %> <%= polyglot.t('transactions.ModeratedTransaction') %> <% if(ob.displayTotalPrice){ %> <%= ob.formatBitcoin(ob.buyer_order.order.payment.amount) %> (<%= ob.displayTotalPrice %>) <% } else if(ob.buyer_order.order.payment.amount){ %> <%= ob.formatBitcoin(ob.buyer_order.order.payment.amount) %> <% } else { %> <%= polyglot.t('Free') %> <% } %> <% } else { %> <%= polyglot.t('transactions.DirectTransaction') %> <% if(ob.displayTotalPrice){ %> <%= ob.formatBitcoin(ob.buyer_order.order.payment.amount) %> (<%= ob.displayTotalPrice %>) <% } else if(ob.buyer_order.order.payment.amount){ %> <%= ob.formatBitcoin(ob.buyer_order.order.payment.amount) %> <% } else { %> <%= polyglot.t('Free') %> <% } %> <% } %>
<% if(ob.bitcoin_txs && ob.bitcoin_txs[0]){ %> <% if(config.testnet){ %> <% }else{ %> <% } %>
<%= polyglot.t('transactions.ViewOnBlockchain') %>
<% } else if(ob.buyer_order.order.payment.address){ %> <% if(config.testnet){ %> <% }else{ %> <% } %>
<%= polyglot.t('transactions.ViewOnBlockchain') %>
<% } %>
style="background-image: url(<%- ob.vendorAvatarURL %>), url(imgs/defaultUser.png);" <% } else if(ob.transactionType == "sales"){ %> style="background-image: url(<%- ob.avatarURL %>), url(imgs/defaultUser.png);" <% } else { %> style="background-image: url(imgs/defaultUser.png);" <% } %>>
<% if(ob.displayTotalPrice){ %> +<%= ob.formatBitcoin(ob.buyer_order.order.payment.amount) %> (<%= ob.displayTotalPrice %>) <% } else if(ob.buyer_order.order.payment.amount){ %> +<%= ob.formatBitcoin(ob.buyer_order.order.payment.amount) %> <% } else { %> <%= polyglot.t('Free') %> <% } %>
style="background-image: url(<%- ob.avatarURL %>), url(imgs/defaultUser.png);" <% } else if(ob.buyerAvatarURL && ob.transactionType == "sales"){ %> style="background-image: url(<%- ob.buyerAvatarURL %>), url(imgs/defaultUser.png);" <% } else { %> style="background-image: url(imgs/defaultUser.png);" <% } %>>
<% if(ob.displayTotalPrice){ %> -<%= ob.formatBitcoin(ob.buyer_order.order.payment.amount) %> (<%= ob.displayTotalPrice %>) <% } else if(ob.buyer_order.order.payment.amount){ %> -<%= ob.formatBitcoin(ob.buyer_order.order.payment.amount) %> <% } else { %> <%= polyglot.t('Free') %> <% } %>
<% if( ob.displayModerator) { %>
<% if(ob.displayModerator){ %> <% if(ob.status == 1 && ob.transactionType == "purchases"){ %> <% } %> <% if(ob.status == 2 || ob.status == 3){ %> <% } %> <% } %>
<% } %>
<%= polyglot.t('transactions.NoMessages') %>
style="background-image: url(<%= ob.avatarURL %>), url(imgs/offlineUser.png);"> <% } else { %> style="background-image: url(imgs/defaultUser.png);"> <% } %>
<%= polyglot.t('transactions.SendMessage') %> <% if(ob.transactionType == "cases" && ob.status == 4){ %>
<% } else if(ob.transactionType == "cases" && ob.status > 4){ %>
<%= polyglot.t('transactions.CloseDisputeResend') %>
<% } else if(ob.status < 4 && ob.status != 0 && ob.displayModerator) { %> <% if(ob.status == 2 || ob.staus == 3 || ob.status == 1 && ob.transactionType == "purchases"){ %>
<% } %> <% } else if(ob.status == 4 && ob.dispute && ob.dispute.info.guid == ob.userGuid) {%>
<%= polyglot.t('transactions.DisputeTransactionResend') %>
<% } %>
<%= polyglot.t('transactions.TotalInTransaction') %> <%= ob.formatBitcoin(ob.buyer_order.order.payment.amount - ob.buyer_order.order.payment.amount * ob.displayModerator.feeDecimal) %>
<%= polyglot.t('transactions.YouEarn') %> <%= ob.formatBitcoin(ob.buyer_order.order.payment.amount * ob.displayModerator.feeDecimal) %>
<% if(ob.vendor_order_confirmation){ %>
style="background-image: url(<%- ob.buyerAvatarURL %>), url(imgs/defaultUser.png);"> <% } else { %> style="background-image: url(imgs/defaultUser.png);" <% } %>>
<%= polyglot.t('transactions.BuyerAmount') %>
%
style="background-image: url(<%- ob.vendorAvatarURL %>), url(imgs/defaultUser.png);"> <% } else { %> style="background-image: url(imgs/defaultUser.png);" <% } %>>
<%= polyglot.t('transactions.SellerAmount') %>
%
<% } else {%>
<%= polyglot.t('transactions.PayoutOnlyBuyer') %>
<% } %>
<%= polyglot.t('transactions.YourBitcoinPaymentAddress') %>
<% if(config.testnet) { %>
<%= polyglot.t('TestnetAddress') %>
<% } %>
<% } %>