<?php $__env->startSection('content'); ?>
         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqvmap/1.5.1/jqvmap.min.css">

  <div class="row">
    <div class="col-lg-12 position-relative z-index-2">
      <div class="card card-plain mb-4">
        <div class="card-body p-3">
          <div class="row">
            <div class="col-lg-6">
              <div class="d-flex flex-column h-100">
                <h2 class="font-weight-bolder mb-0"></h2>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="row">
        <div class="col-lg-3 col-sm-5">
          <div class="card  mb-4">
            <a href="/users">
            <div class="card-body p-3">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Users</p>
                    <h5 class="font-weight-bolder mb-0">
                     <?php echo e(number_format($user)); ?>

                      <span class="text-success text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-money-coins text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
            </div>
            </a>
          </div>
          <div class="card ">
            <div class="card-body p-3">
              <a href="#">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Offerwall Earning</p>
                    <h5 class="font-weight-bolder mb-0">
                      $<?php echo e($offerEarning[0]->income); ?>

                      <span class="text-success text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-app text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
            </div>
          </div>
          </a>
        </div>
        <div class="col-lg-3 col-sm-5 mt-sm-0 mt-4">
          <div class="card  mb-4">
            <a href="/all-transaction">
            <div class="card-body p-3">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Transactions</p>
                    <h5 class="font-weight-bolder mb-0">
                      <?php echo e(number_format($trans)); ?>

                      <span class="text-danger text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-chart-bar-32 text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
            </div>
            </a>
          </div>
          <div class="card ">
            <a href="/article/active">
            <div class="card-body p-3">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Websites</p>
                    <h5 class="font-weight-bolder mb-0">
                      <?php echo e(number_format($weblink)); ?>

                      <span class="text-success text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-planet text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
            </div>
          </div>
          </a>
        </div>
        <div class="col-lg-3 col-sm-5 mt-sm-0 mt-4">
          <div class="card  mb-4">
            <a href="/withdrawal/pending">
            <div class="card-body p-3">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Pending Payment</p>
                    <h5 class="font-weight-bolder mb-0">
                       <?php echo e(number_format($pending)); ?>

                      <span class="text-danger text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-paper-diploma text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
            </div>
            </a>
          </div>
          <div class="card ">
            <div class="card-body p-3">
              <a href="/videozone/active">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Video</p>
                    <h5 class="font-weight-bolder mb-0">
                       <?php echo e(number_format($video)); ?>

                      <span class="text-success text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-button-play text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
              </a>
            </div>
          </div>
        </div>
        <div class="col-lg-3 col-sm-5 mt-sm-0 mt-4">
          <div class="card  mb-4">
            <a href="/withdrawal/completed">
            <div class="card-body p-3">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Completed Payment</p>
                    <h5 class="font-weight-bolder mb-0">
                       <?php echo e(number_format($complete)); ?>

                      <span class="text-danger text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-check-bold text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
            </div>
            </a>
          </div>
          <div class="card ">
            <div class="card-body p-3">
              <a href="/withdrawal">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Redeem Method</p>
                    <h5 class="font-weight-bolder mb-0">
                       <?php echo e(number_format($redeem)); ?>

                      <span class="text-success text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-credit-card text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
              </a>
            </div>
          </div>
        </div>
      </div>
      
      <div class="row mt-4">
        <div class="col-lg-3 col-sm-5">
          <div class="card  mb-4">
            <a href="/games">
            <div class="card-body p-3">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Games</p>
                    <h5 class="font-weight-bolder mb-0">
                     <?php echo e(number_format($game)); ?>

                      <span class="text-success text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-controller text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
            </div>
            </a>
          </div>
        
        </div>
        <div class="col-lg-3 col-sm-5 mt-sm-0 mt-4">
          <div class="card  mb-4">
            <div class="card-body p-3">
             <a href="/offerwall/sdk">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Offerwall Earning</p>
                    <h5 class="font-weight-bolder mb-0">
                      $<?php echo e($offerEarning[0]->income); ?>

                      <span class="text-danger text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-archive-2 text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
              </a>
            </div>
          </div>
        </div>
        <div class="col-lg-3 col-sm-5 mt-sm-0 mt-4">
          <div class="card  mb-4">
            <a href="/offerwall/web">
            <div class="card-body p-3">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">WEB Offerwall</p>
                    <h5 class="font-weight-bolder mb-0">
                       <?php echo e(number_format($web)); ?>

                      <span class="text-danger text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-archive-2 text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
            </div>
            </a>
          </div>
        </div>
        <div class="col-lg-3 col-sm-5 mt-sm-0 mt-4">
          <div class="card ">
            <div class="card-body p-3">
              <a href="/dailyoffer">
              <div class="row">
                <div class="col-8">
                  <div class="numbers">
                    <p class="text-sm mb-0 text-capitalize font-weight-bold">Daily Offers</p>
                    <h5 class="font-weight-bolder mb-0">
                      <?php echo e(number_format($doffer)); ?>

                      <span class="text-success text-sm font-weight-bolder"></span>
                    </h5>
                  </div>
                </div>
                <div class="col-4 text-end">
                  <div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
                    <i class="ni ni-calendar-grid-58 text-lg opacity-10" aria-hidden="true"></i>
                  </div>
                </div>
              </div>
              </a>
            </div>
          </div>
        </div>
        

      </div>

    </div>
  
  

  <div class="row mt-3">
    <div class="col-sm-6 ">
          <div class="card">
            <div class="card-header pb-0 p-3">
              <div class="d-flex align-items-center">
                <h6 class="mb-0">User Statistics</h6>
                
                <select style="width:200px; margin-left:40px;" id="dynamic_select" class="form-control">
                    <option value="dashboard?filter=day" <?php echo e((request()->filter == 'day' ) ? 'selected' : ''); ?>>Today</option>
                    <option value="dashboard?filter=month" <?php echo e((request()->filter == 'month' ) ? 'selected' : ''); ?>>Month</option>
                    <option value="dashboard?filter=3month" <?php echo e((request()->filter == '3month' ) ? 'selected' : ''); ?>>3 Month</option>
                    <option value="dashboard?filter=year" <?php echo e((request()->filter == 'year' ) ? 'selected' : ''); ?>>Year</option>
                </select>
                 <button type="button" class="btn  btn-rounded btn-outline-info mb-0 btn-sm d-flex align-items-center justify-content-center ms-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Today User Registerd : <?php echo e($today); ?>">
                  Today User Registerd : <?php echo e($today); ?>

                </button>
                <button type="button" class="btn  btn-rounded btn-outline-success mb-0 btn-sm d-flex align-items-center justify-content-center ms-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Today Active User : <?php echo e($appopen); ?>">
                  Today Active User : <?php echo e($appopen); ?>

                </button>
              </div>
            </div>
            <div class="card-body card-block text-center p-3">
               <div id="vmap" style="margin:0 auto;width:80%;height:520px;"></div>
               </div>
            </div>
      </div>
    <div class="col-sm-6">
          <div class="card">
            <div class="card-header pb-0 p-3">
              <div class="d-flex align-items-center">
                <h6 class="mb-0">User Analytics <?php echo e(date('Y')); ?></h6>
                <button type="button" class="btn btn-icon-only btn-rounded btn-outline-secondary mb-0 ms-2 btn-sm d-flex align-items-center justify-content-center ms-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User Analytics">
                  <i class="fas fa-info"></i>
                </button>
              </div>
            </div>
            <div class="card-body p-3">
               <div class="card-block text-center">
                    <div id="revenueMonthly" class="chart-shadow"></div>
                </div>
            </div>
          </div>
    </div>
</div>

    <div class="col-sm-12 ">
        
        <div class="col-sm-12 mt-3">
          <div class="card">
            <div class="card-header pb-0 p-3">
              <div class="d-flex align-items-center">
                <h6 class="mb-0">Today Ads Network Analytics</h6>
                <button type="button" class="btn btn-icon-only btn-rounded btn-outline-secondary mb-0 ms-2 btn-sm d-flex align-items-center justify-content-center ms-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Today Ads Network Analytics">
                  <i class="fas fa-info"></i>
                </button>
              </div>
            </div>
            <div class="card-body p-3">
               <div class="card-block text-center">
                    <div id="adsDaily" class="chart-shadow"></div>
                </div>
            </div>
          </div>
    </div>
    </div>

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

<?php $__env->startPush('js'); ?>  
  <script src="<?php echo e(URL::asset('assets/js/plugins/chartjs.min.js')); ?>"></script>
  <script src="<?php echo e(URL::asset('assets/js/plugins/threejs.js')); ?>"></script>
  <script src="<?php echo e(URL::asset('assets/js/plugins/orbit-controls.js')); ?>"></script>
  <script src="<?php echo e(URL::asset('assets/js/plugins/dash.js')); ?>"></script>
  <script src="<?php echo e(URL::asset('assets/js/plugins/apexcharts.min.js')); ?>"></script>
  <script src="<?php echo e(URL::asset('assets/js/plugins/vmap/jquery.vmap.min.js')); ?>"></script>
  <script src="<?php echo e(URL::asset('assets/js/plugins/vmap/jquery.vmap.world.js')); ?>"></script>
  
  <script>
    
     $('#dynamic_select').on('change', function () {
          var url = $(this).val(); // get selected value
          if (url) { // require a URL
              window.location = url; // redirect
          }
          return false;
      });
      
        
    $(document).ready(function() {
        
        $('#vmap').vectorMap({
            map: 'world_en',
            backgroundColor: 'transparent',
            color: 'rgba(120, 130, 140, .1)',
            borderColor: 'transparent',
            scaleColors: ["#d2e1f3", "#206bc4"],
            normalizeFunction: 'polynomial',
            
            values: (chart_data = {
                 <?php echo $userstatics; ?>

                
            }),
            onLabelShow: function (event, label, code) {
                if (chart_data[code] > 0) {
                    label.append(': <strong>' + chart_data[code] + '</strong>');
                }
            }
           /* onRegionClick: function (element, code) {
            }*/
        });
        
        var user = <?php echo json_encode($alluser, 15, 512) ?>;
        var total = <?php echo e($user); ?>;
        users_Analysis(total,user[1]['count'],user[2]['count'],user[3]['count'],user[4]['count'],user[5]['count'],user[6]['count'],user[7]['count'],user[8]['count'],user[9]['count'],user[10]['count'],user[11]['count'],user[12]['count']);
        
        ads_Analysis("<?php echo e($totalAd); ?>","<?php echo e($adCount->admob_inter); ?>", "<?php echo e($adCount->admob_reward); ?>", "<?php echo e($adCount->applovin_inter); ?>", "<?php echo e($adCount->applovin_reward); ?>", "<?php echo e($adCount->fb_inter); ?>" ,"<?php echo e($adCount->fb_reward); ?>","<?php echo e($adCount->unity_inter); ?>","<?php echo e($adCount->unity_reward); ?>","<?php echo e($adCount->wortise_inter); ?>","<?php echo e($adCount->wortise_reward); ?>","<?php echo e($adCount->irons_inter); ?>","<?php echo e($adCount->irons_reward); ?>","<?php echo e($adCount->startio); ?>");
    });
</script>

<?php $__env->stopPush(); ?>
<?php echo $__env->make('user_type.auth', ['parentFolder' => 'dashboards', 'childFolder' => 'none'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/techufct/public_html/rewardpoint.techappinnovation.in/resources/views/dashboards/default.blade.php ENDPATH**/ ?>