- <%= localize.myCard %>
- <%= localize.rewards %> <%if (showOffersTab) {%>
- <%}%>
<%= localize.tapToScanLoyalty %>
<%= model.get('firstName').value%> <%= model.get('lastName').value %>
<%= pointsPlan ? pointsPlan.currentAmount : 0 %>
<%= model.get('cardNumber').value.replace(loyaltyMask, insertSymbol) %>
<%= localize.points %>
<%if (showPassbookIcon) { %> <%var passBtnWidth = giftCard && !giftCard.hideBalance? '140px' : '304px'; %>

<%= Globalize.format(giftCard.Balance || 0, 'cn', window.AppConfig.AppCulture)%>
<%=localize.balance%>
<%} %>
<% if(!this.options.loyaltyError) {%>
<%= localize.manageAccountProfile %>
<%}%>
<%var plans = _.reject(model.get('planStatus'), function (plan) {
return plan.targetAmount == 'N/A' &&
plan.nextReward == 'N/A' &&
plan.planName != window.appConfig.DefaultLoyaltyBonusPlan;
});%>
<% _.each(plans, function(plan) { %>
<%var targetAmount = plan.targetAmount !== undefined ? plan.targetAmount.replace(',','') : '';
var currentAmount = plan.currentAmount !== undefined ? plan.currentAmount.replace(',','') : '';
%>
<%if (plan.planType == 'points' && plan.nextReward != 'N/A') { %>
<% if ($.isNumeric(targetAmount) && $.isNumeric(currentAmount)) { %>
<% var width = (currentAmount / targetAmount) * 100;%>
<%= currentAmount %> / <%= targetAmount %> <%= localize.pts %>
<%}%>
<%}%>
<%});%>
<%= plan.planName %>
<%if (plan.planType == 'points' && !$.isNumeric(targetAmount)) {%> <%= currentAmount %> <%= localize.points %> <%}%><%= plan.planDescription.replace(/\r\n/g, '
') %>
') %>
<% _.each(model.get('loyaltyBanners'), function (banner) { %>
<% }%>
<%});%>