2016-01-24 02:30:03 +00:00
|
|
|
{{-- Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com> --}}
|
2016-01-20 20:56:40 +00:00
|
|
|
|
2016-01-24 02:30:03 +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: --}}
|
2016-01-20 20:56:40 +00:00
|
|
|
|
2016-01-24 02:30:03 +00:00
|
|
|
{{-- The above copyright notice and this permission notice shall be included in all --}}
|
|
|
|
{{-- copies or substantial portions of the Software. --}}
|
2016-01-20 20:56:40 +00:00
|
|
|
|
2016-01-24 02:30:03 +00:00
|
|
|
{{-- 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. --}}
|
2015-12-06 18:58:49 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
@section('scripts')
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="robots" content="noindex">
|
2016-10-01 00:35:27 +00:00
|
|
|
{!! Theme::css('css/vendor/bootstrap/bootstrap.css') !!}
|
2016-02-06 04:27:43 +00:00
|
|
|
{!! Theme::css('css/pterodactyl.css') !!}
|
|
|
|
{!! Theme::css('css/animate.css') !!}
|
2016-10-01 00:35:27 +00:00
|
|
|
{!! Theme::css('css/vendor/fontawesome/font-awesome.min.css') !!}
|
|
|
|
{!! Theme::css('css/vendor/sweetalert/sweetalert.min.css') !!}
|
|
|
|
{!! Theme::css('css/vendor/fuelux/fuelux.min.css') !!}
|
|
|
|
{!! Theme::js('js/vendor/jquery/jquery.min.js') !!}
|
|
|
|
{!! Theme::js('js/vendor/bootstrap/bootstrap.min.js') !!}
|
|
|
|
{!! Theme::js('js/vendor/sweetalert/sweetalert.min.js') !!}
|
|
|
|
{!! Theme::js('js/vendor/fuelux/fuelux.min.js') !!}
|
2016-02-06 04:27:43 +00:00
|
|
|
{!! Theme::js('js/admin.min.js') !!}
|
2016-11-09 22:58:14 +00:00
|
|
|
{!! Theme::js('js/bootstrap-notify.min.js') !!}
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$.notifyDefaults({
|
|
|
|
placement: {
|
|
|
|
from: 'bottom',
|
|
|
|
align: 'right'
|
|
|
|
},
|
|
|
|
newest_on_top: true,
|
|
|
|
delay: 2000,
|
|
|
|
animate: {
|
|
|
|
enter: 'animated fadeInUp',
|
|
|
|
exit: 'animated fadeOutDown'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2015-12-06 18:58:49 +00:00
|
|
|
@show
|
2016-01-21 03:08:09 +00:00
|
|
|
<title>{{ Settings::get('company') }} - @yield('title')</title>
|
2015-12-06 18:58:49 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar navbar-default">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2016-01-21 03:08:09 +00:00
|
|
|
<a class="navbar-brand" href="/">{{ Settings::get('company') }}</a>
|
2015-12-06 18:58:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="navbar-collapse collapse navbar-responsive-collapse">
|
2016-01-26 01:50:44 +00:00
|
|
|
@section('navbar-links')
|
|
|
|
<ul class="nav navbar-nav hidden-md hidden-lg">
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Management <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="/admin">Admin Index</a></li>
|
|
|
|
<li><a href="/admin/settings">General Settings</a></li>
|
2016-02-13 05:18:32 +00:00
|
|
|
<li><a href="/admin/databases">Database Management</a></li>
|
2016-01-26 01:50:44 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown">
|
2016-09-05 20:28:13 +00:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Users <b class="caret"></b></a>
|
2016-01-26 01:50:44 +00:00
|
|
|
<ul class="dropdown-menu">
|
2016-02-21 06:15:37 +00:00
|
|
|
<li><a href="/admin/users">Find Account</a></li>
|
|
|
|
<li><a href="/admin/users/new">New Account</a></li>
|
2016-01-26 01:50:44 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Servers <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="/admin/servers">Find Server</a></li>
|
|
|
|
<li><a href="/admin/servers/new">New Server</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Nodes <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="/admin/nodes">List Nodes</a></li>
|
|
|
|
<li><a href="/admin/locations">Manage Locations</a></li>
|
|
|
|
<li><a href="/admin/nodes/new">New Node</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Services <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="/admin/services">List Services</a></li>
|
|
|
|
<li><a href="/admin/services/new">Add Service</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
@show
|
2015-12-06 18:58:49 +00:00
|
|
|
@section('right-nav')
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ trans('strings.language') }}<b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="/language/de">Deutsch</a></li>
|
|
|
|
<li><a href="/language/en">English</a></li>
|
2016-09-26 00:32:32 +00:00
|
|
|
<!-- <li><a href="/language/es">Español</a></li>
|
2015-12-06 18:58:49 +00:00
|
|
|
<li><a href="/language/fr">Français</a></li>
|
|
|
|
<li><a href="/language/it">Italiano</a></li>
|
2016-09-26 00:32:32 +00:00
|
|
|
<li><a href="/language/pl">Polski</a></li> -->
|
2015-12-06 18:58:49 +00:00
|
|
|
<li><a href="/language/pt">Português</a></li>
|
2016-09-26 00:32:32 +00:00
|
|
|
<!-- <li><a href="/language/ru">русский</a></li>
|
2015-12-06 18:58:49 +00:00
|
|
|
<li><a href="/language/se">Svenska</a></li>
|
2016-09-26 00:32:32 +00:00
|
|
|
<li><a href="/language/zh">中国的的</a></li> -->
|
2015-12-06 18:58:49 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="hidden-xs"><a href="/"><i class="fa fa-server"></i></a></li>
|
2016-01-26 01:50:44 +00:00
|
|
|
<li class="visible-xs"><a href="/"><i class="fa fa-server"></i> Server View</a></li>
|
2015-12-06 18:58:49 +00:00
|
|
|
<li class="hidden-xs"><a href="/auth/logout"><i class="fa fa-power-off"></i></a></li>
|
2016-01-26 01:50:44 +00:00
|
|
|
<li class="visible-xs"><a href="/auth/logout"><i class="fa fa-power-off"></i> Logout</a></li>
|
2015-12-06 18:58:49 +00:00
|
|
|
</ul>
|
|
|
|
@show
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Add Back Mobile Support -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar_links">
|
|
|
|
@section('sidebar')
|
|
|
|
<div class="list-group">
|
2016-01-11 00:01:26 +00:00
|
|
|
<a href="#" class="list-group-item list-group-item-heading"><strong>Management</strong></a>
|
2015-12-06 18:58:49 +00:00
|
|
|
<a href="/admin" id="sidenav_admin-index" class="list-group-item">Admin Index</a>
|
2016-01-11 00:01:26 +00:00
|
|
|
<a href="/admin/settings" class="list-group-item">General Settings</a>
|
2016-02-13 05:18:32 +00:00
|
|
|
<a href="/admin/databases" class="list-group-item">Database Management</a>
|
2015-12-06 18:58:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="list-group">
|
|
|
|
<a href="#" class="list-group-item list-group-item-heading"><strong>Account Management</strong></a>
|
2016-02-21 06:15:37 +00:00
|
|
|
<a href="/admin/users" class="list-group-item">Find Account</a>
|
|
|
|
<a href="/admin/users/new" class="list-group-item">New Account</a>
|
2015-12-06 18:58:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="list-group">
|
|
|
|
<a href="#" class="list-group-item list-group-item-heading"><strong>Server Management</strong></a>
|
|
|
|
<a href="/admin/servers" class="list-group-item">Find Server</a>
|
|
|
|
<a href="/admin/servers/new" class="list-group-item">New Server</a>
|
|
|
|
</div>
|
|
|
|
<div class="list-group">
|
|
|
|
<a href="#" class="list-group-item list-group-item-heading"><strong>Node Management</strong></a>
|
2016-01-04 21:48:22 +00:00
|
|
|
<a href="/admin/nodes" class="list-group-item">List Nodes</a>
|
|
|
|
<a href="/admin/locations" class="list-group-item">Manage Locations</a>
|
2016-01-11 00:01:26 +00:00
|
|
|
<a href="/admin/nodes/new" class="list-group-item">Add Node</a>
|
|
|
|
</div>
|
|
|
|
<div class="list-group">
|
|
|
|
<a href="#" class="list-group-item list-group-item-heading"><strong>Service Management</strong></a>
|
|
|
|
<a href="/admin/services" class="list-group-item">List Services</a>
|
|
|
|
<a href="/admin/services/new" class="list-group-item">Add Service</a>
|
2015-12-06 18:58:49 +00:00
|
|
|
</div>
|
|
|
|
@show
|
|
|
|
</div>
|
2016-01-04 21:48:22 +00:00
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12" id="tpl_messages">
|
2016-10-30 00:29:26 +00:00
|
|
|
@section('resp-errors')
|
|
|
|
@if (count($errors) > 0)
|
|
|
|
<div class="alert alert-danger">
|
2016-01-04 21:48:22 +00:00
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
2016-10-30 00:29:26 +00:00
|
|
|
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('auth.errorencountered') }}<br><br>
|
|
|
|
<ul>
|
|
|
|
@foreach ($errors->all() as $error)
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
2016-01-04 21:48:22 +00:00
|
|
|
</div>
|
2016-10-30 00:29:26 +00:00
|
|
|
@endif
|
|
|
|
@show
|
|
|
|
@section('resp-alerts')
|
|
|
|
@foreach (Alert::getMessages() as $type => $messages)
|
|
|
|
@foreach ($messages as $message)
|
|
|
|
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
{!! $message !!}
|
|
|
|
</div>
|
|
|
|
@endforeach
|
2016-01-04 21:48:22 +00:00
|
|
|
@endforeach
|
2016-10-30 00:29:26 +00:00
|
|
|
@show
|
2016-01-04 21:48:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
@yield('content')
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-06 18:58:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="footer">
|
2016-02-15 02:46:17 +00:00
|
|
|
<div class="row" style="margin-bottom:15px;">
|
2015-12-06 18:58:49 +00:00
|
|
|
<div class="col-md-12">
|
2016-01-21 03:08:09 +00:00
|
|
|
Copyright © 2015 - {{ date('Y') }} <a href="https://github.com/Pterodactyl/Panel" target="_blank">Pterodactyl Software & Design</a>.<br />
|
|
|
|
Pterodactyl is licensed under a <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> license. <!-- Please do not remove this license notice. We can't stop you though... :) -->
|
2015-12-06 18:58:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
// Remeber Active Tab and Navigate to it on Reload
|
|
|
|
for(var queryParameters={},queryString=location.search.substring(1),re=/([^&=]+)=([^&]*)/g,m;m=re.exec(queryString);)queryParameters[decodeURIComponent(m[1])]=decodeURIComponent(m[2]);$("a[data-toggle='tab']").click(function(){queryParameters.tab=$(this).attr("href").substring(1),window.history.pushState(null,null,location.pathname+"?"+$.param(queryParameters))});
|
|
|
|
if($.urlParam('tab') != null){$('.nav.nav-tabs a[href="#' + $.urlParam('tab') + '"]').tab('show');}
|
2016-01-04 21:48:22 +00:00
|
|
|
|
|
|
|
@if (count($errors) > 0)
|
|
|
|
@foreach ($errors->all() as $error)
|
2016-09-27 21:32:34 +00:00
|
|
|
<?php preg_match('/^The\s(.*?)\sfield/', $error, $matches) ?>
|
2016-01-04 21:48:22 +00:00
|
|
|
@if (isset($matches[1]))
|
2016-09-27 21:32:34 +00:00
|
|
|
$('[name="{{ str_replace(' ', '_', $matches[1]) }}"]').parent().parent().addClass('has-error');
|
2016-01-04 21:48:22 +00:00
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@endif
|
2015-12-06 18:58:49 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|