Update resources/views/layouts/admin.blade.php

This commit is contained in:
denis 2024-11-03 04:25:19 -05:00
parent 3f540e3d21
commit e17d6ce67e

View file

@ -1,223 +1,223 @@
@include("blueprint.admin.admin") @include("blueprint.admin.admin")
@yield('blueprint.lib') @yield('blueprint.lib')
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ config('app.name', 'Pterodactyl') }} - @yield('title')</title> <title>{{ config('app.name', 'Pterodactyl') }} - @yield('title')</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta name="_token" content="{{ csrf_token() }}"> <meta name="_token" content="{{ csrf_token() }}">
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png"> <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-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/favicons/manifest.json"> <link rel="manifest" href="/favicons/manifest.json">
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#bc6e3c"> <link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#bc6e3c">
<link rel="shortcut icon" href="/favicons/favicon.ico"> <link rel="shortcut icon" href="/favicons/favicon.ico">
<meta name="msapplication-config" content="/favicons/browserconfig.xml"> <meta name="msapplication-config" content="/favicons/browserconfig.xml">
<meta name="theme-color" content="#0e4688"> <meta name="theme-color" content="#0e4688">
@include('layouts.scripts') @include('layouts.scripts')
@section('scripts') @section('scripts')
{!! Theme::css('vendor/select2/select2.min.css?t={cache-version}') !!} {!! Theme::css('vendor/select2/select2.min.css?t={cache-version}') !!}
{!! Theme::css('vendor/bootstrap/bootstrap.min.css?t={cache-version}') !!} {!! Theme::css('vendor/bootstrap/bootstrap.min.css?t={cache-version}') !!}
{!! Theme::css('vendor/adminlte/admin.min.css?t={cache-version}') !!} {!! Theme::css('vendor/adminlte/admin.min.css?t={cache-version}') !!}
{!! Theme::css('vendor/adminlte/colors/skin-blue.min.css?t={cache-version}') !!} {!! Theme::css('vendor/adminlte/colors/skin-blue.min.css?t={cache-version}') !!}
{!! Theme::css('vendor/sweetalert/sweetalert.min.css?t={cache-version}') !!} {!! Theme::css('vendor/sweetalert/sweetalert.min.css?t={cache-version}') !!}
{!! Theme::css('vendor/animate/animate.min.css?t={cache-version}') !!} {!! Theme::css('vendor/animate/animate.min.css?t={cache-version}') !!}
{!! Theme::css('css/pterodactyl.css?t={cache-version}') !!} {!! Theme::css('css/pterodactyl.css?t={cache-version}') !!}
<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/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"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <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> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]--> <![endif]-->
@show @show
@yield("blueprint.import") @yield("blueprint.import")
</head> </head>
<body class="hold-transition skin-blue fixed sidebar-mini"> <body class="hold-transition skin-blue fixed sidebar-mini">
@yield('blueprint.cache') @yield('blueprint.cache')
<div class="wrapper"> <div class="wrapper">
<header class="main-header"> <header class="main-header">
<a href="{{ route('index') }}" class="logo"> <a href="{{ route('index') }}" class="logo">
<span>{{ config('app.name', 'Pterodactyl') }}</span> <span>{{ config('app.name', 'Pelican') }}</span>
</a> </a>
<nav class="navbar navbar-static-top"> <nav class="navbar navbar-static-top">
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"> <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</a> </a>
<div class="navbar-custom-menu"> <div class="navbar-custom-menu">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li class="user-menu"> <li class="user-menu">
<a href="{{ route('account') }}"> <a href="{{ route('account') }}">
<img src="https://www.gravatar.com/avatar/{{ md5(strtolower(Auth::user()->email)) }}?s=160" class="user-image" alt="User Image"> <img src="https://www.gravatar.com/avatar/{{ md5(strtolower(Auth::user()->email)) }}?s=160" class="user-image" alt="User Image">
<span class="hidden-xs">{{ Auth::user()->name_first }} {{ Auth::user()->name_last }}</span> <span class="hidden-xs">{{ Auth::user()->name_first }} {{ Auth::user()->name_last }}</span>
</a> </a>
</li> </li>
@yield("blueprint.navigation") @yield("blueprint.navigation")
<li> <li>
<li><a href="{{ route('index') }}" data-toggle="tooltip" data-placement="bottom" title="Exit Admin Control"><i class="fa fa-server"></i></a></li> <li><a href="{{ route('index') }}" data-toggle="tooltip" data-placement="bottom" title="Exit Admin Control"><i class="fa fa-server"></i></a></li>
</li> </li>
<li> <li>
<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> <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>
</li> </li>
</ul> </ul>
</div> </div>
</nav> </nav>
</header> </header>
<aside class="main-sidebar"> <aside class="main-sidebar">
<section class="sidebar"> <section class="sidebar">
<ul class="sidebar-menu"> <ul class="sidebar-menu">
<li class="header">BASIC ADMINISTRATION</li> <li class="header">BASIC ADMINISTRATION</li>
<li class="{{ Route::currentRouteName() !== 'admin.index' ?: 'active' }}"> <li class="{{ Route::currentRouteName() !== 'admin.index' ?: 'active' }}">
<a href="{{ route('admin.index') }}"> <a href="{{ route('admin.index') }}">
<i class="fa fa-home"></i> <span>Overview</span> <i class="fa fa-home"></i> <span>Overview</span>
</a> </a>
</li> </li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.settings') ?: 'active' }}"> <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.settings') ?: 'active' }}">
<a href="{{ route('admin.settings')}}"> <a href="{{ route('admin.settings')}}">
<i class="fa fa-wrench"></i> <span>Settings</span> <i class="fa fa-wrench"></i> <span>Settings</span>
</a> </a>
</li> </li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.api') ?: 'active' }}"> <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.api') ?: 'active' }}">
<a href="{{ route('admin.api.index')}}"> <a href="{{ route('admin.api.index')}}">
<i class="fa fa-gamepad"></i> <span>Application API</span> <i class="fa fa-gamepad"></i> <span>Application API</span>
</a> </a>
</li> </li>
<li class="header">MANAGEMENT</li> <li class="header">MANAGEMENT</li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.databases') ?: 'active' }}"> <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.databases') ?: 'active' }}">
<a href="{{ route('admin.databases') }}"> <a href="{{ route('admin.databases') }}">
<i class="fa fa-database"></i> <span>Databases</span> <i class="fa fa-database"></i> <span>Databases</span>
</a> </a>
</li> </li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.locations') ?: 'active' }}"> <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.locations') ?: 'active' }}">
<a href="{{ route('admin.locations') }}"> <a href="{{ route('admin.locations') }}">
<i class="fa fa-globe"></i> <span>Locations</span> <i class="fa fa-globe"></i> <span>Locations</span>
</a> </a>
</li> </li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.nodes') ?: 'active' }}"> <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.nodes') ?: 'active' }}">
<a href="{{ route('admin.nodes') }}"> <a href="{{ route('admin.nodes') }}">
<i class="fa fa-sitemap"></i> <span>Nodes</span> <i class="fa fa-sitemap"></i> <span>Nodes</span>
</a> </a>
</li> </li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.servers') ?: 'active' }}"> <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.servers') ?: 'active' }}">
<a href="{{ route('admin.servers') }}"> <a href="{{ route('admin.servers') }}">
<i class="fa fa-server"></i> <span>Servers</span> <i class="fa fa-server"></i> <span>Servers</span>
</a> </a>
</li> </li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.users') ?: 'active' }}"> <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.users') ?: 'active' }}">
<a href="{{ route('admin.users') }}"> <a href="{{ route('admin.users') }}">
<i class="fa fa-users"></i> <span>Users</span> <i class="fa fa-users"></i> <span>Users</span>
</a> </a>
</li> </li>
<li class="header">SERVICE MANAGEMENT</li> <li class="header">SERVICE MANAGEMENT</li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.mounts') ?: 'active' }}"> <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.mounts') ?: 'active' }}">
<a href="{{ route('admin.mounts') }}"> <a href="{{ route('admin.mounts') }}">
<i class="fa fa-magic"></i> <span>Mounts</span> <i class="fa fa-magic"></i> <span>Mounts</span>
</a> </a>
</li> </li>
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.nests') ?: 'active' }}"> <li class="{{ ! starts_with(Route::currentRouteName(), 'admin.nests') ?: 'active' }}">
<a href="{{ route('admin.nests') }}"> <a href="{{ route('admin.nests') }}">
<i class="fa fa-th-large"></i> <span>Nests</span> <i class="fa fa-th-large"></i> <span>Nests</span>
</a> </a>
</li> </li>
</ul> </ul>
</section> </section>
</aside> </aside>
<div class="content-wrapper"> <div class="content-wrapper">
<section class="content-header"> <section class="content-header">
@yield('content-header') @yield('content-header')
</section> </section>
<section class="content"> <section class="content">
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
@if (count($errors) > 0) @if (count($errors) > 0)
<div class="alert alert-danger"> <div class="alert alert-danger">
There was an error validating the data provided.<br><br> There was an error validating the data provided.<br><br>
<ul> <ul>
@foreach ($errors->all() as $error) @foreach ($errors->all() as $error)
<li>{{ $error }}</li> <li>{{ $error }}</li>
@endforeach @endforeach
</ul> </ul>
</div> </div>
@endif @endif
@foreach (Alert::getMessages() as $type => $messages) @foreach (Alert::getMessages() as $type => $messages)
@foreach ($messages as $message) @foreach ($messages as $message)
<div class="alert alert-{{ $type }} alert-dismissable" role="alert"> <div class="alert alert-{{ $type }} alert-dismissable" role="alert">
{!! $message !!} {!! $message !!}
</div> </div>
@endforeach @endforeach
@endforeach @endforeach
</div> </div>
</div> </div>
@yield('content') @yield('content')
</section> </section>
</div> </div>
<footer class="main-footer"> <footer class="main-footer">
<div class="pull-right small text-gray" style="margin-right:10px;margin-top:-7px;"> <div class="pull-right small text-gray" style="margin-right:10px;margin-top:-7px;">
<strong><i class="fa fa-fw {{ $appIsGit ? 'fa-git-square' : 'fa-code-fork' }}"></i></strong> {{ $appVersion }}<br /> <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 <strong><i class="fa fa-fw fa-clock-o"></i></strong> {{ round(microtime(true) - LARAVEL_START, 3) }}s
</div> </div>
Copyright &copy; 2015 - {{ date('Y') }} <a href="https://pterodactyl.io/">Pterodactyl Software</a>. Copyright &copy; 2024 - {{ date('Y') }} <a href="https://pelican.io/">Pelican Panel</a>.
</footer> </footer>
</div> </div>
@section('footer-scripts') @section('footer-scripts')
<script src="/js/keyboard.polyfill.js" type="application/javascript"></script> <script src="/js/keyboard.polyfill.js" type="application/javascript"></script>
<script>keyboardeventKeyPolyfill.polyfill();</script> <script>keyboardeventKeyPolyfill.polyfill();</script>
{!! Theme::js('vendor/jquery/jquery.min.js?t={cache-version}') !!} {!! Theme::js('vendor/jquery/jquery.min.js?t={cache-version}') !!}
{!! Theme::js('vendor/sweetalert/sweetalert.min.js?t={cache-version}') !!} {!! Theme::js('vendor/sweetalert/sweetalert.min.js?t={cache-version}') !!}
{!! Theme::js('vendor/bootstrap/bootstrap.min.js?t={cache-version}') !!} {!! Theme::js('vendor/bootstrap/bootstrap.min.js?t={cache-version}') !!}
{!! Theme::js('vendor/slimscroll/jquery.slimscroll.min.js?t={cache-version}') !!} {!! Theme::js('vendor/slimscroll/jquery.slimscroll.min.js?t={cache-version}') !!}
{!! Theme::js('vendor/adminlte/app.min.js?t={cache-version}') !!} {!! Theme::js('vendor/adminlte/app.min.js?t={cache-version}') !!}
{!! Theme::js('vendor/bootstrap-notify/bootstrap-notify.min.js?t={cache-version}') !!} {!! Theme::js('vendor/bootstrap-notify/bootstrap-notify.min.js?t={cache-version}') !!}
{!! Theme::js('vendor/select2/select2.full.min.js?t={cache-version}') !!} {!! Theme::js('vendor/select2/select2.full.min.js?t={cache-version}') !!}
{!! Theme::js('js/admin/functions.js?t={cache-version}') !!} {!! Theme::js('js/admin/functions.js?t={cache-version}') !!}
<script src="/js/autocomplete.js" type="application/javascript"></script> <script src="/js/autocomplete.js" type="application/javascript"></script>
@if(Auth::user()->root_admin) @if(Auth::user()->root_admin)
<script> <script>
$('#logoutButton').on('click', function (event) { $('#logoutButton').on('click', function (event) {
event.preventDefault(); event.preventDefault();
var that = this; var that = this;
swal({ swal({
title: 'Do you want to log out?', title: 'Do you want to log out?',
type: 'warning', type: 'warning',
showCancelButton: true, showCancelButton: true,
confirmButtonColor: '#d9534f', confirmButtonColor: '#d9534f',
cancelButtonColor: '#d33', cancelButtonColor: '#d33',
confirmButtonText: 'Log out' confirmButtonText: 'Log out'
}, function () { }, function () {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '{{ route('auth.logout') }}', url: '{{ route('auth.logout') }}',
data: { data: {
_token: '{{ csrf_token() }}' _token: '{{ csrf_token() }}'
},complete: function () { },complete: function () {
window.location.href = '{{route('auth.login')}}'; window.location.href = '{{route('auth.login')}}';
} }
}); });
}); });
}); });
</script> </script>
@endif @endif
<script> <script>
$(function () { $(function () {
$('[data-toggle="tooltip"]').tooltip(); $('[data-toggle="tooltip"]').tooltip();
}) })
</script> </script>
@show @show
@yield('blueprint.notifications') @yield('blueprint.notifications')
@yield('blueprint.wrappers') @yield('blueprint.wrappers')
</body> </body>
</html> </html>