clrghouz/resources/views/system/list.blade.php

70 lines
1.8 KiB
PHP
Raw Normal View History

2023-04-15 05:09:32 +00:00
@extends('layouts.app')
@section('htmlheader_title')
Connectable Systems
@endsection
@section('content')
<div class="row">
2023-04-15 05:09:32 +00:00
<div class="col-12">
<h2>List of Connectable Systems</h2>
<p>Here is a list of systems that can be connected to.</p>
</div>
<div class="col-12 pt-2">
2024-04-14 06:59:06 +00:00
<table class="table monotable" id="bbslist">
2023-04-15 05:09:32 +00:00
<thead>
<tr>
<th class="w-25">System</th>
<th class="w-50">Connection Details</th>
2023-04-15 05:09:32 +00:00
<th>FTN Networks</th>
</tr>
</thead>
<tbody>
@foreach (\App\Models\System::active()->whereNotNull('method')->orderBy('name')->with(['addresses.zone.domain'])->get() as $o)
<tr>
<td>{{ $o->name }}</td>
<td>
@switch($o->method)
@case(23)<a href="telnet://{{ $o->address }}:{{ $o->port }}">Telnet</a> [telnet://{{ $o->address }}:{{ $o->port }}]@break
@case(22)<a href="ssh://{{ $o->address }}:{{ $o->port }}">SSH</a> [ssh://{{ $o->address }}:{{ $o->port }}]@break
@case(519)<a href="rlogin://{{ $o->address }}:{{ $o->port }}">rlogin [rlogin://{{ $o->address }}:{{ $o->port }}]</a>@break
@default No details
@endswitch
</td>
<td>{{ $o->addresses->pluck('zone.domain.name')->unique()->sort()->join(', ') }}</td>
2023-04-15 05:09:32 +00:00
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
2024-04-14 06:59:06 +00:00
@endsection
@section('page-css')
@css('datatables')
@append
@section('page-scripts')
@js('datatables')
<script type="text/javascript">
$(document).ready(function() {
$('#bbslist').DataTable({
paging: true,
pageLength: 25,
searching: true,
autoWidth: false,
conditionalPaging: {
style: 'fade',
speed: 500 // optional
},
language: {
paginate: {
previous: '&lt;&lt;',
next: '&gt;&gt;'
}
},
});
});
</script>
@append