File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
app/Http/Controllers/Admin
resources/themes/pterodactyl/admin Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ public function index(Request $request)
3838 $ totalServerDisk = DB ::table ('servers ' )->sum ('disk ' );
3939 $ totalNodeDisk = DB ::table ('nodes ' )->sum ('disk ' );
4040 $ totalAllocations = Allocation::count ();
41- $ totalUsersCount = User::count ();
42- $ totalDBCount = Database::count ();
4341
4442 $ suspendedServersCount = Server::where ('suspended ' , true )->count ();
4543
@@ -71,8 +69,6 @@ public function index(Request $request)
7169 'totalNodeDisk ' => $ totalNodeDisk ,
7270 'totalServerDisk ' => $ totalServerDisk ,
7371 'totalAllocations ' => $ totalAllocations ,
74- 'totalUsersCount ' => $ totalUsersCount ,
75- 'totalDBCount ' => $ totalDBCount ,
7672 ]);
7773 }
7874
Original file line number Diff line number Diff line change 109109 <span class =" info-box-icon" ><i class =" fa fa-users" ></i ></span >
110110 <div class =" info-box-content number-info-box-content" >
111111 <span class =" info-box-text" >Total Users</span >
112- <span class =" info-box-number" >{{ $totalUsersCount } } </span >
112+ <span class =" info-box-number" >{{ $usersCount } } </span >
113113 </div >
114114 </div >
115115 </div >
127127 <span class =" info-box-icon" ><i class =" fa fa-database" ></i ></span >
128128 <div class =" info-box-content number-info-box-content" >
129129 <span class =" info-box-text" >Total Databases</span >
130- <span class =" info-box-number" >{{ $totalDBCount } } </span >
130+ <span class =" info-box-number" >{{ $databasesCount } } </span >
131131 </div >
132132 </div >
133133 </div >
You can’t perform that action at this time.
0 commit comments