<?php $__env->startSection('content'); ?>
    <div>
        <div class="loader"></div>
        <div id="app">
            <div class="main-wrapper main-wrapper-1">
                <?php echo $__env->make('layouts.navbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <!-- Main Content -->
                <div class="main-content">
                    <?php $__currentLoopData = ['success', 'error', 'warning', 'info']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $msg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if(session($msg)): ?>
                            <div class="alert alert-<?php echo e($msg == 'error' ? 'danger' : $msg); ?> alert-dismissible fade show"
                                role="alert">
                                <?php echo e(session($msg)); ?>

                                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                    <span aria-hidden="true">&times;</span>
                                </button>
                            </div>
                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                    <section class="section">
                        <?php if(env('ADVANCE_MATKA', 0)): ?>
                            <form id="clearDataForm" action="<?php echo e(route('clear.data')); ?>" class="mb-3 d-none" method="GET">
                                <button type="button" class="btn btn-danger" onclick="confirmClearData()">Clear Server
                                    Data</button>
                            </form>
                        <?php endif; ?>

                        <script>
                            function confirmClearData() {
                                if (confirm('Are you sure you want to clear the server data?')) {
                                    document.getElementById('clearDataForm').submit();
                                }
                            }
                        </script>
                        <div class="row ">
                            <div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <div class="card">
                                    <div class="card-statistic-4">
                                        <div class="align-items-center justify-content-between">
                                            <div class="row ">
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pr-0 pt-3">
                                                    <div class="card-content">
                                                        <h5 class="font-15">Total Markets</h5>
                                                        <h2 class="mb-3 font-18"><?php echo e($markets); ?></h2>
                                                    </div>
                                                </div>
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pl-0">
                                                    <div class="banner-img">
                                                        <img src="assets/backend/img/banner/1.png" alt="">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <div class="card">
                                    <div class="card-statistic-4">
                                        <div class="align-items-center justify-content-between">
                                            <div class="row ">
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pr-0 pt-3">
                                                    <div class="card-content">
                                                        <h5 class="font-15">Total Users</h5>
                                                        <h2 class="mb-3 font-18"><?php echo e($users); ?></h2>
                                                        <p class="mb-0">
                                                            <span class="col-green"><?php echo e($todayUsers); ?></span>
                                                            Users Today
                                                        </p>
                                                    </div>
                                                </div>
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pl-0">
                                                    <div class="banner-img">
                                                        <img src="assets/backend/img/banner/2.png" alt="">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <div class="card">
                                    <div class="card-statistic-4">
                                        <div class="align-items-center justify-content-between">
                                            <div class="row ">
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pr-0 pt-3">
                                                    <div class="card-content">
                                                        <h5 class="font-15">Today Bid Amount</h5>
                                                        <h2 class="mb-3 font-18"><?php echo e($todayGameAmount); ?></h2>
                                                    </div>
                                                </div>
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pl-0">
                                                    <div class="banner-img">
                                                        <img src="assets/backend/img/banner/4.png" alt="">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <div class="card">
                                    <div class="card-statistic-4">
                                        <div class="align-items-center justify-content-between">
                                            <div class="row ">
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pr-0 pt-3">
                                                    <div class="card-content">
                                                        <h5 class="font-15">Today Win amount</h5>
                                                        <h2 class="mb-3 font-18"><?php echo e($todayWinAmount); ?></h2>
                                                    </div>
                                                </div>
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pl-0">
                                                    <div class="banner-img">
                                                        <img src="assets/backend/img/banner/4.png" alt="">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <div class="card">
                                    <div class="card-statistic-4">
                                        <div class="align-items-center justify-content-between">
                                            <div class="row ">
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pr-0 pt-3">
                                                    <div class="card-content">
                                                        <h5 class="font-15">Today Deposit</h5>
                                                        <h2 class="mb-3 font-18"><?php echo e($todayDeposit); ?></h2>
                                                        <p class="mb-0"><span class="col-green"><?php echo e($deposit); ?></span>
                                                            Total Deposit</p>
                                                    </div>
                                                </div>
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pl-0">
                                                    <div class="banner-img">
                                                        <img src="assets/backend/img/banner/4.png" alt="">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <div class="card">
                                    <div class="card-statistic-4">
                                        <div class="align-items-center justify-content-between">
                                            <div class="row ">
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pr-0 pt-3">
                                                    <div class="card-content">
                                                        <h5 class="font-15">Today Withdraw</h5>
                                                        <h2 class="mb-3 font-18"><?php echo e($todayWithdraw); ?></h2>
                                                        <p class="mb-0"><span
                                                                class="col-green"><?php echo e($withdraw); ?></span>
                                                            Total Withdraw</p>
                                                    </div>
                                                </div>
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pl-0">
                                                    <div class="banner-img">
                                                        <img src="assets/backend/img/banner/4.png" alt="">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <div class="card">
                                    <div class="card-statistic-4">
                                        <div class="align-items-center justify-content-between">
                                            <div class="row ">
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pr-0 pt-3">
                                                    <div class="card-content">
                                                        <h5 class="font-15">Total Wallet Balance</h5>
                                                        <h2 class="mb-3 font-18"><?php echo e($walletBalance); ?></h2>
                                                    </div>
                                                </div>
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pl-0">
                                                    <div class="banner-img">
                                                        <img src="assets/backend/img/banner/4.png" alt="">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <div class="card">
                                    <div class="card-statistic-4">
                                        <div class="align-items-center justify-content-between">
                                            <div class="row ">
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pr-0 pt-3">
                                                    <div class="card-content">
                                                        <h5 class="font-15">Total Mannualy added Wallet Balance</h5>
                                                        <h2 class="mb-3 font-18">
                                                            <?php echo e($appData->total_mannual_amount_added); ?></h2>
                                                    </div>
                                                </div>
                                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pl-0">
                                                    <div class="banner-img">
                                                        <img src="assets/backend/img/banner/4.png" alt="">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <?php if(env('ADVANCE_MATKA', 0)): ?>
                                <?php if(!$appData->enable_desawar_only): ?>
                                    <div class="col-12">
                                        <div class="card">
                                            <div class="card-statistic-4">
                                                <div class="align-items-center justify-content-between">
                                                    <div class="row ">
                                                        <div class="col-12">

                                                            <h5 class="font-15">Today Bids on Single Ank of Date
                                                                <?php echo e(now()->format('d M,Y')); ?></h5>
                                                        </div>
                                                        <div class="col-md-6">
                                                            <div class="card-content">
                                                                <div class="form-group">
                                                                    <label>Game Name</label>
                                                                    <select class="form-control" name="game_type_id">
                                                                        <option value="">Select Type</option>
                                                                        <?php $__currentLoopData = $gameType; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                            <option value="<?php echo e($type->id); ?>">
                                                                                <?php echo e($type->name); ?></option>
                                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                                    </select>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-6">
                                                            <div class="card-content">
                                                                <div class="form-group">
                                                                    <label>Market Time</label>
                                                                    <select class="form-control" name="market_time">
                                                                        <option value="open">Open</option>
                                                                        <option value="close">Close</option>
                                                                    </select>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-2">
                                                            <div class="card-content">
                                                                <button type="button" onclick="getBidsDetail()"
                                                                    class="btn btn-primary">GET</button>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="row mt-3">
                                                        <div class="col-md-3 mt-3">
                                                            <div class="card-content box_border">
                                                                <h5 class="font-15 mt-3 text-center">Total Bids <span
                                                                        id="ank_0_bids">0</span></h5>
                                                                <h2 class="text-center" id="ank_0_amount">0</h2>
                                                                <h5 class="font-15 text-center">Total Bid Amount</h5>
                                                                <h5 class="font-15 text-center underline">Ank 0</h5>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 mt-3">
                                                            <div class="card-content box_border">
                                                                <h5 class="font-15 mt-3 text-center">Total Bids <span
                                                                        id="ank_1_bid">0</span></h5>
                                                                <h2 class="text-center" id="ank_1_amount">0</h2>
                                                                <h5 class="font-15 text-center">Total Bid Amount</h5>
                                                                <h5 class="font-15 text-center underline">Ank 1</h5>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 mt-3">
                                                            <div class="card-content box_border">
                                                                <h5 class="font-15 mt-3 text-center">Total Bids <span
                                                                        id="ank_2_bids">0</span></h5>
                                                                <h2 class="text-center" id="ank_2_amount">0</h2>
                                                                <h5 class="font-15 text-center">Total Bid Amount</h5>
                                                                <h5 class="font-15 text-center underline">Ank 2</h5>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 mt-3">
                                                            <div class="card-content box_border">
                                                                <h5 class="font-15 mt-3 text-center">Total Bids <span
                                                                        id="ank_3_bids">0</span></h5>
                                                                <h2 class="text-center" id="ank_3_amount">0</h2>
                                                                <h5 class="font-15 text-center">Total Bid Amount</h5>
                                                                <h5 class="font-15 text-center underline">Ank 3</h5>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 mt-3">
                                                            <div class="card-content box_border">
                                                                <h5 class="font-15 mt-3 text-center">Total Bids <span
                                                                        id="ank_4_bids">0</span></h5>
                                                                <h2 class="text-center" id="ank_4_amount">0</h2>
                                                                <h5 class="font-15 text-center">Total Bid Amount</h5>
                                                                <h5 class="font-15 text-center underline">Ank 4</h5>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 mt-3">
                                                            <div class="card-content box_border">
                                                                <h5 class="font-15 mt-3 text-center">Total Bids <span
                                                                        id="ank_5_bids">0</span></h5>
                                                                <h2 class="text-center" id="ank_5_amount">0</h2>
                                                                <h5 class="font-15 text-center">Total Bid Amount</h5>
                                                                <h5 class="font-15 text-center underline">Ank 5</h5>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 mt-3">
                                                            <div class="card-content box_border">
                                                                <h5 class="font-15 mt-3 text-center">Total Bids <span
                                                                        id="ank_6_bids">0</span></h5>
                                                                <h2 class="text-center" id="ank_6_amount">0</h2>
                                                                <h5 class="font-15 text-center">Total Bid Amount</h5>
                                                                <h5 class="font-15 text-center underline">Ank 6</h5>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 mt-3">
                                                            <div class="card-content box_border">
                                                                <h5 class="font-15 mt-3 text-center">Total Bids <span
                                                                        id="ank_7_bids">0</span></h5>
                                                                <h2 class="text-center" id="ank_7_amount">0</h2>
                                                                <h5 class="font-15 text-center">Total Bid Amount</h5>
                                                                <h5 class="font-15 text-center underline">Ank 7</h5>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 mt-3">
                                                            <div class="card-content box_border">
                                                                <h5 class="font-15 mt-3 text-center">Total Bids <span
                                                                        id="ank_8_bids">0</span></h5>
                                                                <h2 class="text-center" id="ank_8_amount">0</h2>
                                                                <h5 class="font-15 text-center">Total Bid Amount</h5>
                                                                <h5 class="font-15 text-center underline">Ank 8</h5>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 mt-3">
                                                            <div class="card-content box_border">
                                                                <h5 class="font-15 mt-3 text-center">Total Bids <span
                                                                        id="ank_9_bids">0</span></h5>
                                                                <h2 class="text-center" id="ank_9_amount">0</h2>
                                                                <h5 class="font-15 text-center">Total Bid Amount</h5>
                                                                <h5 class="font-15 text-center underline">Ank 9</h5>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <?php endif; ?>
                            <?php endif; ?>

                        </div>
                    </section>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/shyambabamatka/public_html/alpha786.com/resources/views/dashboard/index.blade.php ENDPATH**/ ?>