2017-09-26 02:43:01 +00:00
|
|
|
{{-- Pterodactyl - Panel --}}
|
2017-01-24 22:57:08 +00:00
|
|
|
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
|
2017-01-15 19:09:57 +00:00
|
|
|
|
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-01-15 19:09:57 +00:00
|
|
|
@extends('layouts.master')
|
|
|
|
|
|
|
|
@section('title')
|
2017-01-18 01:01:26 +00:00
|
|
|
@lang('base.index.header')
|
2017-01-15 19:09:57 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
2017-01-18 01:01:26 +00:00
|
|
|
<h1>@lang('base.index.header')<small>@lang('base.index.header_sub')</small></h1>
|
2017-01-15 19:09:57 +00:00
|
|
|
<ol class="breadcrumb">
|
2017-01-18 01:01:26 +00:00
|
|
|
<li><a href="{{ route('index') }}">@lang('strings.home')</a></li>
|
|
|
|
<li class="active">@lang('strings.servers')</li>
|
2017-01-15 19:09:57 +00:00
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header">
|
2017-01-18 01:01:26 +00:00
|
|
|
<h3 class="box-title">@lang('base.index.list')</h3>
|
2018-06-05 02:33:34 +00:00
|
|
|
<div class="box-tools search01">
|
2017-04-01 17:14:49 +00:00
|
|
|
<form action="{{ route('index') }}" method="GET">
|
2017-04-14 05:44:06 +00:00
|
|
|
<div class="input-group input-group-sm">
|
2018-06-05 02:33:34 +00:00
|
|
|
<input type="text" name="query" class="form-control pull-right" value="{{ request()->input('query') }}" placeholder="@lang('strings.search')">
|
2017-04-01 17:14:49 +00:00
|
|
|
<div class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
|
|
|
|
</div>
|
2017-01-15 19:09:57 +00:00
|
|
|
</div>
|
2017-04-01 17:14:49 +00:00
|
|
|
</form>
|
2017-01-15 19:09:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2017-01-18 01:01:26 +00:00
|
|
|
<th>@lang('strings.id')</th>
|
|
|
|
<th>@lang('strings.name')</th>
|
|
|
|
<th>@lang('strings.node')</th>
|
|
|
|
<th>@lang('strings.connection')</th>
|
|
|
|
<th class="text-center hidden-sm hidden-xs">@lang('strings.memory')</th>
|
|
|
|
<th class="text-center hidden-sm hidden-xs">@lang('strings.cpu')</th>
|
2019-07-26 15:14:27 +00:00
|
|
|
<th class="text-center hidden-sm hidden-xs">@lang('strings.disk')</th>
|
2017-03-17 19:34:29 +00:00
|
|
|
<th class="text-center">@lang('strings.relation')</th>
|
2017-01-18 01:01:26 +00:00
|
|
|
<th class="text-center">@lang('strings.status')</th>
|
2017-01-15 19:09:57 +00:00
|
|
|
</tr>
|
|
|
|
@foreach($servers as $server)
|
2017-05-05 20:27:36 +00:00
|
|
|
<tr class="dynamic-update" data-server="{{ $server->uuidShort }}">
|
2017-04-01 03:07:19 +00:00
|
|
|
<td @if(! empty($server->description)) rowspan="2" @endif><code>{{ $server->uuidShort }}</code></td>
|
|
|
|
<td><a href="{{ route('server.index', $server->uuidShort) }}">{{ $server->name }}</a></td>
|
2018-03-04 00:00:23 +00:00
|
|
|
<td>{{ $server->getRelation('node')->name }}</td>
|
|
|
|
<td><code>{{ $server->getRelation('allocation')->alias }}:{{ $server->getRelation('allocation')->port }}</code></td>
|
2018-08-01 16:03:36 +00:00
|
|
|
<td class="text-center hidden-sm hidden-xs"><span data-action="memory">--</span> / {{ $server->memory === 0 ? '∞' : $server->memory }} MB</td>
|
2017-04-01 03:07:19 +00:00
|
|
|
<td class="text-center hidden-sm hidden-xs"><span data-action="cpu" data-cpumax="{{ $server->cpu }}">--</span> %</td>
|
2019-07-26 15:14:27 +00:00
|
|
|
<td class="text-center hidden-sm hidden-xs"><span data-action="disk">--</span> / {{ $server->disk === 0 ? '∞' : $server->disk }} MB </td>
|
2017-04-01 03:07:19 +00:00
|
|
|
<td class="text-center">
|
|
|
|
@if($server->user->id === Auth::user()->id)
|
|
|
|
<span class="label bg-purple">@lang('strings.owner')</span>
|
2017-09-25 02:12:30 +00:00
|
|
|
@elseif(Auth::user()->root_admin)
|
2017-04-01 03:07:19 +00:00
|
|
|
<span class="label bg-maroon">@lang('strings.admin')</span>
|
|
|
|
@else
|
|
|
|
<span class="label bg-blue">@lang('strings.subuser')</span>
|
|
|
|
@endif
|
|
|
|
</td>
|
2018-05-31 14:34:35 +00:00
|
|
|
@if($server->node->maintenance_mode)
|
2018-05-04 13:16:14 +00:00
|
|
|
<td class="text-center">
|
2018-05-31 14:34:35 +00:00
|
|
|
<span class="label label-warning">@lang('strings.under_maintenance')</span>
|
2018-05-04 13:16:14 +00:00
|
|
|
</td>
|
|
|
|
@else
|
|
|
|
<td class="text-center" data-action="status">
|
|
|
|
<span class="label label-default"><i class="fa fa-refresh fa-fw fa-spin"></i></span>
|
|
|
|
</td>
|
|
|
|
@endif
|
2017-04-01 03:07:19 +00:00
|
|
|
</tr>
|
|
|
|
@if (! empty($server->description))
|
|
|
|
<tr class="server-description">
|
|
|
|
<td colspan="7"><p class="text-muted small no-margin">{{ str_limit($server->description, 400) }}</p></td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2017-01-15 19:09:57 +00:00
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2017-03-16 23:54:31 +00:00
|
|
|
@if($servers->hasPages())
|
|
|
|
<div class="box-footer">
|
2018-03-03 23:57:12 +00:00
|
|
|
<div class="col-md-12 text-center">{!! $servers->appends(['query' => Request::input('query')])->render() !!}</div>
|
2017-03-16 23:54:31 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2017-01-15 19:09:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
2017-04-01 03:07:19 +00:00
|
|
|
<script>
|
|
|
|
$('tr.server-description').on('mouseenter mouseleave', function (event) {
|
|
|
|
$(this).prev('tr').css({
|
|
|
|
'background-color': (event.type === 'mouseenter') ? '#f5f5f5' : '',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2017-01-15 19:09:57 +00:00
|
|
|
{!! Theme::js('js/frontend/serverlist.js') !!}
|
|
|
|
@endsection
|