diff --git a/app/Http/Controllers/Admin/NodesController.php b/app/Http/Controllers/Admin/NodesController.php index 415300ebb..44e902037 100644 --- a/app/Http/Controllers/Admin/NodesController.php +++ b/app/Http/Controllers/Admin/NodesController.php @@ -68,7 +68,11 @@ class NodesController extends Controller { $node = Models\Node::findOrFail($id); return view('admin.nodes.view', [ - 'node' => $node + 'node' => $node, + 'servers' => Models\Server::select('servers.*', 'users.email as a_ownerEmail', 'services.name as a_serviceName') + ->join('users', 'users.id', '=', 'servers.owner') + ->join('services', 'services.id', '=', 'servers.service') + ->where('node', $id)->paginate(10) ]); } diff --git a/resources/views/admin/nodes/view.blade.php b/resources/views/admin/nodes/view.blade.php index e69de29bb..dac4b8f6b 100644 --- a/resources/views/admin/nodes/view.blade.php +++ b/resources/views/admin/nodes/view.blade.php @@ -0,0 +1,140 @@ +@extends('layouts.admin') + +@section('title') + Managing Node: {{ $node->name }} +@endsection + +@section('content') +
10%
and the CPU usage below displays 90%
that means the server is using 9%
of the total system CPU.
+ Name | +Owner | +Service | +Memory | +Disk | +CPU | +Status | +
---|---|---|---|---|---|---|
{{ $server->name }} | +{{ $server->a_ownerEmail }} |
+ {{ $server->a_serviceName }} | +-- / {{ $server->memory }} MB | +{{ $server->disk }} MB | +-- % | +-- | +