@model LotteryWebApp.Models.TermResultHistoryModel @using LotteryWebApp.Languages @if (Model != null && Model.listTerm != null && Model.listTerm.Count > 0) { foreach (var item in Model.listTerm) { if (string.Equals(item.result, "NA", StringComparison.OrdinalIgnoreCase)) continue; var gameColor = item.gameId == "30" ? "#0062FF" : item.gameId == "31" ? "#26A31E" : item.gameId == "32" ? "#B529E9" : "#0062FF"; var gameGradient = item.gameId == "30" ? "linear-gradient(135deg, #FF3D63 0%, #E3132D 60%, #BA0F21 100%)" : item.gameId == "31" ? "linear-gradient(135deg, #4ADE80 0%, #26A31E 100%)" : item.gameId == "32" ? "linear-gradient(135deg, #C084FC 0%, #B529E9 100%)" : "linear-gradient(135deg, #FF3D63 0%, #BA0F21 100%)";
@(item.gameId == "30" ? "Basic" : item.gameId == "31" ? "Big/Small" : item.gameId == "32" ? "Odd/Even" : "Mega")
@{ DateTime drawDate; if (DateTime.TryParse(item.date_random, out drawDate)) {
@drawDate.ToString("dddd,", System.Globalization.CultureInfo.InvariantCulture)
@drawDate.ToString("MMM dd, yyyy", System.Globalization.CultureInfo.InvariantCulture)
} else {
Draw Date:
@item.date_random
} }
@if (!string.IsNullOrEmpty(item.result)) { var balls = item.result.Split(new[] { ',', ';' }, StringSplitOptions.RemoveEmptyEntries); foreach (var ball in balls) { var cleanBall = ball.Trim(); if (!string.IsNullOrEmpty(cleanBall)) {
@cleanBall
} } } else { @Lang.waiting_for_result }
} } else {

@Lang.no_results_found

}