<?php 
$title = 'Overview';
require_once('header-links.php'); 
// require_once('../lib/basic-function.php');
// require_once('../lib/user-functions.php');
// require_once('../lib/investment-plan-functions.php');
// require_once('../lib/deposit-functions.php');
// require_once('../lib/package-functions.php');
// require_once('../lib/currency-functions.php');
// require_once('../lib/withdraw-functions.php');
// require_once('../lib/support-functions.php');
// require_once('../lib/settings-functions.php');
// require_once('../lib/admin-functions.php');
?>

<body>
    <div class="app">
        <div class="layout">
            <?php require_once('sidebar.php'); ?>

            <!-- Page Container START -->
            <div class="page-container">
                <?php require_once('header.php'); ?>



                <!-- Content Wrapper START -->
                <div class="main-content">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="card">
                                    <div class="card-block index-pg">
                                        <div class="inline-block">
                                            <p>MEMBERS</p>
                                            <h1 class="no-mrg-vertical"><?php print $admin->count_users(); ?></h1>
                                        </div>
                                        <div class="pdd-top-25 inline-block pull-right">
                                            <i class="ei-users fa-5x"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="card">
                                    <div class="card-block">
                                        <div class="inline-block">
                                            <p>WALLET BALANCE</p>
                                            <h1 class="no-mrg-vertical">$ <?php print $admin->get_total_Wallet_balance(); ?></h1>
                                        </div>
                                        <div class="pdd-top-25 inline-block pull-right">
                                            <i class="fa fa-credit-card fa-5x"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="card">
                                    <div class="card-block">
                                        <div class="inline-block">
                                            <p style="font-size:1vw;">SUPPORT TICKETS</p>
                                            <h1 class="no-mrg-vertical"> <?php print $admin->support(); ?></h1>
                                        </div>
                                        <div class="pdd-top-25 inline-block pull-right">
                                            <i class="ei-checked-box fa-5x"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="card">
                                    <div class="card-block">
                                        <div class="inline-block">
                                            <p class="text-uppercase">Total Purchases</p>
                                            <h1 class="no-mrg-vertical">
                                            $ <?php  print $purchase->admin_total_purchase_amount(); ?>
                                            </h1>
                                        </div>
                                        <div class="pdd-top-25 inline-block pull-right">
                                            <i class="fa fa-sort-amount-asc fa-5x"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="card">
                                    <div class="card-block index-pg">
                                        <div class="inline-block">
                                            <p class="text-uppercase">Available Products</p>
                                            <h1 class="no-mrg-vertical">
                                                <?php  print $purchase->admin_total_available_product(); ?></h1>
                                        </div>
                                        <div class="pdd-top-25 inline-block pull-right">
                                            <i class="ei-users fa-5x"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- <div class="col-lg-3">
                                <div class="card">
                                    <div class="card-block">
                                        <div class="inline-block">
                                            <p>WITHDRAWALS TO PAY</p>
                                            <h1 class="no-mrg-vertical">
                                            $ <?php // print $admin->amt_withdrawals_to_pay(); ?>
                                            </h1>
                                        </div>
                                        <div class="pdd-top-25 inline-block pull-right">
                                            <i class="fa fa-sort-amount-asc fa-5x"></i>
                                        </div>
                                    </div>
                                </div>
                            </div> -->

                        </div>
                    </div>
                </div>
                <!-- Content Wrapper END -->
                <?php require_once('footer.php'); ?>
                <!-- Footer END -->

            </div>
            <!-- Page Container END -->

        </div>
    </div>

    <?php require_once('footer-links.php'); ?>