diff --git a/app/Http/Controllers/Server/ServerController.php b/app/Http/Controllers/Server/ServerController.php index abc229fc2..f08965355 100644 --- a/app/Http/Controllers/Server/ServerController.php +++ b/app/Http/Controllers/Server/ServerController.php @@ -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) ]); } diff --git a/resources/lang/en/server.php b/resources/lang/en/server.php index bb32307aa..cc7ddcf96 100644 --- a/resources/lang/en/server.php +++ b/resources/lang/en/server.php @@ -23,7 +23,8 @@ return [ 'mem_limit' => 'Memory Limit', 'disk_space' => 'Disk Space', 'control' => 'Control Server', - 'info_use' => 'Information & Usage', + 'usage' => 'Usage', + 'allocation' => 'Allocation', 'command' => 'Enter Console Command', ], 'files' => [ diff --git a/resources/views/admin/servers/view.blade.php b/resources/views/admin/servers/view.blade.php index 91614c611..0a974b85a 100644 --- a/resources/views/admin/servers/view.blade.php +++ b/resources/views/admin/servers/view.blade.php @@ -140,6 +140,13 @@