<br>
<h2 class="fw_6 text-center">Bukid Bounty Market</h2><br>
<div class="card-section" id="main-card-section">




</div>

<br>

<div class="bill-content">
    <div class="tf-container" id="recents_home">


    </div>
</div>



<script>


    statsarray = [["Pending", 0, "Orders", "left", "pending_orders_no"],
    ["Actionable", 0, "Leads", "left", "actionable-leads-no"],
    ["Sold", 0, "Today", "right", "sold-today-no"],
    ["Balance", 0, "PHP", "right", "total_balance_php"]
        //,["Sold", 0, "Total", "right", "sold-all-no"]
    ];

    balancewrapper_item_array = [["New Lead", "NewLeads", "", "/assets/NewLeads.png", "", "", "", ""], ["List Leads", "ListLeads", "0", "/assets/ListLeads.png", "", "", "", ""]];
    balancebox = UIcreateBalanceBoxfromArray(statsarray, balancewrapper_item_array);

    servicesbuttonarray = [['/assets/ListLeads.png', 'Leads', 'ListLeads', ''],
    ['/assets/user-list.png', 'Users', 'user_list', ''],
    ['/assets/reports.png', 'Reports', 'ListReports'],
    ['/assets/shopping-cart.png', 'Market', 'ListProductsMarket'],
    ['/assets/target.png', 'New Store', 'NewStore'],
    ['/assets/user-list.png', 'New User', 'create_user']
    ];

    

    servicesbox = UIServices_FullDIV_GOTOPAGE_Array('', '', '', '', servicesbuttonarray);
    todocardtext = `
    Fix Stores Not showing in the list
    <br>
    Fix Photo Not Showin in Account Settings
    <br>
    Address Update In Account Settings
    `;
    todobox = CreateCardSimple('TODO', todocardtext);

    dualcolumn_button_array = [['Leads', 'ListLeads', '', '/assets/ListLeads.png'],
    ['Users', 'ListUsers', '', '/assets/user-list.png'],
    ['Reports', 'ListReports', '', '/assets/reports.png'],
    ['Stores', 'ListStores', '', '/assets/store.png']
    ];
    dualcolumnhtml = UISideText_DualColumnButton_Array(dualcolumn_button_array);

    recents_list_array = [['Loading', 'Please Wait...', '', 'xxxwait', 'unknown', '', '/assets/sync.png']];
    arrowlist_button_array = '';
    searchbox_html = UISearchBox_with_BUTTONS_FULL('Recent', recents_list_array, arrowlist_button_array, 'RecentsPage', '', 'View All', 'HomeRecentList', 'home_recent_search', 'Search');

    $('#main-card-section').append(balancebox);
    $('#main-body').append(servicesbox + dualcolumnhtml + '<br><br>' + todobox + searchbox_html);
    function UIHome_Leads_Today_Change(num) {
        if (num === false || num === undefined || num === null) {
            return false;
        }
        $('#leads-today-no').html(num);
    }

    function loadrecents_home() {

    }
    function HomeULT_reinitilize_loaders() {
        Preloaders.Account_Settings_Details();
        Preloaders.ListAllMarketProductsData();
    }


    $().ready(function () {
        changeTopbarTitle('Home');

        loadrecents_home();
        HomeULT_reinitilize_loaders();
        CheckAndSetDarkMode();

    });
</script>