2021-06-15 12:19:14 +00:00
|
|
|
@extends('layouts.app')
|
|
|
|
@section('htmlheader_title')
|
|
|
|
{{ $o->name }}
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
2021-06-24 10:16:37 +00:00
|
|
|
<h1>{{ $o->name }} <small class="float-end pt-4">Last Update: {{ $o->updated_at->format('Y-m-d H:i') }}</small></h1>
|
|
|
|
|
|
|
|
<p class="float-end"><small>Expand each heading for information about this FTN network</small></p>
|
2021-06-19 01:59:01 +00:00
|
|
|
|
2021-06-20 13:03:20 +00:00
|
|
|
<div class="accordion" id="accordion_homepage">
|
2021-06-19 04:40:55 +00:00
|
|
|
<!-- About -->
|
2021-06-19 01:59:01 +00:00
|
|
|
<div class="accordion-item">
|
|
|
|
<h3 class="accordion-header" id="about" data-bs-toggle="collapse" data-bs-target="#collapse_about" aria-expanded="true" aria-controls="collapse_about">About</h3>
|
|
|
|
|
|
|
|
<div id="collapse_about" class="accordion-collapse collapse show" aria-labelledby="about" data-bs-parent="#accordion_homepage">
|
|
|
|
<div class="accordion-body">
|
|
|
|
{!! \Illuminate\Mail\Markdown::parse($o->homepage) !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-06-19 04:40:55 +00:00
|
|
|
<!-- Echomail -->
|
2021-06-20 13:03:20 +00:00
|
|
|
<div class="accordion-item open">
|
|
|
|
<h3 class="accordion-header" id="echoareas" data-bs-toggle="collapse" data-bs-target="#collapse_echoareas" aria-expanded="false" aria-controls="collapse_echoareas">Echo Areas</h3>
|
2021-06-19 01:59:01 +00:00
|
|
|
|
|
|
|
<div id="collapse_echoareas" class="accordion-collapse collapse" aria-labelledby="echoareas" data-bs-parent="#accordion_homepage">
|
|
|
|
<div class="accordion-body">
|
2021-08-11 13:45:30 +00:00
|
|
|
@if($o->echoareas->count())
|
|
|
|
<p>This network provides the following Echomail areas:</p>
|
2021-08-14 01:11:20 +00:00
|
|
|
<table class="table monotable w-100" id="echoarea">
|
2021-08-11 13:45:30 +00:00
|
|
|
<thead>
|
2021-08-11 14:15:58 +00:00
|
|
|
<tr>
|
2021-08-14 13:39:42 +00:00
|
|
|
<th class="w-75" colspan="3"></th>
|
2021-08-11 14:15:58 +00:00
|
|
|
<th colspan="3" class="text-center">Messages</th>
|
|
|
|
</tr>
|
2021-08-11 13:45:30 +00:00
|
|
|
<tr>
|
|
|
|
<th>Echoarea</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Last Message</th>
|
2021-08-11 14:15:58 +00:00
|
|
|
<th class="text-end">Day</th>
|
|
|
|
<th class="text-end">Week</th>
|
|
|
|
<th class="text-end">Month</th>
|
2021-08-11 13:45:30 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach ($o->echoareas->sortBy('name') as $oo)
|
|
|
|
<tr>
|
2021-08-14 13:39:42 +00:00
|
|
|
<td style="width: 15%;"><a href="{{ url('ftn/echoarea/addedit',[$oo->id]) }}">{{ $oo->name }}</a></td>
|
2021-08-11 13:45:30 +00:00
|
|
|
<td>{{ $oo->description }}</td>
|
2021-08-14 13:39:42 +00:00
|
|
|
<td style="width: 15%;">{{ ($x=$oo->echomail()->orderBy('created_at','DESC')->first()) ? $x->created_at->format('Y-m-d H:i') : '-' }}</td>
|
2021-08-11 14:15:58 +00:00
|
|
|
<td class="text-end">{{ number_format($oo->echomail()->where('created_at','>=',Carbon::now()->subDay())->count()) }}</td>
|
|
|
|
<td class="text-end">{{ number_format($oo->echomail()->where('created_at','>=',Carbon::now()->subWeek())->count()) }}</td>
|
|
|
|
<td class="text-end">{{ number_format($oo->echomail()->where('created_at','>=',Carbon::now()->subMonth())->count()) }}</td>
|
2021-08-11 13:45:30 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-06-19 01:59:01 +00:00
|
|
|
@else
|
|
|
|
This network doesnt have any Echomail areas (yet). Perhaps you would like to create one?
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-06-19 04:40:55 +00:00
|
|
|
<!-- File areas -->
|
2021-06-19 01:59:01 +00:00
|
|
|
<div class="accordion-item">
|
2021-06-20 13:03:20 +00:00
|
|
|
<h3 class="accordion-header" id="fileareas" data-bs-toggle="collapse" data-bs-target="#collapse_fileareas" aria-expanded="false" aria-controls="collapse_fileareas">File Areas</h3>
|
2021-06-19 01:59:01 +00:00
|
|
|
|
|
|
|
<div id="collapse_fileareas" class="accordion-collapse collapse" aria-labelledby="fileareas" data-bs-parent="#accordion_homepage">
|
|
|
|
<div class="accordion-body">
|
2021-08-11 13:45:30 +00:00
|
|
|
@if($o->fileareas->count())
|
|
|
|
<p>This network provides the following File areas:</p>
|
2021-08-14 01:11:20 +00:00
|
|
|
<table class="table monotable" id="filearea">
|
2021-08-11 13:45:30 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Filearea</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Last File Sent</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach ($o->fileareas->sortBy('name') as $oo)
|
|
|
|
<tr>
|
2021-08-14 13:39:42 +00:00
|
|
|
<td style="width: 15%;"><a href="{{ url('ftn/filearea/addedit',[$oo->id]) }}">{{ $oo->name }}</a></td>
|
2021-08-11 13:45:30 +00:00
|
|
|
<td>{{ $oo->description }}</td>
|
2021-08-14 13:39:42 +00:00
|
|
|
<td style="width: 15%;">-</td>
|
2021-08-11 13:45:30 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-06-19 01:59:01 +00:00
|
|
|
@else
|
|
|
|
This network doesnt have any File areas (yet). Perhaps you would like to create one?
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-06-19 04:40:55 +00:00
|
|
|
<!-- Systems -->
|
2021-06-19 01:59:01 +00:00
|
|
|
<div class="accordion-item">
|
2021-06-20 13:03:20 +00:00
|
|
|
<h3 class="accordion-header" id="systems" data-bs-toggle="collapse" data-bs-target="#collapse_systems" aria-expanded="false" aria-controls="collapse_systems">Systems</h3>
|
2021-06-19 01:59:01 +00:00
|
|
|
|
|
|
|
<div id="collapse_systems" class="accordion-collapse collapse" aria-labelledby="systems" data-bs-parent="#accordion_homepage">
|
|
|
|
<div class="accordion-body">
|
|
|
|
<p>The following systems are members of this network.</p>
|
2021-08-14 01:11:20 +00:00
|
|
|
<table class="table monotable" id="system">
|
2021-06-19 01:59:01 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>System</th>
|
|
|
|
<th>Sysop</th>
|
|
|
|
<th>Location</th>
|
|
|
|
<th>Address</th>
|
2021-06-20 13:03:20 +00:00
|
|
|
<th>Last Seen</th>
|
2021-06-19 01:59:01 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
2021-06-25 06:42:12 +00:00
|
|
|
@foreach ($o->zones->sortBy('zone_id') as $oz)
|
2021-07-26 11:21:58 +00:00
|
|
|
@foreach ($oz->addresses as $ao)
|
2021-06-20 13:03:20 +00:00
|
|
|
<tr>
|
2021-08-09 13:35:22 +00:00
|
|
|
<td><a href="{{ url('ftn/system/addedit',[$ao->system_id]) }}">{{ $ao->system->full_name($ao) }}</a> @auth<span class="float-end"><small>@if($ao->session('sespass'))<sup>{{ $ao->session('default') ? '**' : '*' }}</sup>@elseif($ao->system->setup)<sup class="success">+</sup>@endif[{{ $ao->system_id }}]</small></span>@endauth</td>
|
2021-06-20 13:03:20 +00:00
|
|
|
<td>{{ $ao->system->sysop }}</td>
|
|
|
|
<td>{{ $ao->system->location }}</td>
|
2021-06-26 01:48:55 +00:00
|
|
|
<td>{{ $ao->ftn_3d }}</td>
|
2021-07-04 13:24:38 +00:00
|
|
|
<td>{{ $ao->system->last_session ? $ao->system->last_session->format('Y-m-d H:i') : '-' }}</td>
|
2021-06-20 13:03:20 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
2021-06-19 01:59:01 +00:00
|
|
|
@endforeach
|
|
|
|
</tbody>
|
2021-07-31 07:43:58 +00:00
|
|
|
@auth
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
2021-08-09 13:35:22 +00:00
|
|
|
<td colspan="5"><sup>**</sup>Default route <sup>*</sup>System defined here <sup class="success">+</sup>This system</td>
|
2021-07-31 07:43:58 +00:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
@endauth
|
2021-06-19 01:59:01 +00:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-19 04:40:55 +00:00
|
|
|
|
|
|
|
<!-- Sign up -->
|
|
|
|
<div class="accordion-item">
|
2021-06-20 13:03:20 +00:00
|
|
|
<h3 class="accordion-header" id="signup" data-bs-toggle="collapse" data-bs-target="#collapse_signup" aria-expanded="false" aria-controls="collapse_signup">Join Network</h3>
|
2021-06-19 04:40:55 +00:00
|
|
|
|
|
|
|
<div id="collapse_signup" class="accordion-collapse collapse" aria-labelledby="signup" data-bs-parent="#accordion_homepage">
|
|
|
|
<div class="accordion-body">
|
|
|
|
@guest
|
|
|
|
To start an application to join this network please <a href="{{ url('login') }}">login</a>.
|
|
|
|
@else
|
|
|
|
@if(Auth::user()->isMember($o))
|
|
|
|
@else
|
|
|
|
This website is not ready to take applications yet, check back soon!
|
|
|
|
@endif
|
|
|
|
@endguest
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-19 01:59:01 +00:00
|
|
|
</div>
|
2021-06-26 00:34:49 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('page-scripts')
|
2021-08-14 01:11:20 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="https://cdn.datatables.net/1.10.25/css/dataTables.bootstrap5.min.css" media="screen">
|
2021-06-26 00:34:49 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="{{ asset('plugin/dataTables/dataTables.bootstrap5.css') }}" media="screen">
|
|
|
|
|
|
|
|
<script type="text/javascript" src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script>
|
2021-08-14 01:11:20 +00:00
|
|
|
<script type="text/javascript" src="{{ asset('plugin/dataTables/dataTables.conditionalPaging.js') }}"></script>
|
2021-06-26 00:34:49 +00:00
|
|
|
<script type="text/javascript" src="https://cdn.datatables.net/1.10.25/js/dataTables.bootstrap5.min.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2021-08-14 01:11:20 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
$('table tr').click(function() {
|
|
|
|
var href = $(this).find('a').attr('href');
|
|
|
|
|
|
|
|
if (href)
|
|
|
|
window.location = href;
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#echoarea').DataTable({
|
|
|
|
paging: true,
|
|
|
|
pageLength: 25,
|
|
|
|
searching: true,
|
2021-08-14 13:39:42 +00:00
|
|
|
ordering: true,
|
|
|
|
order: [1,'asc'],
|
2021-08-14 01:11:20 +00:00
|
|
|
conditionalPaging: {
|
|
|
|
style: 'fade',
|
|
|
|
speed: 500 // optional
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#filearea').DataTable({
|
|
|
|
paging: true,
|
|
|
|
pageLength: 25,
|
|
|
|
searching: true,
|
2021-08-14 13:39:42 +00:00
|
|
|
ordering: true,
|
|
|
|
order: [1,'asc'],
|
2021-08-14 01:11:20 +00:00
|
|
|
conditionalPaging: {
|
|
|
|
style: 'fade',
|
|
|
|
speed: 500 // optional
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#system').DataTable({
|
|
|
|
paging: true,
|
|
|
|
pageLength: 25,
|
|
|
|
searching: true,
|
2021-08-15 01:42:38 +00:00
|
|
|
ordering: true,
|
|
|
|
order: [],
|
2021-08-14 01:11:20 +00:00
|
|
|
conditionalPaging: {
|
|
|
|
style: 'fade',
|
|
|
|
speed: 500 // optional
|
|
|
|
},
|
|
|
|
language: {
|
|
|
|
paginate: {
|
|
|
|
previous: '<<',
|
|
|
|
next: '>>'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2021-06-26 00:34:49 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@append
|