Blame | Last modification | View Log | RSS feed
<div class="container-fluid"><table class="table table-bordered" id="catalogTable"><thead><tr><th>Models</th><th width="20%">Offers</th><th>Scheme</th><th>Upgrade</th><th>Card Cashback</th></tr></thead><tbody>#foreach($offer in $groupedOffers)<tr><!-- ===== MODELS (MULTIPLE) ===== --><td>#foreach($c in $offer.catalogs)<div class="model-name">$c.modelName</div>#end</td><!-- ===== CATALOG OFFERS ===== --><td data-order="1">#if($offer.todayCatalogOfferModels)#foreach($cat in $offer.todayCatalogOfferModels)<div class="mb-2"><a style="margin-top:4px;margin-bottom: 2px;" class="today-offer-view"data-offerid="$cat.getOfferId()">$cat.getOfferName() </a><br>#foreach($slab in $cat.payoutSlabs)Target: $slab.target → Payout:#set($amt = $slab.value)#if($amt == $amt.intValue())${amt.intValue()} #if($slab.getAmountType() == 'PERCENTAGE')% #end#else${amt} #if($slab.getAmountType() == 'PERCENTAGE')% #end#end<br/>#end</div>#end#else<span class="text-muted">NA</span>#end</td><!-- ===== SCHEME ===== --><td>#if($offer.schemeOfferModels)#foreach($sch in $offer.schemeOfferModels)<p><b>$sch.schemeName</b><br/>Amount: $sch.amount.intValue()</p>#end#else<span class="text-muted">NA</span>#end</td><!-- ===== UPGRADE ===== --><td>#if($offer.customerOfferItemModels)#foreach($cust in $offer.customerOfferItemModels)<p>$cust.offerType<br/><b>Payout: $cust.schemePayout</b></p>#end#else<span class="text-muted">NA</span>#end</td><!-- ===== WEB ===== --><td>#if($offer.webOfferModels)<ul>#foreach($web in $offer.webOfferModels)<li><b>$web.title</b><br/><small>$web.detailedText</small></li>#end</ul>#else<span class="text-muted">NA</span>#end</td></tr>#end</tbody></table></div><div class="modal" id="todayOfferDescription"><div class="modal-dialog modal-lg"><div class="modal-content"></div></div></div><script>$(document).ready(function () {var dtable = $('#catalogTable').DataTable({order: [[1, 'desc']], // Offers column descendingpageLength: 25});});</script>