misc_pterodactyl-panel/resources/views/admin/servers/partials/navigation.blade.php

41 lines
2.3 KiB
PHP
Raw Permalink Normal View History

2019-12-17 05:14:27 +00:00
@php
/** @var \Pterodactyl\Models\Server $server */
$router = app('router');
@endphp
<div class="row">
<div class="col-xs-12">
<div class="nav-tabs-custom nav-tabs-floating">
<ul class="nav nav-tabs">
<li class="{{ $router->currentRouteNamed('admin.servers.view') ? 'active' : '' }}">
<a href="{{ route('admin.servers.view', $server->id) }}">About</a></li>
@if($server->isInstalled())
2019-12-17 05:14:27 +00:00
<li class="{{ $router->currentRouteNamed('admin.servers.view.details') ? 'active' : '' }}">
<a href="{{ route('admin.servers.view.details', $server->id) }}">Details</a>
</li>
<li class="{{ $router->currentRouteNamed('admin.servers.view.build') ? 'active' : '' }}">
<a href="{{ route('admin.servers.view.build', $server->id) }}">Build Configuration</a>
</li>
<li class="{{ $router->currentRouteNamed('admin.servers.view.startup') ? 'active' : '' }}">
<a href="{{ route('admin.servers.view.startup', $server->id) }}">Startup</a>
</li>
<li class="{{ $router->currentRouteNamed('admin.servers.view.database') ? 'active' : '' }}">
<a href="{{ route('admin.servers.view.database', $server->id) }}">Database</a>
</li>
2020-05-21 19:19:59 +00:00
<li class="{{ $router->currentRouteNamed('admin.servers.view.mounts') ? 'active' : '' }}">
<a href="{{ route('admin.servers.view.mounts', $server->id) }}">Mounts</a>
</li>
2019-12-17 05:14:27 +00:00
@endif
<li class="{{ $router->currentRouteNamed('admin.servers.view.manage') ? 'active' : '' }}">
<a href="{{ route('admin.servers.view.manage', $server->id) }}">Manage</a>
</li>
<li class="tab-danger {{ $router->currentRouteNamed('admin.servers.view.delete') ? 'active' : '' }}">
<a href="{{ route('admin.servers.view.delete', $server->id) }}">Delete</a>
</li>
<li class="tab-success">
<a href="/server/{{ $server->uuidShort }}" target="_blank"><i class="fa fa-external-link"></i></a>
</li>
</ul>
</div>
</div>
</div>