KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/easysfm.edukrypt.in/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/easysfm.edukrypt.in/storage/framework/views/344252429e1f4695b781b23ab2206061be1abe6a.php
<?php $__env->startSection('content'); ?>
    


<!-- begin::main content -->
<main class="main-content">

    <div class="container">

        <!-- begin::page header -->
        <div class="page-header d-md-flex align-items-center justify-content-between">
            <div>
                <h3>Dashboard</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">Dashboard</a></li>
                        <li class="breadcrumb-item active" aria-current="page">Home</li>
                    </ol>
                </nav>
            </div>
            <div>
                <div class="reportrange btn btn-outline-primary btn-block">
                    <i class="ti-calendar m-r-10"></i>
                    <span></span>
                    <i class="ti-angle-down m-l-10"></i>
                </div>
                
            </div>
        </div>
        <!-- end::page header -->



        <div class="row row-sm">
            <div class="col-xl-3 col-lg-6 col-lg-6 col-sm-12">
                <div class="card">
                    <div class="card-body">
                        <div class="d-flex justify-content-between align-items-center">
                            <div>
                                <h6 class="text-uppercase font-size-11 m-b-15">Total Earnings</h6>
                                <h4 class="m-b-0">
                                    <?php echo e($totalAmount); ?>

                                    
                                </h4>
                            </div>
                            
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-6 col-lg-6 col-sm-12">
                <div class="card">
                    <div class="card-body">
                        <div class="d-flex justify-content-between align-items-center">
                            <div>
                                <h6 class="text-uppercase font-size-11 m-b-15">Total Orders</h6>
                                <h4 class="m-b-0">
                                    <?php echo e($totalQty); ?>

                                    
                                </h4>
                            </div>
                            
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-6 col-lg-6 col-sm-12">
                <div class="card">
                    <div class="card-body">
                        <div class="d-flex justify-content-between align-items-center">
                            <div>
                                <h6 class="text-uppercase font-size-11 m-b-15">Total Students</h6>
                                <h4 class="m-b-0">
                                    <?php echo e($totalUsers); ?>

                                  
                                </h4>
                            </div>
                            
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-6 col-lg-6 col-sm-12">
                <div class="card">
                    <div class="card-body">
                        <div class="d-flex justify-content-between align-items-center">
                            <div>
                                <h6 class="text-uppercase font-size-11 m-b-15">Total Products</h6>
                                <h4 class="m-b-0">
                                    <?php echo e($totalProducts); ?>

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



        



        <div class="row row-sm">
            <div class="col-md-6">
                <div class="card">
                    <div class="card-header ">
                        <div class="d-flex justify-content-between align-items-start">
                            <div>
                                <h6 class="card-title" style="margin-top: 6px; margin-bottom: 0px;">Recent Orders</h6>
                            </div>
              
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table m-b-0">
                                <thead>
                                <tr>
                                    <th> Payment&nbsp;Date </th>
                                    <th> Course </th>
                                    <th> Mode </th>
                                    <th class="text-right">Status</th>
                                </tr>
                                </thead>
                                <tbody>

                                <?php if(!@empty($sales)): ?>
                                    
                               <?php $__currentLoopData = $sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e(date("d-m-Y",strtotime($sale->created_at))); ?></td>
                                    <td class="text-success"><?php echo e($sale->product_name); ?></td>
                                    <td><?php echo e($sale->product_mode); ?></td>
                                    <td class="text-right text-success"> <?php echo e($sale->payment_status); ?></td>
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                              
  
                                </tbody>
                            </table>
                        </div>
                        <a href="<?php echo e(asset('admin/order-list')); ?>" class="text-center text-uppercase font-size-11 " style="padding-top: 15px; display: block; border-top: 1px solid #dee2e6;">
                            View All
                        </a>
                    </div>
                </div>
 
            </div>
            <div class="col-md-6">
                <div class="card">
                    <div class="card-header ">
                        <div class="d-flex justify-content-between align-items-start">
                            <div>
                                <h6 class="card-title" style="margin-top: 6px; margin-bottom: 0px;">Recent Users</h6>
                            </div>
                            
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table m-b-0">
                                <thead>
                                <tr>
                                    <th>name</th>
                                    <th>Email </th>
                                    <th>Phone </th>
                                    <th>Dete</th>
                                    <th>Course</th>
                                    <th>Level</th>
                                    <th class="text-right">State</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <?php if(!empty($users)): ?>
                                    <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($user->name); ?> </td>
                                        <td><?php echo e($user->email); ?></td>
                                        <td class="text-success"> <?php echo e($user->phone); ?></td>
                                        <td><?php echo e(date("d-m-Y",strtotime($user->created_at))); ?></td>
                                        <td class="text-success">CA</td>
                                        <td>Foundation</td>
                                        <td class="text-right"> Delhi</td>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php endif; ?>
                                   
                               
                                </tbody>
                            </table>
                            
                        </div>
                        <a href="<?php echo e(asset('/admin/user-list')); ?>" class="text-center text-uppercase font-size-11 " style="padding-top: 15px; display: block; border-top: 1px solid #dee2e6;">
                            View All
                        </a>
                    </div>
                </div>
            </div>
        </div>


        <div class="row row-sm">
            <div class="col-md-6">
                <div class="card">
                    <div class="card-header ">
                        <div class="d-flex justify-content-between align-items-start">
                            <div>
                                <h6 class="card-title" style="margin-top: 6px; margin-bottom: 0px;">Recent Products</h6>
                            </div>
                        </div>
                    </div>
                   


                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table m-b-0">
                                <thead>
                                <tr>
                                    <th> Product Name</th>
                                    <th>Product type</th>
                                    <th>Category</th>
                                    <th class="">Status</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <?php if(!empty($products)): ?>
                                    <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($product->name); ?></td>
                                        <td><?php echo e($product->type); ?></td>
                                        <td><?php echo e($product->category_name); ?></td>
                                        <td><?php if($product->status == '1'): ?><?php echo '<span class="badge badge-success ml-auto">Active</span>'; ?><?php else: ?><?php echo e('<span class="badge badge-danger ml-auto">Inactive</span>'); ?><?php endif; ?></td>
                                    </tr>

                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                    <?php endif; ?>

                                    
                                
                                
                               
                                </tbody>
                            </table>
                            
                        </div>
                        <a href="<?php echo e(asset('admin/product-list')); ?>" class="text-center text-uppercase font-size-11 " style="padding-top: 15px; display: block; border-top: 1px solid #dee2e6;">
                            View All
                        </a>
                    </div>
                </div>
            </div>
        </div>



        <!-- <div class="row row-sm">
            <div class="col-md-12">

                <div class="card">
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table">
                                <thead class="bg-primary">
                                <tr>
                                    <th scope="col">Promo Codes</th>
                                    <th scope="col">Created on</th>
                                    <th scope="col">Students Availed</th>
                                    <th scope="col">Status</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    
                                </tr>
                                <tr>
                                    <td>AB2021</td>
                                    <td>02-09-2021</td>
                                    <td>18</td>
                                    <td><span class="badge badge-success ml-auto">Active</span></td>
                                </tr>
                                <tr>
                                    <td>NC@25</td>
                                    <td>04-09-2021</td>
                                    <td>28</td>
                                    <td><span class="badge table-active ml-auto">Inactive</span></td>
                                </tr>
                                <tr>
                                    <td>AB2021</td>
                                    <td>05-09-2021</td>
                                    <td>5</td>
                                    <td><span class="badge badge-success ml-auto">Active</span></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>

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

      

  




    </div>

</main>
<!-- end::main content -->

<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>

<!-- begin::chart -->
<script src="<?php echo e(asset('public/admin/vendors/charts/chartjs/chart.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/vendors/charts/sparkline/sparkline.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/vendors/circle-progress/circle-progress.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/js/examples/charts.js')); ?>"></script>
<!-- end::chart -->

<!-- begin::vamp -->
<script src="<?php echo e(asset('public/admin/vendors/vmap/jquery.vmap.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/vendors/vmap/maps/jquery.vmap.usa.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/js/examples/vmap.js')); ?>"></script>
<!-- end::vamp -->


<script src="<?php echo e(asset('public/admin/vendors/datepicker/daterangepicker.js')); ?>"></script>
<script src="<?php echo e(asset('public/admin/js/examples/dashboard.js')); ?>"></script>

<script>
     $(function() {
      $('input[name="daterange"]').daterangepicker({
        opens: 'left'
      }, function(start, end, label) {
        console.log("A new date selection was made: " + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD'));
      });
    });

    $(document).on('change','.reportrange',function(){

        $.ajaxSetup({
                      headers: {
                          'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                      }
                      });

        

        var daterange = $(this).find('span').text();

        $.ajax({
            type: 'GET',
              url:"<?php echo e(asset('admin/dashboard?daterange=')); ?>"+daterange,
            success:function(data){
                window.location.href = "<?php echo e(asset('admin/dashboard?daterange=')); ?>"+daterange
            //  alert(data);
            }
        });


    })

    $(document).on('click','.applyBtn',function(){
      
       var daterange =  $('.drp-selected').text();

       $.ajaxSetup({
                      headers: {
                          'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                      }
                      });


        $.ajax({
            type: 'GET',
              url:"<?php echo e(asset('admin/dashboard?daterange=')); ?>"+daterange,
            success:function(data){
                window.location.href = "<?php echo e(asset('admin/dashboard?daterange=')); ?>"+daterange
            //  alert(data);
            }
        });
        

    })

</script>
    
<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\easysfm.edukrypt.in\resources\views/admin/dashboard/dashboard.blade.php ENDPATH**/ ?>

Anon7 - 2021