

<style>
    .full-row-card {
        background: '#f2f2f2';
        width: 100%;
        padding: 20px;
        box-shadow: 3px 6px 9px #00000036;
    }

    .full-row-card .accept-btn {
        background: #4CAF50;
        color: #FFF;
        border: none;
        padding: 7px 20px;
        font-size: 14px;
        border-radius: 5px;

    }

    .full-row-card .reject-btn {
        background: #f44336;
        color: #FFF;
        border: none;
        padding: 7px 20px;
        font-size: 14px;
        border-radius: 5px;

    }


    .view-all-btn-main .viewbutton {
        background: transparent;
        border: none;
        padding: 7px 20px;
        font-size: 14px;
        text-decoration: underline;
        float: right;
    }
</style>
<?php $__env->startSection('content'); ?>
<div class="container-fluid">
    <div class="row">
        <!-- page statustic chart start -->
        <a href="<?php echo e(url('admin/userpalyed')); ?>">
            <div class="dashboard-margin col-xl-12">
                <div class="col-xl-2 col-md-6">
                    <div class="card text-white mb-3" style="background: #01b8aa;">
                        <div class="card-block">
                            <div class="row align-items-center">
                                <div class="col-12" style="text-align: center;">
                                    <h5 class="mb-2">₹ <?php echo e($totalplay); ?></h5>
                                    <p class="mb-2">Today Total Play</p>
                                </div>

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

        <a href="<?php echo e(url('admin/user-winner')); ?>">
            <div class="col-xl-2 col-md-6">
                <div class="card text-white mb-3" style="background: #f2c80f;">
                    <div class="card-block">
                        <div class="row align-items-center">
                            <div class="col-12" style="text-align: center;">
                                <h5 class="mb-2">₹ <?php echo e($userwinn); ?></h5>
                                <p class="mb-2">Today Winner List</p>
                            </div>

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

        <a href="<?php echo e(url('admin/report/money')); ?>">
            <div class="col-xl-2 col-md-6">
                <div class="card text-white mb-3" style="background: #1f77b4;">
                    <div class="card-block">
                        <div class="row align-items-center">
                            <div class="col-12" style="text-align: center;">
                                <h5 class="mb-2">₹ <?php echo e($paymentadded); ?></h5>
                                <p class="mb-2">Today Added Money</p>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </a>
         <a href="<?php echo e(url('admin/customer')); ?>">
            <div class="col-xl-2 col-md-6">
                <div class="card text-white mb-3" style="background: #8e92cd;">
                    <div class="card-block">
                        <div class="row align-items-center">
                            <div class="col-12" style="text-align: center;">
                                <h5 class="mb-2">₹ <?php echo e($withdraw); ?></h5>
                                <p class="mb-2">Today Withdraw money</p>
                            </div>

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


        <a href="<?php echo e(url('admin/customer')); ?>">
            <div class="col-xl-2 col-md-6">
                <div class="card text-white mb-3" style="background: #8e92cd;">
                    <div class="card-block">
                        <div class="row align-items-center">
                            <div class="col-12" style="text-align: center;">
                                <h5 class="mb-2">₹ <?php echo e($walletamount); ?></h5>
                                <p class="mb-2">Total Wallet Amount</p>
                            </div>

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



        

       
         <a href="<?php echo e(url('admin/report/money')); ?>">
            <div class="col-xl-2 col-md-6">
                <div class="card text-white mb-3" style="background: #1f77b4;">
                    <div class="card-block">
                        <div class="row align-items-center">
                            <div class="col-12" style="text-align: center;">
                                <h5 class="mb-2">₹ <?php echo e($weekpaymentadded); ?></h5>
                                <p class="mb-2">Weekly Added Money</p>
                                <sup>(<?php echo e(dateShow($startweek)); ?> - <?php echo e(dateShow($endweek)); ?>)</sup>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </a>
        
        <a href="<?php echo e(url('admin/customer')); ?>">
            <div class="col-xl-2 col-md-6">
                <div class="card text-white mb-3" style="background: #8e92cd;">
                    <div class="card-block">
                        <div class="row align-items-center">
                            <div class="col-12" style="text-align: center;">
                                <h5 class="mb-2">₹ <?php echo e($weekwithdraw); ?></h5>
                                <p class="mb-2">Weekly Withdraw money</p>
                                <sup>(<?php echo e(dateShow($startweek)); ?> - <?php echo e(dateShow($endweek)); ?>)</sup>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </a>
       
        
       <!--  <a href="<?php echo e(url('admin/customer')); ?>">
            <div class="col-xl-2 col-md-6">
                <div class="card text-white mb-3" style="background: #8e92cd;">
                    <div class="card-block">
                        <div class="row align-items-center">
                            <div class="col-12" style="text-align: center;">
                                <h5 class="mb-2">₹ <?php echo e($totalwithdraw); ?></h5>
                                <p class="mb-2">Total Withdraw money</p>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </a>
        
        <a href="<?php echo e(url('admin/customer')); ?>">
            <div class="col-xl-2 col-md-6">
                <div class="card text-white mb-3" style="background: #8e92cd;">
                    <div class="card-block">
                        <div class="row align-items-center">
                            <div class="col-12" style="text-align: center;">
                                <h5 class="mb-2">₹ <?php echo e($totalpaymentadded - 10000); ?></h5>
                                <p class="mb-2">Total Added money</p>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </a> -->





    </div>
</div>

<!-- Application Sales start -->

<!-- Application Sales end -->

<!-- Application Sales end -->



<div class="row">
   <div class="col-md-3 col-sm-6">
  <div class="full-row-card">
    <div class="row">
      <div class="col-md-12">
        <h2 style="color:black">Add Money User</h2>
        <br /><br />

        <form method="post" action="<?php echo e(url('/admin/payment')); ?>" autocomplete="off" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
          <!-- Select User -->
          <div class="form-group mb-3">
            <label for="userSelect">Select User</label>
            <select class="form-control select2" id="userSelect" name="user_id" required>
              <option value="">-- Select User --</option>
              <?php $__currentLoopData = $user; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <option value="<?php echo e($value->id); ?>"><?php echo e(isset($value->name) ?$value->name : ''); ?> (<?php echo e($value->mobile_number); ?>)</option>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
          </div>

          <!-- Amount Input -->
          <div class="form-group mb-3">
            <label for="amountInput">Enter Amount</label>
            <input
              type="number"
              class="form-control"
              id="amountInput"
              name="amount"
              placeholder="Enter amount"
              required
              min="1"
            />
          </div>

          <!-- Submit Button -->
          <div class="form-group">
            <button type="submit" class="btn btn-primary w-100">
              Add Amount
            </button>
          </div>
        </form>

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

    
    <div class="col-md-3  col-sm-6">
  <div class="full-row-card">
    <div class="row">
      <div class="col-md-12">
        <h2 style="color:black">Deduct Money User</h2>
        <br /><br />

        <form method="post" action="<?php echo e(url('/admin/removepoint')); ?>" autocomplete="off" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
          <!-- Select User -->
          <div class="form-group mb-3">
            <label for="userSelectD">Select User</label>
            <select class="form-control select2" id="userSelectD" name="user_idr" required>
              <option value="">-- Select User --</option>
              
              <?php $__currentLoopData = $user; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <option value="<?php echo e($value->id); ?>"><?php echo e(isset($value->name) ?$value->name : ''); ?> (<?php echo e($value->mobile_number); ?>)</option>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
          </div>

          <!-- Amount Input -->
          <div class="form-group mb-3">
            <label for="deductAmountInput">Enter Amount</label>
            <input
              type="number"
              class="form-control"
              id="deductAmountInput"
              name="amount"
              placeholder="Enter amount"
              required
              min="1"
            />
          </div>

          <!-- Submit Button -->
          <div class="form-group">
            <button type="submit" class="btn btn-danger w-100">
              Deduct Amount
            </button>
          </div>
        </form>

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

    <div class="col-md-6">
        <div class="full-row-card">
            <div class="row">
                <div class="col-md-12">
                    <h2 style="color:black">New Users</h2></br></br>
                    <div class="table-responsive">
                        <table class="table">

                            <thead>
                                <tr>
                                    <th scope="col">Sr. No</th>
                                    </th>
                                    <th scope="col">Name</th>
                                    <th scope="col">Mobile Number</th>
                                    <th scope="col">Status</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <?php
                                    $count = 1;
                                    ?>
                                    <?php $__currentLoopData = $user; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $users): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if($count <= 5): ?>
                                        <th scope="row"><?php echo e($count); ?></th>
                                        <td><?php echo e(isset($users->name) ?$users->name : ''); ?></td>
                                        <td><?php echo e(isset($users->mobile_number) ?$users->mobile_number : ''); ?></td>
                                        <td>
                                            <div class="button-main-class">
                                                <!--<form id="statusForm" action="<?php echo e(url('/change')); ?>" method="POST" style="display: inline;">-->
                                                <form role="form" method="get" action="<?php echo e(url('/change')); ?>">
                                                    <a href="<?php echo e(url('change/'.$users->id)); ?>" class="badge rounded-pill p-2 px-3 btn-<?php echo e(($users->status == '0') ? 'danger' : 'success'); ?> button_flow" data-toggle="tooltip" data-placement="top" title="" onclick="return confirm('Do you Really want to <?php echo e(($users->status == '0') ? 'Active' : 'Inactive'); ?> this User?')"> <i class="fa <?php echo e(($users->status == '0') ? 'fa-toggle-off' : 'fa-toggle-on'); ?> fa-xl"></i></a>
                                                </form>
                                            </div>
                                        </td>
                                </tr>
                                <?php endif; ?>
                                <?php
                                $count ++;
                                ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                            </tbody>
                        </table>

                    </div>
                </div>

            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="full-row-card">
            <div class="row">
                <div class="col-md-12">
                    <h2 style="color:black">Todays Played</h2></br></br>
                    <div class="table-responsive">
                        <table class="table">
                            <thead>
                                <tr>

                                    <th scope="col">Sr. No</th>
                                    </th>
                                    <th scope="col">Name</th>
                                    <th scope="col">Mobile Number</th>
                                    <th scope="col">Amount</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <?php
                                    $count = 1;
                                    ?>
                                    <?php $__currentLoopData = $lists; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $usersss): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if($count <= 5): ?>
                                        <th scope="row"><?php echo e($count); ?></th>
                                        <td><?php echo e(isset($usersss->username) ?$usersss->username->name : ''); ?></td>
                                        <td><?php echo e(isset($usersss->username) ?$usersss->username->mobile_number : ''); ?></td>
                                        <td><?php echo e($usersss->amount); ?></td>
                                </tr>
                                <?php endif; ?>
                                <?php
                                $count ++;
                                ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            </tbody>
                        </table>

                    </div>
                </div>

            </div>



        </div>
    </div>
</div>
</br>
<div class=></div>
<?php
$count = 1;
?>
<?php $__currentLoopData = $user; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $users): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($count <= 5): ?>
    <div class="row">




    </div>
    <?php endif; ?>
    <?php
    $count ++;
    ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <div class="row">
        <div class="col-md-12 flex-end">
            <div class="view-all-btn-main">
                <a href="<?php echo e(url('admin/customer')); ?>"><button class="viewbutton">View All <i class="fa fa-solid fa-arrow-right"></i></button></a>
            </div>
        </div>
    </div>
    </div>
    </div>
    <!-- push external js -->
    <?php $__env->stopSection(); ?>
    <?php $__env->startSection('js-content'); ?>
    <script>
        function updateStatus(status) {
            document.getElementById('statusInput').value = status;
            document.getElementById('statusForm').submit();
        }
    </script>
    <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.main-layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/profcymadev/public_html/majestic.profcymadev.in/resources/views/admin/dashboard.blade.php ENDPATH**/ ?>