2016-01-11 00:22:21 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
Location List
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="col-md-12">
|
|
|
|
<ul class="breadcrumb">
|
2016-01-13 04:49:56 +00:00
|
|
|
<li><a href="/admin">Admin Control</a></li>
|
|
|
|
<li class="active">Locations</li>
|
|
|
|
</ul>
|
2016-01-11 00:22:21 +00:00
|
|
|
<h3>All Locations</h3><hr />
|
2016-01-13 04:49:56 +00:00
|
|
|
<table class="table table-bordered table-hover table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Location</th>
|
2016-01-11 00:22:21 +00:00
|
|
|
<th>Description</th>
|
2016-01-13 04:49:56 +00:00
|
|
|
<th class="text-center">Nodes</th>
|
2016-01-11 00:22:21 +00:00
|
|
|
<th class="text-center">Servers</th>
|
2016-01-13 04:49:56 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach ($locations as $location)
|
|
|
|
<tr>
|
|
|
|
<td><a href="#/edit/{{ $location->id }}" data-action="edit" data-location="{{ $location->id }}"><code>{{ $location->short }}</code></td>
|
2016-01-11 00:22:21 +00:00
|
|
|
<td>{{ $location->long }}</td>
|
|
|
|
<td class="text-center">{{ $location->a_nodeCount }}</td>
|
|
|
|
<td class="text-center">{{ $location->a_serverCount }}</td>
|
2016-01-13 04:49:56 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-01-11 00:22:21 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 text-center">{!! $locations->render() !!}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
2016-01-13 04:49:56 +00:00
|
|
|
$('#sidebar_links').find("a[href='/admin/locations']").addClass('active');
|
2016-01-11 00:22:21 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endsection
|