@{ var IsCouponsExist = false; if(Model != null){ IsCouponsExist = Model.reservation_infos.Count() > 0 ? Model.reservation_infos[0].coupons.Count() > 0 ? true:false : false; } } @if(IsCouponsExist){

Nikmati Kupon Reward

Sebagai Keistimewaan Anggota Loyalty Demo

*Tunjukkan email ini untuk mendapatkan keuntungan

@foreach (var reservation_info in Model.reservation_infos) { @foreach (var coupon in reservation_info.coupons.Take(3).ToList()) { } if(reservation_info.coupons.Count() > 3) { var limit = reservation_info.coupons.Count() >= 6 ? 3 :reservation_info.coupons.Count() -3; @foreach (var coupon in reservation_info.coupons.GetRange(3, limit).ToList()) { } } if(reservation_info.coupons.Count() > 6) { var limit = reservation_info.coupons.Count() > 9 ? 2 :reservation_info.coupons.Count() -6; @foreach (var coupon in reservation_info.coupons.GetRange(6, limit).ToList()) { } @if(reservation_info.coupons.Count() > 9) { } } }
@foreach (var coupon_photo in coupon.coupon_photos) { }
@if(!string.IsNullOrEmpty(coupon.vendor.vendor_phone_number)) { }

@coupon.coupon_name

@string.Format("{0}",coupon.coupon_promotion_line.Length < 50 ? coupon.coupon_promotion_line : coupon.coupon_promotion_line.Substring(0,50) + "...")

Call at:@coupon.vendor.vendor_phone_number

@foreach (var coupon_photo in coupon.coupon_photos) { }
@if(!string.IsNullOrEmpty(coupon.vendor.vendor_phone_number)) { }

@coupon.coupon_name

@string.Format("{0}",coupon.coupon_promotion_line.Length < 50 ? coupon.coupon_promotion_line : coupon.coupon_promotion_line.Substring(0,50) + "...")

Call at:@coupon.vendor.vendor_phone_number

@foreach (var coupon_photo in coupon.coupon_photos) { }
@if(!string.IsNullOrEmpty(coupon.vendor.vendor_phone_number)) { }

@coupon.coupon_name

@string.Format("{0}",coupon.coupon_promotion_line.Length < 50 ? coupon.coupon_promotion_line : coupon.coupon_promotion_line.Substring(0,50) + "...")

Call at:@coupon.vendor.vendor_phone_number

*Syarat dan ketentuan berlaku

}