 <!-- Start right Content here -->

 <!-- ============================================================== -->

 <div class="main-content">



    <div class="page-content">

        <div class="container-fluid">



         <!-- end page title -->



         <div class="row">

            <div class="col-xl-3 col-md-6">

                <div class="card mini-stat bg-primary">

                    <div class="card-body mini-stat-img">

                        <div class="mini-stat-icon">

                            <i class="mdi mdi-cube-outline float-right"></i>

                        </div>

                        <div class="text-white">

                            <h6 class="text-uppercase mb-3 font-size-13">Total Users</h6>

                            <h2 class="mb-4"><?= Helpers::totalusers(); ?></h2>

                        </div>

                    </div>

                </div>

            </div>

            <div class="col-xl-3 col-md-6">

                <div class="card mini-stat bg-primary">

                    <div class="card-body mini-stat-img">

                        <div class="mini-stat-icon">

                            <i class="mdi mdi-buffer float-right"></i>

                        </div>

                        <div class="text-white">

                            <h6 class="text-uppercase mb-3 font-size-13">Paid Users</h6>

                            <h2 class="mb-4"><?= Helpers::totalpaidusers(); ?></h2>

                        </div>

                    </div>

                </div>

            </div>

            <div class="col-xl-3 col-md-6">

                <div class="card mini-stat bg-primary">

                    <div class="card-body mini-stat-img">

                        <div class="mini-stat-icon">

                            <i class="mdi mdi-tag-text-outline float-right"></i>

                        </div>

                        <div class="text-white">

                            <h6 class="text-uppercase mb-3 font-size-13">Packages Sold</h6>

                            <h2 class="mb-4"><?= Helpers::totalpackagesold(); ?></h2>

                        </div>

                    </div>

                </div>

            </div>

            <div class="col-xl-3 col-md-6">

                <div class="card mini-stat bg-primary">

                    <div class="card-body mini-stat-img">

                        <div class="mini-stat-icon">

                            <i class="mdi mdi-briefcase-check float-right"></i>

                        </div>

                        <div class="text-white">

                            <h6 class="text-uppercase mb-3 font-size-13">Amount Earned</h6>

                            <h2 class="mb-4"></h2>

                        </div>

                    </div>

                </div>

            </div>

        </div>



        



        <div class="row">

            <div class="col-lg-12">

                <div class="card">

                    <div class="card-body">



                        <h4 class="card-title">New Joinings</h4>

                        <div class="table-responsive">

                            <table class="table mb-0">



                                <thead>

                                    <tr>

                                        <th>#</th>

                                        <th>Username</th>

                                        <th>Email</th>

                                        <th>Status</th>

                                        <th>Joining Date</th>

                                    </tr>

                                </thead>

                                <tbody>

                                    <?php

                                    $i=1; 

                                    if($data["newusers"]) {



                                        foreach ($data['newusers'] as $user) {

                                            ?>



                                            <tr>

                                                <td><?= $i; ?></td>

                                                <td><?= $user["username"]; ?></td>

                                                <td><?= $user["email"]; ?></td>

                                                <td><?= $user["status"] ? 'Activated' : 'Not Activated'; ?></td>

                                                <td><?= $user["created_date"]; ?></td>

                                            </tr>

                                            <?php $i++; } } ?>

                                        </tbody>

                                    </table>

                                </div>

                            </div>

                        </div>

                    </div>

                </div>

