2017-09-26 02:43:01 +00:00
|
|
|
{{-- Pterodactyl - Panel --}}
|
2017-02-19 00:31:44 +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-02-19 00:31:44 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
List Servers
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>Servers<small>All servers available on the system.</small></h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
|
|
|
<li class="active">Servers</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Server List</h3>
|
2020-07-12 18:15:01 +00:00
|
|
|
<div class="box-tools search01">
|
2017-02-19 00:31:44 +00:00
|
|
|
<form action="{{ route('admin.servers') }}" method="GET">
|
2017-04-14 05:44:06 +00:00
|
|
|
<div class="input-group input-group-sm">
|
2020-11-01 20:28:14 +00:00
|
|
|
<input type="text" name="filter[*]" class="form-control pull-right" value="{{ request()->input()['filter']['*'] ?? '' }}" placeholder="Search Servers">
|
2017-02-19 00:31:44 +00:00
|
|
|
<div class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
|
|
|
|
<a href="{{ route('admin.servers.new') }}"><button type="button" class="btn btn-sm btn-primary" style="border-radius: 0 3px 3px 0;margin-left:-1px;">Create New</button></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>Server Name</th>
|
2018-02-17 20:41:32 +00:00
|
|
|
<th>UUID</th>
|
2017-02-19 00:31:44 +00:00
|
|
|
<th>Owner</th>
|
|
|
|
<th>Node</th>
|
|
|
|
<th>Connection</th>
|
|
|
|
<th></th>
|
2018-01-06 19:19:17 +00:00
|
|
|
<th></th>
|
2017-02-19 00:31:44 +00:00
|
|
|
</tr>
|
|
|
|
@foreach ($servers as $server)
|
|
|
|
<tr data-server="{{ $server->uuidShort }}">
|
2017-03-03 22:50:45 +00:00
|
|
|
<td><a href="{{ route('admin.servers.view', $server->id) }}">{{ $server->name }}</a></td>
|
2018-02-17 20:41:32 +00:00
|
|
|
<td><code title="{{ $server->uuid }}">{{ $server->uuid }}</code></td>
|
2017-03-03 22:50:45 +00:00
|
|
|
<td><a href="{{ route('admin.users.view', $server->user->id) }}">{{ $server->user->username }}</a></td>
|
|
|
|
<td><a href="{{ route('admin.nodes.view', $server->node->id) }}">{{ $server->node->name }}</a></td>
|
2017-02-19 00:31:44 +00:00
|
|
|
<td>
|
|
|
|
<code>{{ $server->allocation->alias }}:{{ $server->allocation->port }}</code>
|
|
|
|
</td>
|
|
|
|
<td class="text-center">
|
2017-04-01 02:12:31 +00:00
|
|
|
@if($server->suspended)
|
2017-02-19 00:31:44 +00:00
|
|
|
<span class="label bg-maroon">Suspended</span>
|
|
|
|
@elseif(! $server->installed)
|
|
|
|
<span class="label label-warning">Installing</span>
|
|
|
|
@else
|
|
|
|
<span class="label label-success">Active</span>
|
|
|
|
@endif
|
|
|
|
</td>
|
2018-01-06 19:19:17 +00:00
|
|
|
<td class="text-center">
|
2019-12-17 05:27:01 +00:00
|
|
|
<a class="btn btn-xs btn-default" href="/server/{{ $server->uuidShort }}"><i class="fa fa-wrench"></i></a>
|
2018-01-06 19:19:17 +00:00
|
|
|
</td>
|
2017-02-19 00:31:44 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2017-04-01 02:12:31 +00:00
|
|
|
@if($servers->hasPages())
|
|
|
|
<div class="box-footer with-border">
|
2020-11-01 20:28:14 +00:00
|
|
|
<div class="col-md-12 text-center">{!! $servers->appends(['filter' => Request::input('filter')])->render() !!}</div>
|
2017-04-01 02:12:31 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2017-02-19 00:31:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
2018-01-06 19:19:17 +00:00
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
|
|
|
<script>
|
|
|
|
$('.console-popout').on('click', function (event) {
|
|
|
|
event.preventDefault();
|
|
|
|
window.open($(this).attr('href'), 'Pterodactyl Console', 'width=800,height=400');
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endsection
|