<%if(showDetails || showToggle) { var specialOfferFromTheBackend = (FREB.Inputs.SelfAdmin.usedPricing == "EntityBooking" && !FREB.Inputs.SelfAdmin.editable) ? true : false; if(specialOfferFromTheBackend) { var children_exists = (!p["children"]) ? false : true; } const except = ["totalPrice", "totalDiscountLastMinute", "totalLongStayDiscount", "totalEarlyBirdDiscount", "totalChargingSchemeCharges", "__displayTotalPriceAdults", "__displayTotalPriceChildren", "__displayTotalPriceRoom", "__displayTotalPrice", "eId", "__hiddenPrices"]; %>
<% _.each(p, function(price, k) { if(p[k] != 0 && !except.includes(k)) { var fromAge, toAge; var labelKey = k; var isAgeRange = false; if(k.indexOf("totalPriceChildrenRange") != -1) { isAgeRange = true; labelKey = k.replace(/([a-z]+)[0-9]+to[0-9]+/, "$1FromAgetoToAge"); var childrenAges = k.match(/(\d+)/g); fromAge = childrenAges[0]; toAge = childrenAges[1]; }%> <% if(k!="_discounts" && k!="_visitorsTax" && k!="_chargingSchemeCharges" && k!="_cateringDetails" ) { %> <% if(_.isEmpty(p._discounts) && k=="totalDiscount" && parseFloat(p.totalDiscount)<0) { %>
data-fromage="<%= fromAge %>" data-toage="<%= toAge %>" <% } %>>?<%= k %>? <%= utils.displayPrice(p, k) %>
<% } else if(k!="totalDiscount" && k!="totalPriceVisitorsTax"){ %>
data-fromage="<%= fromAge %>" data-toage="<%= toAge %>" <% } %>>?<%= k %>?<% if(k == "totalPriceCatering" && p["_cateringDetails"]) { %>(<%= p["_cateringDetails"].stl_name %>)<% } %> <%= utils.displayPrice(p, k) %>
<% } %> <% } %> <% if(k=="_discounts" && !_.isEmpty(p._discounts)){ %> <% _.each(p[k], function(d) { %> <% for(i=0; i< d.length; i++){ %>
data-fromage="<%= fromAge %>" data-toage="<%= toAge %>" <% } %>><%= d[i].name %> <%= utils.formatPrice(d[i].total, true) %>
<% }%> <% }); %> <% } %> <% if(k=="_visitorsTax" && !_.isEmpty(p._visitorsTax)){ %> <% _.each(p[k], function(d) { %> <% if(d.name.length==0) { %>
data-fromage="<%= fromAge %>" data-toage="<%= toAge %>" <% } %>>Visitor's tax <%= utils.formatPrice(d.total, true) %>
<% } else { %>
data-fromage="<%= fromAge %>" data-toage="<%= toAge %>" <% } %>><%= d.name %> <%= utils.formatPrice(d.total, true) %>
<% } %> <% }); %> <% } %> <% if(k=="_chargingSchemeCharges" && !_.isEmpty(p._chargingSchemeCharges)){ %> <% _.each(p[k], function(d) { %>
data-fromage="<%= fromAge %>" data-toage="<%= toAge %>" <% } %>><%= d.name %> <%= utils.formatPrice(d.total, true) %>
<% }); %> <% } %> <% } %> <% }); %>
<% } %>
?general.total?   ?general.for?  <%= numNights %>  ?general.nights?
<%= utils.displayPrice(p, 'totalPrice') %>
<% if(agbUrl) { %>
<%= agbText %>
<% } %>