2017-09-26 02:43:01 +00:00
|
|
|
{{-- Pterodactyl - Panel --}}
|
2017-03-16 22:09:02 +00:00
|
|
|
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
|
|
|
|
|
2017-09-26 02:43:01 +00:00
|
|
|
{{-- This software is licensed under the terms of the MIT license. --}}
|
|
|
|
{{-- https://opensource.org/licenses/MIT --}}
|
2017-03-16 22:09:02 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
Locations → View → {{ $location->short }}
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>{{ $location->short }}<small>{{ str_limit($location->long, 75) }}</small></h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
|
|
|
<li><a href="{{ route('admin.locations') }}">Locations</a></li>
|
|
|
|
<li class="active">{{ $location->short }}</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Location Details</h3>
|
|
|
|
</div>
|
|
|
|
<form action="{{ route('admin.locations.view', $location->id) }}" method="POST">
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="pShort" class="form-label">Short Code</label>
|
|
|
|
<input type="text" id="pShort" name="short" class="form-control" value="{{ $location->short }}" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="pLong" class="form-label">Description</label>
|
|
|
|
<textarea id="pLong" name="long" class="form-control" rows="4">{{ $location->long }}</textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
{!! csrf_field() !!}
|
2017-06-25 00:49:09 +00:00
|
|
|
{!! method_field('PATCH') !!}
|
2017-03-16 22:09:02 +00:00
|
|
|
<button name="action" value="delete" class="btn btn-sm btn-danger pull-left muted muted-hover"><i class="fa fa-trash-o"></i></button>
|
|
|
|
<button name="action" value="edit" class="btn btn-sm btn-primary pull-right">Save</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Nodes</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>FQDN</th>
|
|
|
|
<th>Servers</th>
|
|
|
|
</tr>
|
|
|
|
@foreach($location->nodes as $node)
|
|
|
|
<tr>
|
|
|
|
<td><code>{{ $node->id }}</code></td>
|
|
|
|
<td><a href="{{ route('admin.nodes.view', $node->id) }}">{{ $node->name }}</a></td>
|
|
|
|
<td><code>{{ $node->fqdn }}</code></td>
|
|
|
|
<td>{{ $node->servers->count() }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|