<% if(coupon === undefined || coupon.LegCount() === 0) { %>
Betslip0
Your Betslip
is Currently Empty
0.00
0.00
<%= GWCORE.Coupon.respGamblingMesg %>
<%= GWCORE.Coupon.respGamblingCall %>
<% } else { %>
<% if (coupon.currentMode != GWCORE.Coupon.CouponModes.Receipt) { %> Betslip <% if(coupon.currentMode != GWCORE.Coupon.CouponModes.Edit) { %> <% } %> <% } else { %> Receipt <% } %> <% if(coupon.currentMode != GWCORE.Coupon.CouponModes.Confirm) { %> <%= coupon.LegCount() %> <% } %>
All Bets:
<% _(coupon.GetOrderedHashes()).each(function(legHash) { legValue = coupon.legs[legHash]; var betlegTemplateHtml = GWCORE.Utils.FetchTemplate('/assets/templates/bettingPanel/betleg.html'); var betlegTemplate = _.template(betlegTemplateHtml); var betlegContent = betlegTemplate({coupon: coupon, legValue: legValue, legHash: legHash}); %> <%= betlegContent %> <% }); %>
<% if(coupon.allowMultiBet) { %>
<% if(GWCORE.Coupon.toggleParlay !== undefined) { %>
Multi Options Parlay
<% } else { %>
Multi/Parlay Options
<% } %>
Stake
Total
<% for(var i = 2; i < coupon.LegCount(); i++) { if(coupon.parlayOpts[i] !== undefined && coupon.parlayOpts[i].combos > 0) { var parlayAmt = 0; var parlayDescOLD = "x " + i + " Picks"; var parlayDesc = GWCORE.Coupon.GetIntegerWord(i) + " Picks"; switch(i) { case 2: parlayAmt = coupon.parlay2; parlayDesc = " Doubles"; break; case 3: parlayAmt = coupon.parlay3; parlayDesc = " Trebles"; break; case 4: parlayAmt = coupon.parlay4; break; case 5: parlayAmt = coupon.parlay5; break; case 6: parlayAmt = coupon.parlay6; break; case 7: parlayAmt = coupon.parlay7; break; case 8: parlayAmt = coupon.parlay8; break; case 9: parlayAmt = coupon.parlay9; break; }%>
<%= parlayDesc %>
<%= coupon.parlayOpts[i].combos %> Combinations
@ -
<% if(coupon.currentMode === GWCORE.Coupon.CouponModes.Edit) { %> <% } else { %> <%= GWCORE.GetCurrencySymbol() %><%= parlayAmt %> <% } %>
<%= GWCORE.GetCurrencySymbol() %>-
<%= GWCORE.GetCurrencySymbol() %>-
<% if(GWCORE.AccountPrefs.ShowQuickAmounts(GWCORE.AccountPrefs.QuickAmountShowMode.Primary)) { var colStyle= "ttlBtn" + (GWCORE.AccountPrefs.QuickAmounts.length + 1); %>
<% _(GWCORE.AccountPrefs.QuickAmounts).each(function(val) { var showVal = val; if(GWCORE.Utils.GetDecimalOrZero(val) >= 1000) showVal = val/1000 + "K"; %>
<%= showVal %>
<% }); %>
Clear
<% %>
<% } %>
ERROR
<% } } %>
<%= coupon.LegCount() %>-Leg Multi
1 Combination
@ - -
<% if(coupon.currentMode === GWCORE.Coupon.CouponModes.Edit) { %> <% } else { %> <%= GWCORE.GetCurrencySymbol() %><%= coupon.multiAmt %> <% } %>
<%= GWCORE.GetCurrencySymbol() %>-
<% if(GWCORE.AccountPrefs.ShowQuickAmounts(GWCORE.AccountPrefs.QuickAmountShowMode.Primary)) { var colStyle= "ttlBtn" + (GWCORE.AccountPrefs.QuickAmounts.length + 1); %>
<% _(GWCORE.AccountPrefs.QuickAmounts).each(function(val) { var showVal = val; if(GWCORE.Utils.GetDecimalOrZero(val) >= 1000) showVal = val/1000 + "K"; %>
<%= showVal %>
<% }); %>
Clear
<% %>
<% } %>
<%= GWCORE.GetCurrencySymbol() %>-
<%= GWCORE.Coupon.boostName %> applied! Your odds have been increased from $x to $y
Bonus Bet will be applied
ERROR
<% } %>
<%= GWCORE.GetCurrencySymbol() %><%= GWCORE.Utils.TruncateDecimal(coupon.totalAmount) %>
<%= GWCORE.GetCurrencySymbol() %><%= GWCORE.Utils.TruncateDecimal(coupon.totalAmount) %>
<%= GWCORE.GetCurrencySymbol() %><%= GWCORE.Utils.TruncateDecimal(coupon.totalPayout) %>
ERROR
Clear <% var showConfirmBtn = false; var showSubmitBtn = false; switch(coupon.currentMode) { case GWCORE.Coupon.CouponModes.Edit: showConfirmBtn = true; if(GWCORE.AccountPrefs.UseOneClick(GWCORE.AccountPrefs.OneClickModes.Primary)) { showSubmitBtn = true; } break; case GWCORE.Coupon.CouponModes.Confirm: showSubmitBtn = true; break; case GWCORE.Coupon.CouponModes.Receipt: break; } if(showConfirmBtn) %>Confirm<% if(showSubmitBtn) %><% %>
<%= GWCORE.Coupon.respGamblingMesg %>
<%= GWCORE.Coupon.respGamblingCall %>
<% } %>