
<script id="main-script">
$("#balance_bottom_nav").hide();
$('#bets_history_bottom_nav').hide();

if (typeof todocardtext === 'undefined') {
    let todocardtext = '';
}

todocardtext=`Reports 2pm and 5pm and 9pm Daily Transfers Daily Summary for Transfers, Bets and Prizes  also fix amount transferred today<br>
remove by reports 2pm 5pm 9pm from operator<br>
<b>FIX New Draw time to show only mon wed friday for 4d!</b> <br>
<b>FIX place bet to show only mon wed friday for 4d!</b> <br>
<br>fix database user settings text field update functions<br>
<br>modify usersettings(uid), clearsettings(uid),getusersettings(uid)<br>
fix user database settings load loginstatus or through a redirect<br>
add darkmode on settings UI and load settings through redirect<br>
keep updating settings through the redirect. update js variable <br>
fix Regeneration of sessid hash db to prevnt user from logging out<br>
Develop Hidden Reports at reports list
fIX DRAW LIST HOME  ASYNC CALLBACK<br>
`;

if (typeof cardshtml === 'undefined') {
    let cardshtml = '';
}
cardshtml='<br>'+CreateBalanceCard(titletext='',maincardid='main-card-body',firstrowtext='Total Bet Amount Today',firstrowvalueid='homecard-total-bet-amounts-today',firstrowvaluetext='...' ,secondrowtext='Total Winning Prizes',secondrowvalueid='homecard-total-prizes-amounts-today',secodrowvaluetext='...',secondrowvisible=true,footerrowid='',footerrowtext='');
+'<br><br>';
cardshtml+= createCard(cardtitle='',cardid='secondary-card',cardtools='',cardbodyid='HomeMenuButtons',cardbodytext='',cardbodyclassadd='row','',true);
cardshtml+= createCard(cardtitle='TODO',cardid='TODO-card',cardtools='',cardbodyid='todo_list_home_today',cardbodytext=todocardtext,cardbodyclassadd='',maincardstyle='');
cardshtml+= createCard(cardtitle='Draws Today',cardid='draws',cardtools='',cardbodyid='div_draw_numbers_today',cardbodytext='',cardbodyclassadd='',maincardstyle='');
cardshtml+= createCard(cardtitle='Winning Numbers Today',cardid='winning-numbers-today-home',cardtools='',cardbodyid='div_winning_numbers_today',cardbodytext='',cardbodyclassadd='',maincardstyle='');
cardshtml+='<br><br>'

$('#main-body').html(cardshtml);


$(document).ready(function(){

loadAdminTotalBetsPrizesAmount();
setInterval(loadAdminTotalBetsPrizesAmount, '15000');
loaddrawnumberstoday();
//setInterval(loaddrawnumberstoday, '15000');
loadwinningnumberstoday();
//setInterval(loadwinningnumberstoday, '15000');




});


if (typeof HomeButtonsHtml === 'undefined') {
    let HomeButtonsHtml = '';
}
HomeButtonsHtml='';
HomeButtonsHtml = HomeMenuButtons('assets/qrcode.svg','Scan QR', 'qr_reader',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/user-list.png','Users', 'user_list',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/lotteryschedule.png','Game Schedule', 'lottery_schedule',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/CreateUser.png','Create User', 'create_user',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/drawlottery.png','Draws', 'list_draws',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/creditrequests.png','Credit Requests', 'credit_requests',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/reports.png','Reports', 'MyReports',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/briefcase.png','Console', 'UltimateConsole',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/accounting.png','Accounting', 'Accounting',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/gear.png','Account Settings', 'account_settings',0,'20%','40%');
$('#HomeMenuButtons').html(HomeButtonsHtml);

setInterval(UpdateWinningBetNotifications ,2000);
$('#logs_bottom_nav').show();


</script>

<link rel="stylesheet" type="text/css" href="dist/alt-theme/styles.css">
  <link rel="stylesheet" href="dist/alt-theme/icons-alipay.css">
  <link rel="stylesheet" href="dist/alt-theme/fonts.css">