Skip to content

Commit 0139c56

Browse files
authored
Create admin.blade.php
1 parent c30539c commit 0139c56

File tree

1 file changed

+211
-0
lines changed

1 file changed

+211
-0
lines changed
Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
{{-- Pterodactyl - Panel --}}
2+
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
3+
4+
{{-- This software is licensed under the terms of the MIT license. --}}
5+
{{-- https://opensource.org/licenses/MIT --}}
6+
<!DOCTYPE html>
7+
<html>
8+
<head>
9+
<meta charset="utf-8">
10+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
11+
<title>{{ config('app.name', 'Pterodactyl') }} - @yield('title')</title>
12+
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
13+
<meta name="_token" content="{{ csrf_token() }}">
14+
15+
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
16+
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
17+
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
18+
<link rel="manifest" href="/favicons/manifest.json">
19+
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#bc6e3c">
20+
<link rel="shortcut icon" href="/favicons/favicon.ico">
21+
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
22+
<meta name="theme-color" content="#0e4688">
23+
24+
@include('layouts.scripts')
25+
26+
@section('scripts')
27+
{!! Theme::css('vendor/select2/select2.min.css?t={cache-version}') !!}
28+
{!! Theme::css('vendor/bootstrap/bootstrap.min.css?t={cache-version}') !!}
29+
{!! Theme::css('vendor/adminlte/admin.min.css?t={cache-version}') !!}
30+
{!! Theme::css('vendor/adminlte/colors/skin-blue.min.css?t={cache-version}') !!}
31+
{!! Theme::css('vendor/sweetalert/sweetalert.min.css?t={cache-version}') !!}
32+
{!! Theme::css('vendor/animate/animate.min.css?t={cache-version}') !!}
33+
{!! Theme::css('css/pterodactyl.css?t={cache-version}') !!}
34+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
35+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
36+
<link rel="stylesheet" href="/var/www/pterodactyl/resources/scripts/admin.css">
37+
38+
<!--[if lt IE 9]>
39+
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
40+
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
41+
<![endif]-->
42+
@show
43+
</head>
44+
<body class="hold-transition skin-blue fixed sidebar-mini">
45+
<div class="wrapper">
46+
<header class="main-header">
47+
<a href="{{ route('index') }}" class="logo">
48+
<span>{{ config('app.name', 'Pterodactyl') }}</span>
49+
</a>
50+
<nav class="navbar navbar-static-top">
51+
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
52+
<span class="sr-only">Toggle navigation</span>
53+
<span class="icon-bar"></span>
54+
<span class="icon-bar"></span>
55+
<span class="icon-bar"></span>
56+
</a>
57+
<div class="navbar-custom-menu">
58+
<ul class="nav navbar-nav">
59+
<li class="user-menu">
60+
<a href="{{ route('account') }}">
61+
<img src="https://www.gravatar.com/avatar/{{ md5(strtolower(Auth::user()->email)) }}?s=160" class="user-image" alt="User Image">
62+
<span class="hidden-xs">{{ Auth::user()->name_first }} {{ Auth::user()->name_last }}</span>
63+
</a>
64+
</li>
65+
<li>
66+
<li><a href="{{ route('index') }}" data-toggle="tooltip" data-placement="bottom" title="Exit Admin Control"><i class="fa fa-server"></i></a></li>
67+
</li>
68+
<li>
69+
<li><a href="{{ route('auth.logout') }}" id="logoutButton" data-toggle="tooltip" data-placement="bottom" title="Logout"><i class="fa fa-sign-out"></i></a></li>
70+
</li>
71+
</ul>
72+
</div>
73+
</nav>
74+
</header>
75+
<aside class="main-sidebar">
76+
<section class="sidebar">
77+
<ul class="sidebar-menu">
78+
<li class="header">BASIC ADMINISTRATION</li>
79+
<li class="{{ Route::currentRouteName() !== 'admin.index' ?: 'active' }}">
80+
<a href="{{ route('admin.index') }}">
81+
<i class="fa fa-home"></i> <span>Overview</span>
82+
</a>
83+
</li>
84+
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.settings') ?: 'active' }}">
85+
<a href="{{ route('admin.settings')}}">
86+
<i class="fa fa-wrench"></i> <span>Settings</span>
87+
</a>
88+
</li>
89+
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.api') ?: 'active' }}">
90+
<a href="{{ route('admin.api.index')}}">
91+
<i class="fa fa-gamepad"></i> <span>Application API</span>
92+
</a>
93+
</li>
94+
<li class="header">MANAGEMENT</li>
95+
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.databases') ?: 'active' }}">
96+
<a href="{{ route('admin.databases') }}">
97+
<i class="fa fa-database"></i> <span>Databases</span>
98+
</a>
99+
</li>
100+
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.locations') ?: 'active' }}">
101+
<a href="{{ route('admin.locations') }}">
102+
<i class="fa fa-globe"></i> <span>Locations</span>
103+
</a>
104+
</li>
105+
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.nodes') ?: 'active' }}">
106+
<a href="{{ route('admin.nodes') }}">
107+
<i class="fa fa-sitemap"></i> <span>Nodes</span>
108+
</a>
109+
</li>
110+
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.servers') ?: 'active' }}">
111+
<a href="{{ route('admin.servers') }}">
112+
<i class="fa fa-server"></i> <span>Servers</span>
113+
</a>
114+
</li>
115+
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.users') ?: 'active' }}">
116+
<a href="{{ route('admin.users') }}">
117+
<i class="fa fa-users"></i> <span>Users</span>
118+
</a>
119+
</li>
120+
<li class="header">SERVICE MANAGEMENT</li>
121+
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.mounts') ?: 'active' }}">
122+
<a href="{{ route('admin.mounts') }}">
123+
<i class="fa fa-magic"></i> <span>Mounts</span>
124+
</a>
125+
</li>
126+
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.nests') ?: 'active' }}">
127+
<a href="{{ route('admin.nests') }}">
128+
<i class="fa fa-th-large"></i> <span>Nests</span>
129+
</a>
130+
</li>
131+
</ul>
132+
</section>
133+
</aside>
134+
<div class="content-wrapper">
135+
<section class="content-header">
136+
@yield('content-header')
137+
</section>
138+
<section class="content">
139+
<div class="row">
140+
<div class="col-xs-12">
141+
@if (count($errors) > 0)
142+
<div class="alert alert-danger">
143+
There was an error validating the data provided.<br><br>
144+
<ul>
145+
@foreach ($errors->all() as $error)
146+
<li>{{ $error }}</li>
147+
@endforeach
148+
</ul>
149+
</div>
150+
@endif
151+
@foreach (Alert::getMessages() as $type => $messages)
152+
@foreach ($messages as $message)
153+
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
154+
{!! $message !!}
155+
</div>
156+
@endforeach
157+
@endforeach
158+
</div>
159+
</div>
160+
@yield('content')
161+
</section>
162+
</div>
163+
<footer class="main-footer">
164+
<div class="pull-right small text-gray" style="margin-right:10px;margin-top:-7px;">
165+
<strong><i class="fa fa-fw {{ $appIsGit ? 'fa-git-square' : 'fa-code-fork' }}"></i></strong> {{ $appVersion }}<br />
166+
<strong><i class="fa fa-fw fa-clock-o"></i></strong> {{ round(microtime(true) - LARAVEL_START, 3) }}s
167+
</div>
168+
Copyright &copy; 2015 - {{ date('Y') }} <a href="https://pterodactyl.io/">Pterodactyl Software</a>.
169+
</footer>
170+
</div>
171+
@section('footer-scripts')
172+
<script src="/js/keyboard.polyfill.js" type="application/javascript"></script>
173+
<script>keyboardeventKeyPolyfill.polyfill();</script>
174+
175+
{!! Theme::js('vendor/jquery/jquery.min.js?t={cache-version}') !!}
176+
{!! Theme::js('vendor/sweetalert/sweetalert.min.js?t={cache-version}') !!}
177+
{!! Theme::js('vendor/bootstrap/bootstrap.min.js?t={cache-version}') !!}
178+
{!! Theme::js('vendor/slimscroll/jquery.slimscroll.min.js?t={cache-version}') !!}
179+
{!! Theme::js('vendor/adminlte/app.min.js?t={cache-version}') !!}
180+
{!! Theme::js('vendor/bootstrap-notify/bootstrap-notify.min.js?t={cache-version}') !!}
181+
{!! Theme::js('vendor/select2/select2.full.min.js?t={cache-version}') !!}
182+
{!! Theme::js('js/admin/functions.js?t={cache-version}') !!}
183+
<script src="/js/autocomplete.js" type="application/javascript"></script>
184+
185+
@if(Auth::user()->root_admin)
186+
<script>
187+
$('#logoutButton').on('click', function (event) {
188+
event.preventDefault();
189+
var that = this;
190+
swal({
191+
title: 'Do you want to log out?',
192+
type: 'warning',
193+
showCancelButton: true,
194+
confirmButtonColor: '#d9534f',
195+
cancelButtonColor: '#d33',
196+
confirmButtonText: 'Log out'
197+
}, function () {
198+
window.location = $(that).attr('href');
199+
});
200+
});
201+
</script>
202+
@endif
203+
204+
<script>
205+
$(function () {
206+
$('[data-toggle="tooltip"]').tooltip();
207+
})
208+
</script>
209+
@show
210+
</body>
211+
</html>

0 commit comments

Comments
 (0)