| 1234567891011121314151617181920212223242526272829303132 | 
							- <?php
 
- namespace App\Http\Controllers\Admin;
 
- use Illuminate\Http\Request;
 
- use App\Http\Controllers\Controller;
 
- use App\Models\ServerGroup;
 
- use App\Models\Server;
 
- use App\Models\Plan;
 
- use App\Models\User;
 
- use App\Models\Ticket;
 
- use App\Models\Order;
 
- use Cache;
 
- class StatController extends Controller
 
- {
 
-     public function getOverride (Request $request) {
 
-         return response([
 
-             'data' => [
 
-                 'month_income' => Cache::get('month_income'),
 
-                 'month_register_total' => Cache::get('month_register_total'),
 
-                 'ticket_pendding_total' => Ticket::where('status', 0)
 
-                     ->count(),
 
-                 'commission_pendding_total' => Order::where('commission_status', 0)
 
-                     ->where('invite_user_id', '!=', NULL)
 
-                     ->where('status', 3)
 
-                     ->count(),
 
-             ]
 
-         ]);
 
-     }
 
- }
 
 
  |