misc_pterodactyl-panel/resources/views/admin/servers/partials/navigation.blade.php
2019-12-16 21:14:27 -08:00

37 lines
2.1 KiB
PHP

@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->installed === 1)
<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>
@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>