Skip to content

Commit 7115209

Browse files
committed
Hide statistics page for now
1 parent 07381da commit 7115209

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/Http/Controllers/Admin/StatisticsController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Pterodactyl\Contracts\Repository\UserRepositoryInterface;
1010
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
1111
use Pterodactyl\Contracts\Repository\DatabaseRepositoryInterface;
12+
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
1213
use Pterodactyl\Contracts\Repository\AllocationRepositoryInterface;
1314

1415
class StatisticsController extends Controller
@@ -45,6 +46,7 @@ public function __construct(
4546

4647
public function index()
4748
{
49+
throw new NotFoundHttpException;
4850
$servers = $this->serverRepository->all();
4951
$nodes = $this->nodeRepository->all();
5052
$usersCount = $this->userRepository->count();

resources/views/layouts/admin.blade.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@
8080
<i class="fa fa-home"></i> <span>Overview</span>
8181
</a>
8282
</li>
83-
<li class="{{ Route::currentRouteName() !== 'admin.statistics' ?: 'active' }}">
84-
<a href="{{ route('admin.statistics') }}">
85-
<i class="fa fa-tachometer"></i> <span>Statistics</span>
86-
</a>
87-
</li>
8883
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.settings') ?: 'active' }}">
8984
<a href="{{ route('admin.settings')}}">
9085
<i class="fa fa-wrench"></i> <span>Settings</span>

0 commit comments

Comments
 (0)