2024-09-09 03:30:45 +00:00
|
|
|
<!-- $o=Domain::class -->
|
|
|
|
@use(Illuminate\Mail\Markdown)
|
|
|
|
|
2021-06-15 12:19:14 +00:00
|
|
|
@extends('layouts.app')
|
|
|
|
@section('htmlheader_title')
|
|
|
|
{{ $o->name }}
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
2024-04-22 04:27:48 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h1>{{ $o->name }} <small class="float-end">Last Update: {{ $o->updated_at->format('Y-m-d H:i') }}</small></h1>
|
|
|
|
|
|
|
|
<div class="accordion" id="accordion_homepage">
|
|
|
|
<!-- About -->
|
|
|
|
<div class="accordion-item">
|
|
|
|
<h3 class="accordion-header">
|
|
|
|
<span class="accordion-button" id="about" data-bs-toggle="collapse" data-bs-target="#collapse_about" aria-expanded="true" aria-controls="collapse_about">About</span>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div id="collapse_about" class="accordion-collapse collapse show" aria-labelledby="about" data-bs-parent="#accordion_homepage">
|
|
|
|
<div class="accordion-body">
|
|
|
|
<div class="float-end" style="max-height: 25em;" id="network_traffic"></div>
|
2024-09-09 03:30:45 +00:00
|
|
|
{!! Markdown::parse($o->homepage) !!}
|
2024-04-22 04:27:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-19 01:59:01 +00:00
|
|
|
</div>
|
|
|
|
|
2024-04-22 04:27:48 +00:00
|
|
|
<!-- Echomail -->
|
|
|
|
<div class="accordion-item">
|
|
|
|
<h3 class="accordion-header">
|
|
|
|
<span class="accordion-button collapsed" id="echoareas" data-bs-toggle="collapse" data-bs-target="#collapse_echoareas" aria-expanded="false" aria-controls="collapse_echoareas">Echo Areas</span>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div id="collapse_echoareas" class="accordion-collapse collapse" aria-labelledby="echoareas" data-bs-parent="#accordion_homepage">
|
|
|
|
<div class="accordion-body">
|
|
|
|
@if($o->echoareas->count())
|
|
|
|
<p>This network provides the following Echomail areas:</p>
|
|
|
|
<table class="table monotable w-100" id="echoarea">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="w-75" colspan="4"></th>
|
|
|
|
<th colspan="4" class="text-center">Messages</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Echoarea</th>
|
|
|
|
<th>Description</th>
|
2024-09-09 03:30:45 +00:00
|
|
|
<th>First Message</th>
|
2024-04-22 04:27:48 +00:00
|
|
|
<th>Last Message</th>
|
|
|
|
<th>Area Active</th>
|
|
|
|
<th class="text-end">Day</th>
|
|
|
|
<th class="text-end">Week</th>
|
|
|
|
<th class="text-end">Month</th>
|
|
|
|
<th class="text-end">Total</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach ($o->echoarea_stats()->groupBy('id') as $oo)
|
|
|
|
<tr>
|
2024-10-23 10:17:38 +00:00
|
|
|
<td style="width: 10%;"><a href="{{ url('echoarea/addedit',[($x=$oo->first())->id]) }}">{{ $x->name }}</a></td>
|
2024-04-22 04:27:48 +00:00
|
|
|
<td>{{ $x->description }}</td>
|
2024-10-23 10:17:38 +00:00
|
|
|
<td>{{ ($xx=$oo->min('first_message')) ? $xx->format('Y-m-d H:i') : '-' }}</td>
|
|
|
|
<td>{{ $x->last_message ? $x->last_message->format('Y-m-d H:i') : '-' }}</td>
|
2024-04-22 04:27:48 +00:00
|
|
|
<td>{{ $x->active ? 'Active' : 'Archive' }}</td>
|
|
|
|
<td class="text-end">{{ number_format($oo->where('stats','day')->pop()?->count) }}</td>
|
|
|
|
<td class="text-end">{{ number_format($oo->where('stats','week')->pop()?->count) }}</td>
|
|
|
|
<td class="text-end">{{ number_format($oo->where('stats','month')->pop()?->count) }}</td>
|
|
|
|
<td class="text-end">{{ number_format($oo->sum('count')) }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
@else
|
|
|
|
This network doesnt have any Echomail areas (yet). Perhaps you would like to create one?
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-19 01:59:01 +00:00
|
|
|
</div>
|
|
|
|
|
2024-04-22 04:27:48 +00:00
|
|
|
<!-- File areas -->
|
|
|
|
<div class="accordion-item">
|
|
|
|
<h3 class="accordion-header">
|
|
|
|
<span class="accordion-button collapsed" id="fileareas" data-bs-toggle="collapse" data-bs-target="#collapse_fileareas" aria-expanded="false" aria-controls="collapse_fileareas">File Areas</span>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div id="collapse_fileareas" class="accordion-collapse collapse" aria-labelledby="fileareas" data-bs-parent="#accordion_homepage">
|
|
|
|
<div class="accordion-body">
|
|
|
|
@if($o->fileareas->count())
|
|
|
|
<p>This network provides the following File areas:</p>
|
2024-10-23 10:17:38 +00:00
|
|
|
<table class="table monotable w-100" id="filearea">
|
2024-04-22 04:27:48 +00:00
|
|
|
<thead>
|
2024-10-23 10:17:38 +00:00
|
|
|
<tr>
|
|
|
|
<th class="w-75" colspan="4"></th>
|
|
|
|
<th colspan="4" class="text-center">Files</th>
|
|
|
|
</tr>
|
2024-04-22 04:27:48 +00:00
|
|
|
<tr>
|
|
|
|
<th>Filearea</th>
|
|
|
|
<th>Description</th>
|
2024-10-23 10:17:38 +00:00
|
|
|
<th>First File</th>
|
|
|
|
<th>Last File</th>
|
|
|
|
<th>Area Active</th>
|
|
|
|
<th class="text-end">Week</th>
|
|
|
|
<th class="text-end">Month</th>
|
|
|
|
<th class="text-end">Total</th>
|
2024-04-22 04:27:48 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
2024-10-23 10:17:38 +00:00
|
|
|
@foreach ($o->filearea_stats()->groupBy('id') as $oo)
|
2024-04-22 04:27:48 +00:00
|
|
|
<tr>
|
2024-10-23 10:17:38 +00:00
|
|
|
<td style="width: 10%;"><a href="{{ url('echoarea/addedit',[($x=$oo->first())->id]) }}">{{ $x->name }}</a></td>
|
|
|
|
<td>{{ $x->description }}</td>
|
|
|
|
<td>{{ ($xx=$oo->min('first_file')) ? $xx->format('Y-m-d H:i') : '-' }}</td>
|
|
|
|
<td>{{ $x->last_file ? $x->last_file->format('Y-m-d H:i') : '-' }}</td>
|
|
|
|
<td>{{ $x->active ? 'Active' : 'Archive' }}</td>
|
|
|
|
<td class="text-end">{{ number_format($oo->where('stats','week')->pop()?->count) }}</td>
|
|
|
|
<td class="text-end">{{ number_format($oo->where('stats','month')->pop()?->count) }}</td>
|
|
|
|
<td class="text-end">{{ number_format($oo->sum('count')) }}</td>
|
2024-04-22 04:27:48 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
@else
|
|
|
|
This network doesnt have any File areas (yet). Perhaps you would like to create one?
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-19 01:59:01 +00:00
|
|
|
</div>
|
|
|
|
|
2024-04-22 04:27:48 +00:00
|
|
|
<!-- Systems -->
|
|
|
|
<div class="accordion-item">
|
|
|
|
<h3 class="accordion-header">
|
|
|
|
<span class="accordion-button collapsed" id="systems" data-bs-toggle="collapse" data-bs-target="#collapse_systems" aria-expanded="false" aria-controls="collapse_systems">Systems</span>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
<table class="table monotable" id="system">
|
|
|
|
<thead>
|
2021-06-20 13:03:20 +00:00
|
|
|
<tr>
|
2024-04-22 04:27:48 +00:00
|
|
|
<th>System</th>
|
|
|
|
<th>Sysop</th>
|
|
|
|
<th>Location</th>
|
|
|
|
<th>Address</th>
|
2024-05-23 13:28:42 +00:00
|
|
|
<th>Last Echomail</th>
|
2021-06-20 13:03:20 +00:00
|
|
|
</tr>
|
2024-04-22 04:27:48 +00:00
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach ($o->zones->sortBy('zone_id') as $oz)
|
|
|
|
@foreach ($oz->addresses as $ao)
|
|
|
|
<tr>
|
2024-06-14 05:09:04 +00:00
|
|
|
<td><a href="{{ url('system/addedit',[$ao->system_id]) }}">{{ $ao->system->full_name($ao) }}</a> @auth<span class="float-end"><small>@if($ao->is_hosted)<sup>{{ $ao->is_default ? '**' : '*' }}</sup>@elseif($ao->system->setup)<sup class="success">+</sup>@endif[{{ $ao->system_id }}]</small></span>@endauth</td>
|
2024-04-22 04:27:48 +00:00
|
|
|
<td>{{ $ao->system->sysop }}</td>
|
|
|
|
<td>{{ $ao->system->location }}</td>
|
|
|
|
<td>{{ $ao->ftn4d }}</td>
|
2024-05-23 13:28:42 +00:00
|
|
|
<td>{{ $ao->echomail_from->count() ? $ao->echomail_from->first()->datetime->format('Y-m-d H:i') : '-' }}</td>
|
2024-04-22 04:27:48 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
@auth
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td colspan="5"><sup>**</sup>Default route <sup>*</sup>System defined here <sup class="success">+</sup>This system</td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
@endauth
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-19 01:59:01 +00:00
|
|
|
</div>
|
2021-06-19 04:40:55 +00:00
|
|
|
|
2024-04-22 04:27:48 +00:00
|
|
|
<!-- Sign up -->
|
2024-04-26 06:18:40 +00:00
|
|
|
@if ($o->can_accept_app)
|
|
|
|
<div class="accordion-item">
|
|
|
|
<h3 class="accordion-header">
|
|
|
|
<span class="accordion-button collapsed" id="signup" data-bs-toggle="collapse" data-bs-target="#collapse_signup" aria-expanded="false" aria-controls="collapse_signup">Join Network</span>
|
|
|
|
</h3>
|
2024-04-22 04:27:48 +00:00
|
|
|
|
2024-04-26 06:18:40 +00:00
|
|
|
<div id="collapse_signup" class="accordion-collapse collapse" aria-labelledby="signup" data-bs-parent="#accordion_homepage">
|
|
|
|
<div class="accordion-body">
|
|
|
|
<p>Your system(s) <strong class="highlight">{!! $o->userHasSystemsNotInNet(Auth::user())->pluck('name')->join('</strong>, <strong class="highlight">') !!}</strong> can join this network.</p>
|
|
|
|
<p>
|
|
|
|
If you want to join it/them to this network, make sure:
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>it is online and can accept mailer calls</li>
|
|
|
|
<li>you have the <strong class="highlight">BBS Internet Hostname</strong> configured with the correct hostname</li>
|
|
|
|
<li>you have selected either <strong class="highlight">BINKP</strong> or <strong class="highlight">EMSI</strong> in the mailer settings, with the correct TCP port</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p>Here's what will happen next</p>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>You complete the application form (see the button below)</li>
|
|
|
|
<li>We'll poll your system to make sure it is connectable</li>
|
|
|
|
<li>Your applicaiton will then be forwarded to the <strong class="highlight">ZC</strong> of the domain</li>
|
|
|
|
<li>You'll hear back from your assigned hub to configure your system with your assigned FTN address</li>
|
|
|
|
<li>Configure your system, subscribe to file and echo areas</li>
|
|
|
|
<li>Enjoy!</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<button class="btn btn-success">Lets Do It</button>
|
|
|
|
</div>
|
2024-04-22 04:27:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-04-26 06:18:40 +00:00
|
|
|
@endif
|
2021-06-19 04:40:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-19 01:59:01 +00:00
|
|
|
</div>
|
2021-06-26 00:34:49 +00:00
|
|
|
@endsection
|
|
|
|
|
2021-11-13 06:00:08 +00:00
|
|
|
@section('page-css')
|
|
|
|
@css('datatables')
|
|
|
|
@append
|
2024-04-26 06:18:40 +00:00
|
|
|
|
2021-06-26 00:34:49 +00:00
|
|
|
@section('page-scripts')
|
2021-11-13 06:00:08 +00:00
|
|
|
@js('datatables')
|
2021-11-26 05:16:33 +00:00
|
|
|
@js('highcharts')
|
2021-06-26 00:34:49 +00:00
|
|
|
|
|
|
|
<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,
|
2024-09-09 03:30:45 +00:00
|
|
|
order: [[4,'asc'],[1,'asc']],
|
2021-08-14 01:11:20 +00:00
|
|
|
conditionalPaging: {
|
|
|
|
style: 'fade',
|
|
|
|
speed: 500 // optional
|
2023-07-05 23:35:15 +00:00
|
|
|
},
|
|
|
|
rowGroup: {
|
2024-09-09 03:30:45 +00:00
|
|
|
dataSrc: [4],
|
2023-07-05 23:35:15 +00:00
|
|
|
},
|
|
|
|
columnDefs: [
|
|
|
|
{
|
2024-09-09 03:30:45 +00:00
|
|
|
targets: [4],
|
2023-07-05 23:35:15 +00:00
|
|
|
visible: false,
|
|
|
|
},
|
|
|
|
],
|
2021-08-14 01:11:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$('#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
|
2024-10-23 10:17:38 +00:00
|
|
|
},
|
|
|
|
rowGroup: {
|
|
|
|
dataSrc: [4],
|
|
|
|
},
|
|
|
|
columnDefs: [
|
|
|
|
{
|
|
|
|
targets: [4],
|
|
|
|
visible: false,
|
|
|
|
},
|
|
|
|
],
|
2021-08-14 01:11:20 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$('#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: '>>'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2024-04-26 06:18:40 +00:00
|
|
|
|
|
|
|
@if ($o->can_accept_app)
|
|
|
|
$('#join_top').on('click',function(item) {
|
|
|
|
$('.accordion-collapse').each(function(){
|
|
|
|
if ($(this).hasClass('show')) {
|
|
|
|
$(this).toggle();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#collapse_signup').toggle();
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
@endif
|
2021-06-26 00:34:49 +00:00
|
|
|
});
|
2021-11-26 05:16:33 +00:00
|
|
|
|
|
|
|
Highcharts.chart('network_traffic', {
|
|
|
|
chart: {
|
|
|
|
type: 'spline',
|
|
|
|
zoomType: 'x',
|
2023-06-13 10:22:40 +00:00
|
|
|
backgroundColor: '#0a0a0a',
|
2021-11-26 05:16:33 +00:00
|
|
|
resetZoomButton: {
|
|
|
|
position: {
|
2022-01-05 13:19:57 +00:00
|
|
|
align: 'left',
|
|
|
|
x: -40,
|
2021-11-26 05:16:33 +00:00
|
|
|
y: -40,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
credits: {
|
|
|
|
enabled: false
|
|
|
|
},
|
|
|
|
exporting: {
|
|
|
|
buttons: false
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
text: 'FTN Network Traffic for {{ $o->name }}'
|
|
|
|
},
|
|
|
|
xAxis: {
|
|
|
|
type: 'datetime',
|
|
|
|
title: {
|
|
|
|
text: 'Time'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
yAxis: {
|
|
|
|
title: {
|
|
|
|
text: 'Echomail'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
legend: {
|
2022-01-01 05:59:35 +00:00
|
|
|
align: 'right',
|
|
|
|
layout: 'vertical',
|
2022-01-05 13:19:57 +00:00
|
|
|
symbolWidth: 20,
|
2022-01-01 05:59:35 +00:00
|
|
|
floating: false,
|
|
|
|
navigation: {
|
|
|
|
arrowSize: 10
|
|
|
|
},
|
2021-11-26 05:16:33 +00:00
|
|
|
},
|
|
|
|
plotOptions: {
|
|
|
|
series: {
|
|
|
|
point: {
|
|
|
|
events: {
|
|
|
|
click: function () {
|
|
|
|
//window.location.href = this.series.options.website;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
cursor: 'pointer'
|
|
|
|
}
|
|
|
|
},
|
2024-04-20 12:03:47 +00:00
|
|
|
series: {!! $o->echoarea_total_daily()
|
|
|
|
->groupBy('name')
|
|
|
|
->transform(function($item,$key) { return [
|
|
|
|
'name'=>$key,
|
|
|
|
'dashStyle'=>'ShortDot',
|
|
|
|
'visible'=>$item->first()->show,
|
2024-06-18 10:42:36 +00:00
|
|
|
'data'=>$item->map(function($item) { return ['x'=>\Carbon\Carbon::createFromFormat('Y-m-d',$item->date)->timestamp*1000,'y'=>$item->count]; })
|
2024-04-20 12:03:47 +00:00
|
|
|
]; })
|
|
|
|
->values() !!}
|
2021-11-26 05:16:33 +00:00
|
|
|
});
|
2021-06-26 00:34:49 +00:00
|
|
|
</script>
|
|
|
|
@append
|