2017-09-26 02:43:01 +00:00
|
|
|
{{-- Pterodactyl - Panel --}}
|
2017-03-03 22:30:39 +00:00
|
|
|
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
|
|
|
|
|
2017-09-26 02:43:01 +00:00
|
|
|
{{-- This software is licensed under the terms of the MIT license. --}}
|
|
|
|
{{-- https://opensource.org/licenses/MIT --}}
|
2017-03-03 22:30:39 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
{{ $node->name }}
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>{{ $node->name }}<small>A quick overview of your node.</small></h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
|
|
|
<li><a href="{{ route('admin.nodes') }}">Nodes</a></li>
|
|
|
|
<li class="active">{{ $node->name }}</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="nav-tabs-custom nav-tabs-floating">
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="active"><a href="{{ route('admin.nodes.view', $node->id) }}">About</a></li>
|
|
|
|
<li><a href="{{ route('admin.nodes.view.settings', $node->id) }}">Settings</a></li>
|
|
|
|
<li><a href="{{ route('admin.nodes.view.configuration', $node->id) }}">Configuration</a></li>
|
|
|
|
<li><a href="{{ route('admin.nodes.view.allocation', $node->id) }}">Allocation</a></li>
|
|
|
|
<li><a href="{{ route('admin.nodes.view.servers', $node->id) }}">Servers</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
2017-03-04 04:05:27 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Information</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tr>
|
|
|
|
<td>Daemon Version</td>
|
2017-09-11 04:45:27 +00:00
|
|
|
<td><code data-attr="info-version"><i class="fa fa-refresh fa-fw fa-spin"></i></code> (Latest: <code>{{ $version->getDaemon() }}</code>)</td>
|
2017-03-04 04:05:27 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>System Information</td>
|
|
|
|
<td data-attr="info-system"><i class="fa fa-refresh fa-fw fa-spin"></i></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Total CPU Cores</td>
|
|
|
|
<td data-attr="info-cpus"><i class="fa fa-refresh fa-fw fa-spin"></i></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-03 22:30:39 +00:00
|
|
|
</div>
|
2018-03-26 18:57:24 +00:00
|
|
|
@if ($node->description)
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
Description
|
|
|
|
</div>
|
|
|
|
<div class="box-body table-responsive">
|
|
|
|
<pre>{{ $node->description }}</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2017-03-04 04:05:27 +00:00
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box box-danger">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Delete Node</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2018-05-13 14:34:09 +00:00
|
|
|
<p class="no-margin">Deleting a node is a irreversible action and will immediately remove this node from the panel. There must be no servers associated with this node in order to continue.</p>
|
2017-03-04 04:05:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<form action="{{ route('admin.nodes.view.delete', $node->id) }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
{!! method_field('DELETE') !!}
|
|
|
|
<button type="submit" class="btn btn-danger btn-sm pull-right" {{ ($node->servers_count < 1) ?: 'disabled' }}>Yes, Delete This Node</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-03 22:30:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">At-a-Glance</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="row">
|
2018-05-31 14:34:35 +00:00
|
|
|
@if($node->maintenance_mode)
|
2018-05-04 13:13:34 +00:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="info-box bg-orange">
|
|
|
|
<span class="info-box-icon"><i class="ion ion-wrench"></i></span>
|
|
|
|
<div class="info-box-content" style="padding: 23px 10px 0;">
|
|
|
|
<span class="info-box-text">This node is under</span>
|
|
|
|
<span class="info-box-number">Maintenance</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2017-03-03 22:30:39 +00:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="info-box bg-{{ $stats['disk']['css'] }}">
|
|
|
|
<span class="info-box-icon"><i class="ion ion-ios-folder-outline"></i></span>
|
|
|
|
<div class="info-box-content" style="padding: 15px 10px 0;">
|
|
|
|
<span class="info-box-text">Disk Space Allocated</span>
|
2017-05-06 03:13:42 +00:00
|
|
|
<span class="info-box-number">{{ $stats['disk']['value'] }} / {{ $stats['disk']['max'] }} Mb</span>
|
2017-03-03 22:30:39 +00:00
|
|
|
<div class="progress">
|
|
|
|
<div class="progress-bar" style="width: {{ $stats['disk']['percent'] }}%"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="info-box bg-{{ $stats['memory']['css'] }}">
|
|
|
|
<span class="info-box-icon"><i class="ion ion-ios-barcode-outline"></i></span>
|
|
|
|
<div class="info-box-content" style="padding: 15px 10px 0;">
|
|
|
|
<span class="info-box-text">Memory Allocated</span>
|
2017-05-06 03:13:42 +00:00
|
|
|
<span class="info-box-number">{{ $stats['memory']['value'] }} / {{ $stats['memory']['max'] }} Mb</span>
|
2017-03-03 22:30:39 +00:00
|
|
|
<div class="progress">
|
|
|
|
<div class="progress-bar" style="width: {{ $stats['memory']['percent'] }}%"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="info-box bg-gray">
|
|
|
|
<span class="info-box-icon"><i class="ion ion-social-buffer-outline"></i></span>
|
|
|
|
<div class="info-box-content" style="padding: 23px 10px 0;">
|
|
|
|
<span class="info-box-text">Total Servers</span>
|
|
|
|
<span class="info-box-number">{{ $node->servers_count }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
|
|
|
<script>
|
|
|
|
(function getInformation() {
|
|
|
|
$.ajax({
|
|
|
|
method: 'GET',
|
2017-10-01 02:00:24 +00:00
|
|
|
url: '{{ $node->scheme }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/v1',
|
2017-03-03 22:30:39 +00:00
|
|
|
timeout: 5000,
|
|
|
|
headers: {
|
|
|
|
'X-Access-Token': '{{ $node->daemonSecret }}'
|
|
|
|
},
|
|
|
|
}).done(function (data) {
|
|
|
|
$('[data-attr="info-version"]').html(data.version);
|
|
|
|
$('[data-attr="info-system"]').html(data.system.type + '(' + data.system.arch + ') <code>' + data.system.release + '</code>');
|
|
|
|
$('[data-attr="info-cpus"]').html(data.system.cpus);
|
|
|
|
}).fail(function (jqXHR) {
|
|
|
|
|
|
|
|
}).always(function() {
|
|
|
|
setTimeout(getInformation, 10000);
|
|
|
|
});
|
|
|
|
})();
|
|
|
|
</script>
|
2018-03-26 18:57:24 +00:00
|
|
|
@endsection
|