<?php $__env->startSection('body'); ?>

    <?php
        $totalusers = \App\User::count();
       $banusers = \App\User::where('status',0)->count();
       $verifiedPhone = \App\User::where('phone_verify',1)->count();
       $verifiedEmail = \App\User::where('email_verify',1)->count();
       $activeusers = \App\User::where('status',1)->count();

        $gateway =  App\Gateway::count();
        $deposit =  App\Deposit::whereStatus(1)->count();
        $totalDeposit =  App\Deposit::whereStatus(1)->sum('amount');

        $blog =App\Post::count();
        $subscribers =App\Subscriber::count();

    $currency =  App\Currency::count();
    $buycurrency =  App\BuyMoney::where('status','!=',0)->count();
    $sellcurrency =  App\SellMoney::where('status','!=',0)->count();
    $exchangecurrency =  App\ExchangeMoney::where('status','!=',0)->count();

    ?>

    <div class="app-title">
        <div>
            <h1><i class="fa fa-dashboard"></i> <?php echo e($page_title); ?></h1>
        </div>
        <ul class="app-breadcrumb breadcrumb">
            <li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
            <li class="breadcrumb-item"><a href="<?php echo e(route('admin.dashboard')); ?>">Dashboard</a></li>
        </ul>
    </div>



    <div class="tile ">
        <h3 class="tile-title"><i class="fa fa-exchange"></i> Currency Statistics</h3>
        <div class="tile-body">
            <div class="row">

                <div class="col-lg-3 ">
                    <a href="<?php echo e(route('currency.index')); ?>" class="text-decoration">
                        <div class="bs-component">
                            <div class="card mb-3 text-white  bg-success  text-center">
                                <div class="card-body">
                                    <blockquote class="card-blockquote">
                                        <h3>Manage Currency</h3>
                                        <h5><?php echo e($currency); ?> </h5>
                                    </blockquote>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>

                <div class="col-lg-3">
                    <a href="<?php echo e(route('buy-currency')); ?>" class="text-decoration">
                        <div class="bs-component">
                            <div class="card mb-3 text-white  bg-dark  text-center">
                                <div class="card-body">
                                    <blockquote class="card-blockquote">
                                        <h3>Buy Currency</h3>
                                        <h5><?php echo e($buycurrency); ?> </h5>
                                    </blockquote>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-lg-3">
                    <a href="<?php echo e(route('sell-currency')); ?>" class="text-decoration">
                        <div class="bs-component">
                            <div class="card mb-3 text-white  bg-primary  text-center">
                                <div class="card-body">
                                    <blockquote class="card-blockquote">
                                        <h3>Sell Currency</h3>
                                        <h5><?php echo e($sellcurrency); ?> </h5>
                                    </blockquote>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-lg-3">
                    <a href="<?php echo e(route('exchange-currency')); ?>" class="text-decoration">
                        <div class="bs-component">
                            <div class="card mb-3 text-white  bg-info  text-center">

                                <div class="card-body">
                                    <blockquote class="card-blockquote">
                                        <h3>Exchange Currency </h3>
                                        <h5><?php echo e($exchangecurrency); ?> </h5>
                                    </blockquote>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
        </div>
    </div>


    <div class="tile ">
        <h3 class="tile-title"><i class="fa fa-users"></i> User Statistics</h3>
        <div class="tile-body">
            <div class="row">

                <div class="col-lg-3 ">
                    <a href="<?php echo e(route('users')); ?>" class="text-decoration">
                        <div class="bs-component">
                            <div class="card mb-3 text-white  bg-info  text-center">
                                <div class="card-body">
                                    <blockquote class="card-blockquote">
                                        <h3>Total Users</h3>
                                        <h5><?php echo e($totalusers); ?> </h5>
                                    </blockquote>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>

                <div class="col-lg-3">
                    <a href="<?php echo e(route('users')); ?>" class="text-decoration">
                        <div class="bs-component">
                            <div class="card mb-3 text-white  bg-success  text-center">
                                <div class="card-body">
                                    <blockquote class="card-blockquote">
                                        <h3>Email Verified Users</h3>
                                        <h5><?php echo e($verifiedEmail); ?> </h5>
                                    </blockquote>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-lg-3">
                    <a href="<?php echo e(route('users')); ?>" class="text-decoration">
                        <div class="bs-component">
                            <div class="card mb-3 text-white  bg-dark  text-center">
                                <div class="card-body">
                                    <blockquote class="card-blockquote">
                                        <h3>Phone Verified Users</h3>
                                        <h5><?php echo e($verifiedPhone); ?> </h5>
                                    </blockquote>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-lg-3">
                    <a href="<?php echo e(route('user.ban')); ?>" class="text-decoration">
                        <div class="bs-component">
                            <div class="card mb-3 text-white  bg-danger  text-center">

                                <div class="card-body">
                                    <blockquote class="card-blockquote">
                                        <h3>Ban Users </h3>
                                        <h5><?php echo e($banusers); ?> </h5>
                                    </blockquote>
                                </div>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
        </div>
    </div>




    <div class="row">
        <div class="col-md-6 ">
            <div class="tile">
                <h3 class="tile-title"><i class="fa fa-th"></i> Deposit Statistics</h3>
                <div class="tile-body">
                    <div class="row">

                        <div class="col-lg-6">
                            <a href="<?php echo e(route('gateway')); ?>" class="text-decoration">
                                <div class="bs-component">
                                    <div class="card mb-3 text-white  bg-dark  text-center">

                                        <div class="card-body">
                                            <blockquote class="card-blockquote">
                                                <h3>Deposit Method</h3>
                                                <h5><?php echo e($gateway); ?> </h5>
                                            </blockquote>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </div>
                        <div class="col-lg-6">
                            <a href="<?php echo e(route('deposits')); ?>" class="text-decoration">
                                <div class="bs-component">
                                    <div class="card mb-3 text-white  bg-primary  text-center">
                                        <div class="card-body">
                                            <blockquote class="card-blockquote">
                                                <h3>Number Of Deposit </h3>
                                                <h5><?php echo e($deposit); ?> </h5>
                                            </blockquote>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>

                </div>
            </div>
        </div>

        <div class="col-md-6 ">
                <div class="tile ">
                    <h3 class="tile-title"><i class="fa fa-th"></i> Other Info</h3>

                    <div class="tile-body">
                        <div class="row">

                            <div class="col-lg-6">
                                <a href="<?php echo e(route('admin.blog')); ?>" class="text-decoration">
                                    <div class="bs-component">
                                        <div class="card mb-3  text-white  bg-dark  text-center">

                                            <div class="card-body">
                                                <blockquote class="card-blockquote">
                                                    <h3>Total Blogs</h3>
                                                    <h5><?php echo e($blog); ?> </h5>
                                                </blockquote>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                            </div>

                            <div class="col-lg-6">
                                <a href="<?php echo e(route('manage.subscribers')); ?>" class="text-decoration">
                                    <div class="bs-component">
                                        <div class="card mb-3 text-white  bg-primary  text-center">
                                            <div class="card-body">
                                                <blockquote class="card-blockquote">
                                                    <h3>Total Subscribers </h3>
                                                    <h5><?php echo e($subscribers); ?> </h5>
                                                </blockquote>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
        </div>
    </div>









<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>


<?php $__env->stopSection(); ?>


<?php echo $__env->make('admin', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>