@model LotteryWebApp.Models.HomeIndex_ViewModel
@{
ViewData["Title"] = "Millions - Buy Ticket";
Layout = "~/Areas/Millions/Views/Shared/_Layout.cshtml";
var currentTerm = Model.listTerm?.FirstOrDefault();
}
@using LotteryWebApp.Languages;
@using LotteryWebApp.Common;
@section Styles {
}
@if (Model.termType == Constants.PIC10_BIGSMALL_CODE || Model.termType == Constants.PIC10_ODDEVEN_CODE)
{
var isBigSmall = Model.termType == Constants.PIC10_BIGSMALL_CODE;
var themeColor = isBigSmall ? "#0A9800" : "#AA3DC8";
var gameTitle = isBigSmall ? Lang.millions_big_small : Lang.millions_odd_even;
var prizeAmount = isBigSmall ? "100.000" : "200.000";
@DateTime.Now.ToString("dddd, MMM dd, yyyy", System.Globalization.CultureInfo.InvariantCulture)
@Lang.millions_round
#@(currentTerm?.id ?? "123")
Results for the last 5 days
@{
var pastTerms = ViewBag.PastTerms as List
?? new List();
foreach (var term in pastTerms) {
var rawResult = (term.result ?? "").Trim().ToUpper();
var dateStr = "--";
DateTime dt;
if (DateTime.TryParse(term.date_random, out dt)) {
dateStr = dt.ToString("MMM dd", System.Globalization.CultureInfo.InvariantCulture);
}
var resKey = rawResult;
var resTitle = rawResult;
if (isBigSmall) {
if (rawResult == "S") { resKey = "Small"; resTitle = Lang.Small; }
else if (rawResult == "B") { resKey = "Big"; resTitle = Lang.Big; }
} else {
if (rawResult == "O") { resKey = "Odd"; resTitle = Lang.Odd; }
else if (rawResult == "E") { resKey = "Even"; resTitle = Lang.Even; }
}
var resColor = "";
var bgStyle = "background: linear-gradient(136deg, #FFFAE6 0%, #FFE588 100%);";
var textStyle = "-webkit-text-stroke: 0.5px #000;";
if (resKey == "NA" || string.IsNullOrEmpty(rawResult)) {
bgStyle = "background: #EAEAEA;";
resTitle = "";
textStyle = "";
} else {
if (isBigSmall) {
resColor = resKey == "Big" ? "#A2FF00" : "#FF4157";
} else {
resColor = resKey == "Odd" ? "#FFC700" : "#B33BD0";
}
textStyle += $" color: {resColor};";
}
@dateStr
@resTitle
}
for(int r = pastTerms.Count; r < 5; r++) {
--
}
}
@(isBigSmall ? "Big" : "Odd")
@(isBigSmall ? "13 number from" : "Odd numbers")
@(isBigSmall ? "41-80" : "1, 3, 5, 7, 9")
@(isBigSmall ? "Small" : "Even")
@(isBigSmall ? "13 number from" : "Even numbers")
@(isBigSmall ? "01-40" : "0, 2, 4, 6, 8")
@Lang.millions_you_choose
—
@Lang.millions_prize_if_win
@prizeAmount
HTG
@Lang.total_ticket:
0
@Lang.millions_estimated_ticket_price
0
HTG
}
else
{
@if (Model.termType == Constants.PIC10_BASIC_CODE) { Basic Pick 10 }
else if (Model.termType == Constants.Millions_CODE) { Millions }
else { @Lang.millions_odd_even }
@DateTime.Now.ToString("dddd, MMM dd, yyyy", System.Globalization.CultureInfo.InvariantCulture)
@Lang.millions_round
#@(currentTerm?.id ?? "12459")
@for (int i = 1; i <= 2; i++)
{
@i
@for (int j = 0; j < (Model.termType == Constants.PIC10_BASIC_CODE ? 10 : (Model.termType == Constants.Millions_CODE ? 6 : 15)); j++)
{
}
}
@Lang.total_ticket:
0
@Lang.millions_estimated_ticket_price
0
HTG
}