2021-05-13 12:40:21 +00:00
|
|
|
@extends('layouts.app')
|
2021-06-14 11:33:18 +00:00
|
|
|
@section('htmlheader_title')
|
|
|
|
FTN Domains
|
|
|
|
@endsection
|
2021-05-13 12:40:21 +00:00
|
|
|
|
2021-06-14 05:46:18 +00:00
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
2021-06-17 14:08:30 +00:00
|
|
|
<h2>About FTN Domains</h2>
|
2021-06-20 13:03:20 +00:00
|
|
|
<p>In FTN network addresses, a domain is the 5th dimension and used when a system supports 5D addressing, ie: zone:net/node.point@<strong class="highlight">domain</strong>.</p>
|
2021-06-14 05:46:18 +00:00
|
|
|
<p>Domains are used with zones to uniquely identify a FTN network.</p>
|
|
|
|
<p><small>Some legacy Fidonet software is not 5D aware and may behave unexpectedly when a domain is used</small></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-05-13 12:40:21 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-6">
|
2021-06-14 05:46:18 +00:00
|
|
|
<p>This system is aware of the following domains:</p>
|
|
|
|
|
|
|
|
@if (\App\Models\Domain::count() == 0)
|
2021-06-17 14:08:30 +00:00
|
|
|
@can('admin',(new \App\Models\Domain))
|
|
|
|
<p>There are no domains setup, to <a href="{{ url('ftn/domain/addedit') }}">set up your first</a>.</p>
|
|
|
|
@else
|
|
|
|
<p class="pad">There are no domains - you need to ask an admin to create one for you.</p>
|
|
|
|
@endcan
|
2021-06-14 05:46:18 +00:00
|
|
|
@else
|
|
|
|
<table class="table monotable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Domain</th>
|
2021-06-17 14:08:30 +00:00
|
|
|
<th>Active</th>
|
2021-06-14 05:46:18 +00:00
|
|
|
<th>DNS domain</th>
|
|
|
|
<th>Zones</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2021-05-13 12:40:21 +00:00
|
|
|
|
2021-06-14 05:46:18 +00:00
|
|
|
<tbody>
|
2021-06-18 13:01:41 +00:00
|
|
|
@can('admin',(new \App\Models\Domain))
|
2021-06-14 05:46:18 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan="5"><a href="{{ url('ftn/domain/addedit') }}">Add New Domain</a></td>
|
|
|
|
</tr>
|
2021-06-17 14:08:30 +00:00
|
|
|
@endcan
|
2021-06-25 13:38:57 +00:00
|
|
|
@foreach (\App\Models\Domain::orderBy('name')->with(['zones'])->get() as $oo)
|
2021-05-13 12:40:21 +00:00
|
|
|
<tr>
|
|
|
|
<td><a href="{{ url('ftn/domain/addedit',[$oo->id]) }}">{{ $oo->id }}</a></td>
|
|
|
|
<td>{{ $oo->name }}</td>
|
2021-06-17 14:08:30 +00:00
|
|
|
<td>{{ $oo->active ? 'YES' : 'NO' }}</td>
|
2021-05-13 12:40:21 +00:00
|
|
|
<td>{{ $oo->dnsdomain }}</td>
|
2021-06-26 00:34:49 +00:00
|
|
|
<td>{{ join(', ',$oo->zones->pluck('zone_id')->sort()->toArray()) }}</td>
|
2021-05-13 12:40:21 +00:00
|
|
|
</tr>
|
2021-06-14 05:46:18 +00:00
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
@endif
|
2021-05-13 12:40:21 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('page-scripts')
|
|
|
|
<script type="text/javascript">
|
|
|
|
$('table tr').click(function() {
|
2021-06-14 05:46:18 +00:00
|
|
|
var href = $(this).find('a').attr('href');
|
|
|
|
|
|
|
|
if (href)
|
2021-05-13 12:40:21 +00:00
|
|
|
window.location = href;
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@append
|