mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-09 18:03:44 +02:00
Make server overview cleaner and easier to follow
Also adds allocation information tab, still need to make it so users can actually change their default connection address
This commit is contained in:
@@ -6,6 +6,7 @@ use Auth;
|
||||
use Pterodactyl\Models\Server;
|
||||
use Pterodactyl\Models\Node;
|
||||
use Pterodactyl\Models\Download;
|
||||
use Pterodactyl\Models\Allocation;
|
||||
use Debugbar;
|
||||
use Uuid;
|
||||
use Alert;
|
||||
@@ -46,6 +47,7 @@ class ServerController extends Controller
|
||||
$server = Server::getByUUID($request->route()->server);
|
||||
return view('server.index', [
|
||||
'server' => $server,
|
||||
'allocations' => Allocation::where('assigned_to', $server->id)->orderBy('ip', 'asc')->orderBy('port', 'asc')->get(),
|
||||
'node' => Node::find($server->node)
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user