misc_pterodactyl-panel/resources/views/admin/servers/view/mounts.blade.php

71 lines
2.9 KiB
PHP
Raw Normal View History

2020-05-21 19:19:59 +00:00
@extends('layouts.admin')
@section('title')
Server {{ $server->name }}: Mounts
@endsection
@section('content-header')
<h1>{{ $server->name }}<small>Manage server mounts.</small></h1>
<ol class="breadcrumb">
<li><a href="{{ route('admin.index') }}">Admin</a></li>
<li><a href="{{ route('admin.servers') }}">Servers</a></li>
<li><a href="{{ route('admin.servers.view', $server->id) }}">{{ $server->name }}</a></li>
<li class="active">Mounts</li>
</ol>
@endsection
@section('content')
@include('admin.servers.partials.navigation')
<div class="row">
<div class="col-sm-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Available Mounts</h3>
</div>
<div class="box-body table-responsible no-padding">
<table class="table table-hover">
<tr>
<th>ID</th>
<th>Name</th>
<th>Source</th>
<th>Target</th>
<th>Status</th>
<th></th>
</tr>
@foreach ($mounts as $mount)
<tr>
<td class="col-sm-1 middle"><code>{{ $mount->id }}</code></td>
<td class="middle"><a href="{{ route('admin.mounts.view', $mount->id) }}">{{ $mount->name }}</a></td>
<td class="middle"><code>{{ $mount->source }}</code></td>
<td class="col-sm-2 middle"><code>{{ $mount->target }}</code></td>
<td class="col-sm-2 middle">
@if ($mount->id == 2)
<span class="label label-primary">Unmounted</span>
@else
<span class="label label-success">Mounted</span>
@endif
</td>
<td class="col-sm-1 middle">
@if ($mount->id == 2)
<button data-action="mount" data-id="{{ $mount->id }}" class="btn btn-xs btn-success"><i class="fa fa-plus"></i></button>
@else
<button data-action="unmount" data-id="{{ $mount->id }}" class="btn btn-xs btn-danger"><i class="fa fa-times"></i></button>
@endif
</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
</div>
@endsection
@section('footer-scripts')
@parent
@endsection