Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/views/admin/locations/view.blade.php
7461 views
1
@extends('layouts.admin')
2
3
@section('title')
4
Locations → View → {{ $location->short }}
5
@endsection
6
7
@section('content-header')
8
<h1>{{ $location->short }}<small>{{ str_limit($location->long, 75) }}</small></h1>
9
<ol class="breadcrumb">
10
<li><a href="{{ route('admin.index') }}">Admin</a></li>
11
<li><a href="{{ route('admin.locations') }}">Locations</a></li>
12
<li class="active">{{ $location->short }}</li>
13
</ol>
14
@endsection
15
16
@section('content')
17
<div class="row">
18
<div class="col-sm-6">
19
<div class="box box-primary">
20
<div class="box-header with-border">
21
<h3 class="box-title">Location Details</h3>
22
</div>
23
<form action="{{ route('admin.locations.view', $location->id) }}" method="POST">
24
<div class="box-body">
25
<div class="form-group">
26
<label for="pShort" class="form-label">Short Code</label>
27
<input type="text" id="pShort" name="short" class="form-control" value="{{ $location->short }}" />
28
</div>
29
<div class="form-group">
30
<label for="pLong" class="form-label">Description</label>
31
<textarea id="pLong" name="long" class="form-control" rows="4">{{ $location->long }}</textarea>
32
</div>
33
</div>
34
<div class="box-footer">
35
{!! csrf_field() !!}
36
{!! method_field('PATCH') !!}
37
<button name="action" value="edit" class="btn btn-sm btn-primary pull-right">Save</button>
38
<button name="action" value="delete" class="btn btn-sm btn-danger pull-left muted muted-hover"><i class="fa fa-trash-o"></i></button>
39
</div>
40
</form>
41
</div>
42
</div>
43
<div class="col-sm-6">
44
<div class="box">
45
<div class="box-header with-border">
46
<h3 class="box-title">Nodes</h3>
47
</div>
48
<div class="box-body table-responsive no-padding">
49
<table class="table table-hover">
50
<tr>
51
<th>ID</th>
52
<th>Name</th>
53
<th>FQDN</th>
54
<th>Servers</th>
55
</tr>
56
@foreach($location->nodes as $node)
57
<tr>
58
<td><code>{{ $node->id }}</code></td>
59
<td><a href="{{ route('admin.nodes.view', $node->id) }}">{{ $node->name }}</a></td>
60
<td><code>{{ $node->fqdn }}</code></td>
61
<td>{{ $node->servers->count() }}</td>
62
</tr>
63
@endforeach
64
</table>
65
</div>
66
</div>
67
</div>
68
</div>
69
@endsection
70
71