Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/views/admin/nests/view.blade.php
7460 views
1
@extends('layouts.admin')
2
3
@section('title')
4
Nests → {{ $nest->name }}
5
@endsection
6
7
@section('content-header')
8
<h1>{{ $nest->name }}<small>{{ str_limit($nest->description, 50) }}</small></h1>
9
<ol class="breadcrumb">
10
<li><a href="{{ route('admin.index') }}">Admin</a></li>
11
<li><a href="{{ route('admin.nests') }}">Nests</a></li>
12
<li class="active">{{ $nest->name }}</li>
13
</ol>
14
@endsection
15
16
@section('content')
17
<div class="row">
18
<form action="{{ route('admin.nests.view', $nest->id) }}" method="POST">
19
<div class="col-md-6">
20
<div class="box">
21
<div class="box-body">
22
<div class="form-group">
23
<label class="control-label">Name <span class="field-required"></span></label>
24
<div>
25
<input type="text" name="name" class="form-control" value="{{ $nest->name }}" />
26
<p class="text-muted"><small>This should be a descriptive category name that encompasses all of the options within the service.</small></p>
27
</div>
28
</div>
29
<div class="form-group">
30
<label class="control-label">Description</label>
31
<div>
32
<textarea name="description" class="form-control" rows="7">{{ $nest->description }}</textarea>
33
</div>
34
</div>
35
</div>
36
<div class="box-footer">
37
{!! csrf_field() !!}
38
<button type="submit" name="_method" value="PATCH" class="btn btn-primary btn-sm pull-right">Save</button>
39
<button id="deleteButton" type="submit" name="_method" value="DELETE" class="btn btn-sm btn-danger muted muted-hover"><i class="fa fa-trash-o"></i></button>
40
</div>
41
</div>
42
</div>
43
</form>
44
<div class="col-md-6">
45
<div class="box">
46
<div class="box-body">
47
<div class="form-group">
48
<label class="control-label">Nest ID</label>
49
<div>
50
<input type="text" readonly class="form-control" value="{{ $nest->id }}" />
51
<p class="text-muted small">A unique ID used for identification of this nest internally and through the API.</p>
52
</div>
53
</div>
54
<div class="form-group">
55
<label class="control-label">Author</label>
56
<div>
57
<input type="text" readonly class="form-control" value="{{ $nest->author }}" />
58
<p class="text-muted small">The author of this service option. Please direct questions and issues to them unless this is an official option authored by <code>[email protected]</code>.</p>
59
</div>
60
</div>
61
<div class="form-group">
62
<label class="control-label">UUID</label>
63
<div>
64
<input type="text" readonly class="form-control" value="{{ $nest->uuid }}" />
65
<p class="text-muted small">A UUID that all servers using this option are assigned for identification purposes.</p>
66
</div>
67
</div>
68
</div>
69
</div>
70
</div>
71
</div>
72
<div class="row">
73
<div class="col-xs-12">
74
<div class="box box-primary">
75
<div class="box-header with-border">
76
<h3 class="box-title">Nest Eggs</h3>
77
</div>
78
<div class="box-body table-responsive no-padding">
79
<table class="table table-hover">
80
<tr>
81
<th>ID</th>
82
<th>Name</th>
83
<th>Description</th>
84
<th class="text-center">Servers</th>
85
<th class="text-center"></th>
86
</tr>
87
@foreach($nest->eggs as $egg)
88
<tr>
89
<td class="align-middle"><code>{{ $egg->id }}</code></td>
90
<td class="align-middle"><a href="{{ route('admin.nests.egg.view', $egg->id) }}" data-toggle="tooltip" data-placement="right" title="{{ $egg->author }}">{{ $egg->name }}</a></td>
91
<td class="col-xs-8 align-middle">{{ $egg->description }}</td>
92
<td class="text-center align-middle"><code>{{ $egg->servers->count() }}</code></td>
93
<td class="align-middle">
94
<a href="{{ route('admin.nests.egg.export', ['egg' => $egg->id]) }}"><i class="fa fa-download"></i></a>
95
</td>
96
</tr>
97
@endforeach
98
</table>
99
</div>
100
<div class="box-footer">
101
<a href="{{ route('admin.nests.egg.new') }}"><button class="btn btn-success btn-sm pull-right">New Egg</button></a>
102
</div>
103
</div>
104
</div>
105
</div>
106
@endsection
107
108
@section('footer-scripts')
109
@parent
110
<script>
111
$('#deleteButton').on('mouseenter', function (event) {
112
$(this).find('i').html(' Delete Nest');
113
}).on('mouseleave', function (event) {
114
$(this).find('i').html('');
115
});
116
</script>
117
@endsection
118
119