



<script id="main-script">



cardshtml='<br><br>'+CreateBalanceCard(titletext='Welcome Leader',maincardid='main-card-body',firstrowtext='Total Balance',firstrowvalueid='total-balance',firstrowvaluetext='...' ,secondrowtext='',secondrowvalueid='',secodrowvaluetext='',secondrowvisible=false,footerrowid='phone-number',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);

loaddrawnumberstoday();
loadwinningnumberstoday();
if (typeof HomeButtonsHtml === 'undefined') {
    let HomeButtonsHtml = '';
}
HomeButtonsHtml='';
HomeButtonsHtml = HomeMenuButtons('assets/qrcode.svg','Scan QR', 'qr_reader',0,'35%','35%');
HomeButtonsHtml += HomeMenuButtons('assets/bets.png','Place Bet', 'place_bet',0,'20%','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/creditrequests.png','Credit Requests', 'credit_requests',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/request-credit.png','Request Credit', 'request_credit',0,'20%','40%');
HomeButtonsHtml += HomeMenuButtons('assets/reports.png','Reports', 'MyReports',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();
  loaduserdatadashboard();
  loadwinningnumberstoday();
  loaddrawnumberstoday();

setInterval(loaduserdatadashboard, '20000');
setInterval(loadwinningnumberstoday, '20000');
setInterval(loaddrawnumberstoday, '20000');
  
</script>