




<script id="main-script">


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='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);



loadAdminTotalBetsPrizesAmount();
loaddrawnumberstoday();
loadwinningnumberstoday();
if (typeof HomeButtonsHtml === 'undefined') {
    let HomeButtonsHtml = '';
}
HomeButtonsHtml='';
HomeButtonsHtml = HomeMenuButtons('assets/qrcode.svg','Scan QR', 'qr_reader',0,'35%','35%');
HomeButtonsHtml += HomeMenuButtons('assets/user-list.png','Users', 'user_list',0,'20%','35%');
HomeButtonsHtml += HomeMenuButtons('assets/lotteryschedule.png','Game Schedule', 'lottery_schedule',0,'20%','50%');
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/accounting.png','Accounting', 'Accounting',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/gear.png','Account Settings', 'account_settings',0,'20%','40%');
$('#HomeMenuButtons').html(HomeButtonsHtml);







$("#balance_bottom_nav").hide();
$('#bets_history_bottom_nav').hide();
loaddrawnumberstoday();
loadwinningnumberstoday();
setInterval(loaddrawnumberstoday, '15000');
setInterval(loadwinningnumberstoday, '15000');

setInterval(UpdateWinningBetNotifications,5*1000*60);
</script>