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
|
|
|
|
|
|
|
{{-- Permission is hereby granted, free of charge, to any person obtaining a copy --}}
|
|
|
|
{{-- of this software and associated documentation files (the "Software"), to deal --}}
|
|
|
|
{{-- in the Software without restriction, including without limitation the rights --}}
|
|
|
|
{{-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --}}
|
|
|
|
{{-- copies of the Software, and to permit persons to whom the Software is --}}
|
|
|
|
{{-- furnished to do so, subject to the following conditions: --}}
|
|
|
|
|
|
|
|
{{-- The above copyright notice and this permission notice shall be included in all --}}
|
|
|
|
{{-- copies or substantial portions of the Software. --}}
|
|
|
|
|
|
|
|
{{-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR --}}
|
|
|
|
{{-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, --}}
|
|
|
|
{{-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE --}}
|
|
|
|
{{-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER --}}
|
|
|
|
{{-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, --}}
|
|
|
|
{{-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE --}}
|
|
|
|
{{-- SOFTWARE. --}}
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<title>{{ Settings::get('company', 'Pterodactyl') }} - @yield('title')</title>
|
|
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
|
|
<meta name="_token" content="{{ csrf_token() }}">
|
2017-03-18 20:57:12 +00:00
|
|
|
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
|
|
|
|
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
|
|
|
|
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
|
|
|
|
<link rel="manifest" href="/favicons/manifest.json">
|
|
|
|
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#bc6e3c">
|
|
|
|
<link rel="shortcut icon" href="/favicons/favicon.ico">
|
|
|
|
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
|
2017-03-19 10:35:51 +00:00
|
|
|
<meta name="theme-color" content="#367fa9">
|
2017-03-18 20:57:12 +00:00
|
|
|
|
2017-03-30 20:23:25 +00:00
|
|
|
@include('layouts.scripts')
|
|
|
|
|
2017-01-15 19:09:57 +00:00
|
|
|
@section('scripts')
|
|
|
|
{!! Theme::css('vendor/bootstrap/bootstrap.min.css') !!}
|
|
|
|
{!! Theme::css('vendor/adminlte/admin.min.css') !!}
|
|
|
|
{!! Theme::css('vendor/adminlte/colors/skin-blue.min.css') !!}
|
2017-01-16 01:28:54 +00:00
|
|
|
{!! Theme::css('vendor/sweetalert/sweetalert.min.css') !!}
|
2017-01-19 02:12:58 +00:00
|
|
|
{!! Theme::css('vendor/animate/animate.min.css') !!}
|
2017-01-15 19:09:57 +00:00
|
|
|
{!! Theme::css('css/pterodactyl.css') !!}
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
|
|
|
|
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
|
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
|
|
<![endif]-->
|
|
|
|
@show
|
|
|
|
</head>
|
|
|
|
<body class="hold-transition skin-blue fixed sidebar-mini">
|
|
|
|
<div class="wrapper">
|
|
|
|
<header class="main-header">
|
|
|
|
<a href="{{ route('index') }}" class="logo">
|
|
|
|
<span>{{ Settings::get('company', 'Pterodactyl') }}</span>
|
|
|
|
</a>
|
|
|
|
<nav class="navbar navbar-static-top">
|
|
|
|
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</a>
|
|
|
|
<div class="navbar-custom-menu">
|
|
|
|
<ul class="nav navbar-nav">
|
2017-01-17 23:21:05 +00:00
|
|
|
<li class="dropdown user-menu">
|
2017-02-16 23:19:52 +00:00
|
|
|
<a href="{{ route('account') }}" class="dropdown-toggle" data-toggle="dropdown">
|
2017-01-22 23:34:20 +00:00
|
|
|
<img src="https://www.gravatar.com/avatar/{{ md5(strtolower(Auth::user()->email)) }}?s=160" class="user-image" alt="User Image">
|
2017-02-16 23:19:52 +00:00
|
|
|
<span class="hidden-xs">{{ Auth::user()->name_first }} {{ Auth::user()->name_last }}</span>
|
2017-01-15 19:09:57 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-02-19 00:31:44 +00:00
|
|
|
<li>
|
2017-03-30 20:23:25 +00:00
|
|
|
<a href="#" data-action="control-sidebar" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.servers') }}"><i class="fa fa-server"></i></a>
|
2017-02-19 00:31:44 +00:00
|
|
|
</li>
|
2017-02-16 23:19:52 +00:00
|
|
|
@if(Auth::user()->isRootAdmin())
|
|
|
|
<li>
|
2017-03-30 20:23:25 +00:00
|
|
|
<li><a href="{{ route('admin.index') }}" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.admin_cp') }}"><i class="fa fa-gears"></i></a></li>
|
2017-02-16 23:19:52 +00:00
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
<li>
|
2017-03-30 20:23:25 +00:00
|
|
|
<li><a href="{{ route('auth.logout') }}" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.logout') }}"><i class="fa fa-power-off"></i></a></li>
|
2017-01-15 19:09:57 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<aside class="main-sidebar">
|
|
|
|
<section class="sidebar">
|
|
|
|
@if (isset($server->name) && isset($node->name))
|
|
|
|
<div class="user-panel">
|
|
|
|
<div class="info">
|
|
|
|
<p>{{ $server->name }}</p>
|
2017-01-15 23:52:22 +00:00
|
|
|
<a href="#" id="server_status_icon"><i class="fa fa-circle text-default"></i> Checking...</a>
|
2017-01-15 19:09:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<ul class="sidebar-menu">
|
2017-01-18 01:01:26 +00:00
|
|
|
<li class="header">@lang('navigation.account.header')</li>
|
2017-01-15 19:09:57 +00:00
|
|
|
<li class="{{ Route::currentRouteName() !== 'account' ?: 'active' }}">
|
2017-02-16 23:19:52 +00:00
|
|
|
<a href="{{ route('account') }}">
|
2017-01-18 01:01:26 +00:00
|
|
|
<i class="fa fa-user"></i> <span>@lang('navigation.account.my_account')</span>
|
2017-01-15 19:09:57 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="{{ Route::currentRouteName() !== 'account.security' ?: 'active' }}">
|
|
|
|
<a href="{{ route('account.security')}}">
|
2017-01-18 01:01:26 +00:00
|
|
|
<i class="fa fa-lock"></i> <span>@lang('navigation.account.security_controls')</span>
|
2017-01-15 19:09:57 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-01-21 04:48:12 +00:00
|
|
|
<li class="{{ (Route::currentRouteName() !== 'account.api' && Route::currentRouteName() !== 'account.api.new') ?: 'active' }}">
|
2017-01-15 19:09:57 +00:00
|
|
|
<a href="{{ route('account.api')}}">
|
2017-01-18 01:01:26 +00:00
|
|
|
<i class="fa fa-code"></i> <span>@lang('navigation.account.api_access')</span>
|
2017-01-15 19:09:57 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="{{ Route::currentRouteName() !== 'index' ?: 'active' }}">
|
|
|
|
<a href="{{ route('index')}}">
|
2017-01-18 01:01:26 +00:00
|
|
|
<i class="fa fa-server"></i> <span>@lang('navigation.account.my_servers')</span>
|
2017-01-15 19:09:57 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@if (isset($server->name) && isset($node->name))
|
2017-01-18 01:01:26 +00:00
|
|
|
<li class="header">@lang('navigation.server.header')</li>
|
2017-01-15 23:52:22 +00:00
|
|
|
<li class="{{ Route::currentRouteName() !== 'server.index' ?: 'active' }}">
|
2017-01-15 19:09:57 +00:00
|
|
|
<a href="{{ route('server.index', $server->uuidShort) }}">
|
2017-01-18 01:01:26 +00:00
|
|
|
<i class="fa fa-terminal"></i> <span>@lang('navigation.server.console')</span>
|
2017-04-15 22:23:29 +00:00
|
|
|
<span class="pull-right-container muted muted-hover" href="{{ route('server.console', $server->uuidShort) }}" id="console-popout">
|
|
|
|
<span class="label label-default pull-right" style="padding: 3px 5px 2px 5px;">
|
|
|
|
<i class="fa fa-external-link"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
2017-01-15 19:09:57 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-02-18 00:45:03 +00:00
|
|
|
@can('list-files', $server)
|
2017-03-30 20:20:51 +00:00
|
|
|
<li
|
|
|
|
@if(starts_with(Route::currentRouteName(), 'server.files'))
|
|
|
|
class="active"
|
2017-02-18 00:45:03 +00:00
|
|
|
@endif
|
2017-03-30 20:20:51 +00:00
|
|
|
>
|
|
|
|
<a href="{{ route('server.files.index', $server->uuidShort) }}">
|
|
|
|
<i class="fa fa-files-o"></i> <span>@lang('navigation.server.file_management')</span>
|
2017-02-18 00:45:03 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endcan
|
|
|
|
@can('list-subusers', $server)
|
|
|
|
<li
|
|
|
|
@if(in_array(Route::currentRouteName(), ['server.subusers', 'server.subusers.new', 'server.subusers.view']))
|
|
|
|
class="active"
|
|
|
|
@endif
|
|
|
|
>
|
|
|
|
<a href="{{ route('server.subusers', $server->uuidShort)}}">
|
2017-03-30 20:20:51 +00:00
|
|
|
<i class="fa fa-users"></i> <span>@lang('navigation.server.subusers')</span>
|
2017-02-18 00:45:03 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endcan
|
|
|
|
@can('list-tasks', $server)
|
|
|
|
<li
|
|
|
|
@if(in_array(Route::currentRouteName(), ['server.tasks', 'server.tasks.new']))
|
|
|
|
class="active"
|
|
|
|
@endif
|
|
|
|
>
|
|
|
|
<a href="{{ route('server.tasks', $server->uuidShort)}}">
|
|
|
|
<i class="fa fa-clock-o"></i> <span>@lang('navigation.server.task_management')</span>
|
|
|
|
<span class="pull-right-container">
|
2017-04-15 17:52:43 +00:00
|
|
|
<span class="label label-primary pull-right">{{ \Pterodactyl\Models\Task::select('id')->where('server_id', $server->id)->where('active', 1)->count() }}</span>
|
2017-02-18 00:45:03 +00:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endcan
|
|
|
|
@if(Gate::allows('view-startup', $server) || Gate::allows('view-sftp', $server) || Gate::allows('view-databases', $server) || Gate::allows('view-allocation', $server))
|
|
|
|
<li class="treeview
|
|
|
|
@if(in_array(Route::currentRouteName(), ['server.settings.sftp', 'server.settings.databases', 'server.settings.startup', 'server.settings.allocation']))
|
|
|
|
active
|
|
|
|
@endif
|
|
|
|
">
|
|
|
|
<a href="#">
|
|
|
|
<i class="fa fa-gears"></i>
|
|
|
|
<span>@lang('navigation.server.configuration')</span>
|
|
|
|
<span class="pull-right-container">
|
|
|
|
<i class="fa fa-angle-left pull-right"></i>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
<ul class="treeview-menu">
|
|
|
|
@can('view-allocation', $server)
|
|
|
|
<li class="{{ Route::currentRouteName() !== 'server.settings.allocation' ?: 'active' }}"><a href="{{ route('server.settings.allocation', $server->uuidShort) }}"><i class="fa fa-angle-right"></i> @lang('navigation.server.port_allocations')</a></li>
|
|
|
|
@endcan
|
|
|
|
@can('view-sftp', $server)
|
|
|
|
<li class="{{ Route::currentRouteName() !== 'server.settings.sftp' ?: 'active' }}"><a href="{{ route('server.settings.sftp', $server->uuidShort) }}"><i class="fa fa-angle-right"></i> @lang('navigation.server.sftp_settings')</a></li>
|
|
|
|
@endcan
|
|
|
|
@can('view-startup', $server)
|
|
|
|
<li class="{{ Route::currentRouteName() !== 'server.settings.startup' ?: 'active' }}"><a href="{{ route('server.settings.startup', $server->uuidShort) }}"><i class="fa fa-angle-right"></i> @lang('navigation.server.startup_parameters')</a></li>
|
|
|
|
@endcan
|
|
|
|
@can('view-databases', $server)
|
|
|
|
<li class="{{ Route::currentRouteName() !== 'server.settings.databases' ?: 'active' }}"><a href="{{ route('server.settings.databases', $server->uuidShort) }}"><i class="fa fa-angle-right"></i> @lang('navigation.server.databases')</a></li>
|
|
|
|
@endcan
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
@endif
|
2017-01-15 19:09:57 +00:00
|
|
|
@endif
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
</aside>
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<section class="content-header">
|
|
|
|
@yield('content-header')
|
|
|
|
</section>
|
|
|
|
<section class="content">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
@if (count($errors) > 0)
|
|
|
|
<div class="callout callout-danger">
|
2017-01-18 01:01:26 +00:00
|
|
|
@lang('base.validation_error')<br><br>
|
2017-01-15 19:09:57 +00:00
|
|
|
<ul>
|
|
|
|
@foreach ($errors->all() as $error)
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
@foreach (Alert::getMessages() as $type => $messages)
|
|
|
|
@foreach ($messages as $message)
|
|
|
|
<div class="callout callout-{{ $type }} alert-dismissable" role="alert">
|
|
|
|
{!! $message !!}
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@yield('content')
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<footer class="main-footer">
|
2017-04-14 05:44:06 +00:00
|
|
|
<div class="pull-right small text-gray" style="margin-right:10px;margin-top:-7px;">
|
2017-04-28 02:28:01 +00:00
|
|
|
<strong><i class="fa fa-fw {{ $appIsGit ? 'fa-git-square' : 'fa-code-fork' }}"></i></strong> {{ $appVersion }}<br />
|
|
|
|
<strong><i class="fa fa-fw fa-clock-o"></i></strong> {{ round(microtime(true) - LARAVEL_START, 3) }}s
|
2017-01-15 19:09:57 +00:00
|
|
|
</div>
|
2017-02-16 20:02:40 +00:00
|
|
|
Copyright © 2015 - {{ date('Y') }} <a href="https://pterodactyl.io/">Pterodactyl Software</a>.
|
2017-01-15 19:09:57 +00:00
|
|
|
</footer>
|
|
|
|
<aside class="control-sidebar control-sidebar-dark">
|
|
|
|
<div class="tab-content">
|
2017-03-18 20:32:00 +00:00
|
|
|
<ul class="control-sidebar-menu">
|
2017-04-01 17:14:49 +00:00
|
|
|
@foreach (Auth::user()->access(null)->get() as $s)
|
2017-03-18 20:32:00 +00:00
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
@if(isset($server) && isset($node))
|
|
|
|
@if($server->uuidShort === $s->uuidShort)
|
|
|
|
class="active"
|
2017-01-15 19:09:57 +00:00
|
|
|
@endif
|
2017-03-18 20:32:00 +00:00
|
|
|
@endif
|
|
|
|
href="{{ route('server.index', $s->uuidShort) }}">
|
|
|
|
@if($s->owner_id === Auth::user()->id)
|
|
|
|
<i class="menu-icon fa fa-user bg-blue"></i>
|
|
|
|
@else
|
|
|
|
<i class="menu-icon fa fa-user-o bg-gray"></i>
|
|
|
|
@endif
|
|
|
|
<div class="menu-info">
|
|
|
|
<h4 class="control-sidebar-subheading">{{ $s->name }}</h4>
|
|
|
|
<p>{{ $s->username }}</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
2017-01-15 19:09:57 +00:00
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
<div class="control-sidebar-bg"></div>
|
|
|
|
</div>
|
|
|
|
@section('footer-scripts')
|
2017-04-14 05:21:38 +00:00
|
|
|
{!! Theme::js('vendor/terminal/keyboard.polyfill.js') !!}
|
|
|
|
<script>keyboardeventKeyPolyfill.polyfill();</script>
|
|
|
|
|
2017-01-15 19:09:57 +00:00
|
|
|
{!! Theme::js('js/laroute.js') !!}
|
2017-01-29 00:20:37 +00:00
|
|
|
{!! Theme::js('vendor/jquery/jquery.min.js') !!}
|
2017-01-16 01:28:54 +00:00
|
|
|
{!! Theme::js('vendor/sweetalert/sweetalert.min.js') !!}
|
2017-01-15 19:09:57 +00:00
|
|
|
{!! Theme::js('vendor/bootstrap/bootstrap.min.js') !!}
|
|
|
|
{!! Theme::js('vendor/slimscroll/jquery.slimscroll.min.js') !!}
|
|
|
|
{!! Theme::js('vendor/adminlte/app.min.js') !!}
|
2017-03-18 23:03:25 +00:00
|
|
|
{!! Theme::js('vendor/socketio/socket.io.min.js') !!}
|
2017-01-19 02:12:58 +00:00
|
|
|
{!! Theme::js('vendor/bootstrap-notify/bootstrap-notify.min.js') !!}
|
2017-05-01 20:41:39 +00:00
|
|
|
{!! Theme::js('js/autocomplete.js') !!}
|
2017-03-19 15:55:36 +00:00
|
|
|
@if(config('pterodactyl.lang.in_context'))
|
|
|
|
{!! Theme::js('vendor/phraseapp/phraseapp.js') !!}
|
|
|
|
@endif
|
2017-01-15 19:09:57 +00:00
|
|
|
@show
|
|
|
|
</body>
|
|
|
|
</html>
|