Viewing file: 638b8930e3a0a8c3bb1bc9d4ec8910ab.php (19.35 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('dashboard')); ?>
<?php $__env->stopSection(); ?> <?php $__env->startSection('breadcrumbs'); ?> <div class="row mb-2"> <div class="col-sm-6"> <h1 class="m-0"><?php echo e(__('dashboard')); ?></h1> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box mb-3"> <span class="info-box-icon bg-success elevation-1"><i class="fas fa-money-bill"></i></span> <div class="info-box-content"> <span class="info-box-text"><?php echo e(__('earnings')); ?></span> <span class="info-box-number"> <?php if($total_earning): ?> <?php echo e(currentCurrencySymbol()); ?> <?php echo e($total_earning); ?>
<?php else: ?> 0 <?php endif; ?> </span> </div> </div> </div> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box mb-3"> <span class="info-box-icon bg-primary elevation-1"><i class="fas fa-users"></i></span> <div class="info-box-content"> <span class="info-box-text"><?php echo e(__('total_customers')); ?></span> <span class="info-box-number"> <?php echo e($customer); ?> </span> </div> </div> </div> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box mb-3"> <span class="info-box-icon bg-secondary elevation-1"><i class="fas fa-users"></i></span> <div class="info-box-content"> <span class="info-box-text"><?php echo e(__('verified_user')); ?></span> <span class="info-box-number"> <?php echo e($verified_customers); ?> </span> </div> </div> </div> <?php if(enableModule('blog')): ?> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box"> <span class="info-box-icon bg-primary elevation-1"><i class="fas fa-book"></i></span>
<div class="info-box-content"> <span class="info-box-text"><?php echo e(__('total_blog_posts')); ?></span> <span class="info-box-number"> <?php echo e($blogpostCount); ?>
</span> </div> </div> </div> <?php endif; ?> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box mb-3"> <span class="info-box-icon bg-info elevation-1"><i class="fas fa-photo-video"></i></span> <div class="info-box-content"> <span class="info-box-text"><?php echo e(__('total_ads')); ?></span> <span class="info-box-number"> <?php echo e($adcount); ?> </span> </div> </div> </div> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box mb-3"> <span class="info-box-icon bg-danger elevation-1"><i class="fas fa-clock"></i></span> <div class="info-box-content"> <span class="info-box-text"><?php echo e(__('pending_ads')); ?></span> <span class="info-box-number"> <?php echo e($adcountPending); ?> </span> </div> </div> </div> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box mb-3"> <span class="info-box-icon bg-success elevation-1"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-ad" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <rect x="3" y="5" width="18" height="14" rx="2" /> <path d="M7 15v-4a2 2 0 0 1 4 0v4" /> <line x1="7" y1="13" x2="11" y2="13" /> <path d="M17 9v6h-1.5a1.5 1.5 0 1 1 1.5 -1.5" /> </svg> </span> <div class="info-box-content"> <span class="info-box-text"><?php echo e(__('active_ads')); ?></span> <span class="info-box-number"> <?php echo e($adcountActive); ?> </span> </div> </div> </div> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box mb-3"> <span class="info-box-icon bg-danger elevation-1"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-ad-2" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M11.933 5h-6.933v16h13v-8" /> <path d="M14 17h-5" /> <path d="M9 13h5v-4h-5z" /> <path d="M15 5v-2" /> <path d="M18 6l2 -2" /> <path d="M19 9h2" /> </svg> </span> <div class="info-box-content"> <span class="info-box-text"><?php echo e(__('sold_ads')); ?></span> <span class="info-box-number"> <?php echo e($adcountExpired); ?> </span> </div> </div> </div> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box mb-3"> <span class="info-box-icon bg-primary elevation-1"><i class="fas fa-photo-video"></i></span> <div class="info-box-content"> <span class="info-box-text"><?php echo e(__('featured_ads')); ?></span> <span class="info-box-number"> <?php echo e($adcountFeatured); ?> </span> </div> </div> </div> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box mb-3"> <span class="info-box-icon bg-secondary elevation-1"><i class="fas fa-globe-africa"></i></span>
<div class="info-box-content"> <span class="info-box-text"><?php echo e(__('total_country')); ?></span> <span class="info-box-number"> <?php echo e($totalCountry); ?> </span> </div> </div> </div> <div class="col-sm-6 col-lg-4 col-xl-3"> <div class="info-box mb-3"> <span class="info-box-icon bg-info elevation-1"><i class="fas fa-money-check"></i></span>
<div class="info-box-content"> <span class="info-box-text"><?php echo e(__('total_plan')); ?></span> <span class="info-box-number"> <?php echo e($total_plan); ?> </span> </div> </div> </div>
<div class="clearfix hidden-md-up"></div> </div> <div class="row"> <div class="col-sm-12 col-lg-6"> <div class="card"> <div class="card-header"> <h3 class="card-title"><?php echo e(__('your_earnings_overview')); ?></h3> </div> <div class="card-body"> <div class="chart"> <canvas id="barChart" style="height:230px; min-height:230px"></canvas> </div> </div> </div> </div> <div class="col-sm-12 col-lg-6"> <div class="card"> <div class="card-header"> <h3 class="card-title"><?php echo e(__('popular_location')); ?></h3> </div> <div class="card-body"> <div class="chart"> <canvas id="locationChart" style="height:230px; min-height:230px"></canvas> </div> </div> </div> </div> </div> <div class="row"> <div class="col-sm-12 col-lg-6"> <div class="card"> <div class="card-header"> <h3 class="card-title"><?php echo e(__('latest_ads')); ?></h3> </div> <div class="card-body table-responsive p-0"> <table class="table"> <thead> <tr> <th><?php echo e(__('title')); ?></th> <th><?php echo e(__('price')); ?></th> <th><?php echo e(__('status')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $latestAds; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td> <a href="<?php echo e(route('frontend.addetails', $ad->slug)); ?>" class="ms-1" aria-label="Open website"><?php echo e($ad->title); ?></a> </td> <td class="text-muted">$<?php echo e(number_format($ad->price, 2, '.', ',')); ?></td> <td class="text-muted"> <?php if($ad->status === 'sold'): ?> <span class="text-danger"><?php echo e(ucfirst($ad->status)); ?></span> <?php else: ?> <span class="text-success"><?php echo e(ucfirst($ad->status)); ?></span> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="3" class="text-center"> <span class=""><?php echo e(__('no_ads_found')); ?>...</span> </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> <div class="col-sm-12 col-lg-6"> <div class="card"> <div class="card-header"> <?php echo e(__('latest_registered_users')); ?>
</div> <div class="card-body table-responsive p-0"> <table class="table"> <thead> <tr> <th><?php echo e(__('name')); ?></th> <th><?php echo e(__('email')); ?></th> <th><?php echo e(__('since')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $latestusers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td> <a href="<?php echo e(route('module.customer.show', $user->username)); ?>"> <?php echo e($user->name); ?>
</a> </td> <td><?php echo e($user->email); ?></td> <td><?php echo e(date('M d, Y', strtotime($user->created_at))); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="3" class="text-center"> <span class=""><?php echo e(__('no_users_found')); ?>...</span> </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div>
<div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h3 class="card-title"><?php echo e(__('latest_transaction')); ?></h3> <a href="<?php echo e(route('order.index')); ?>" class="btn bg-primary float-right d-flex align-items-center justify-content-center"> <?php echo e(__('view_all')); ?>
</a> </div> <div class="card-body table-responsive p-0"> <table class="table"> <thead> <tr> <th><?php echo e(__('customer')); ?></th> <th><?php echo e(__('amount')); ?></th> <th><?php echo e(__('plan_name')); ?></th> <th><?php echo e(__('payment_provider')); ?></th> <th><?php echo e(__('created_time')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $latestTransactionUsers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $transaction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td> <a href="<?php echo e(route('module.customer.show', $transaction?->customer?->username)); ?>"> <?php echo e($transaction?->customer?->name); ?>
</a> </td> <td class="text-muted"> <?php echo e($transaction->currency_symbol); ?><?php echo e($transaction->amount); ?>
</td> <td class="text-muted"> <span class="badge badge-primary"> <?php echo e($transaction->plan->label); ?>
</span> </td> <td class="text-muted"> <?php if($transaction->payment_provider == 'offline'): ?> <?php echo e(__('offline')); ?>
<?php if(isset($transaction->manualPayment) && isset($transaction->manualPayment->name)): ?> (<b><?php echo e($transaction->manualPayment->name); ?></b>) <?php endif; ?> <?php else: ?> <?php echo e(ucfirst($transaction->payment_provider)); ?>
<?php endif; ?> </td> <td class="text-muted"> <?php echo e(date('M d, Y', strtotime($transaction->created_at))); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="3" class="text-center"> <span class=""><?php echo e(__('no_transactions_found')); ?>...</span> </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?> <script src="<?php echo e(asset('backend')); ?>/plugins/chart.js/Chart.min.js"></script>
<script> var areaChartData = { labels: <?php echo json_encode($earnings['months']); ?>, datasets: [{ label: 'Earnings', backgroundColor: 'rgba(60,141,188,0.9)', borderColor: 'rgba(60,141,188,0.8)', pointRadius: false, pointColor: '#3b8bba', pointStrokeColor: 'rgba(60,141,188,1)', pointHighlightFill: '#fff', pointHighlightStroke: 'rgba(60,141,188,1)', data: <?php echo json_encode($earnings['amount']); ?>
}, ] }
//------------- //- BAR CHART - //------------- var barChartCanvas = $('#barChart').get(0).getContext('2d') var barChartData = jQuery.extend(true, {}, areaChartData) var temp = areaChartData.datasets barChartData.datasets = temp
var barChartOptions = { responsive: true, maintainAspectRatio: false, datasetFill: false, display: false }
var barChart = new Chart(barChartCanvas, { type: 'bar', data: barChartData, options: barChartOptions })
//------------- //- DONUT CHART - //------------- var locationChart = $('#locationChart').get(0).getContext('2d') var locationData = { labels: <?php echo json_encode($topLocations->pluck('country')->all()); ?>, datasets: [{ data: <?php echo json_encode($topLocations->pluck('total')->all()); ?>, backgroundColor: ['#f56954', '#00a65a', '#f39c12', '#00c0ef', '#3c8dbc', '#d2d6de', '#AE4CCF', '#FF5F7E', '#99FEFF', '#000000', '#FB3640' ], }] } var locationChartOptions = { maintainAspectRatio: false, responsive: true, } //Create pie or douhnut chart // You can switch between pie and douhnut using the method below. var donutChart = new Chart(locationChart, { type: 'pie', data: locationData, options: locationChartOptions }) </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/classify.picotech.app/public_html/resources/views/admin/index.blade.php ENDPATH**/ ?>
|