2024-11-03 22:05:27 +00:00
|
|
|
@use(App\Models\Address)
|
|
|
|
<!-- $o=System::class -->
|
2024-05-09 11:22:30 +00:00
|
|
|
<div class="row">
|
2024-11-03 22:05:27 +00:00
|
|
|
<!-- Zone mail sent to, because we dont have session details for these addresses -->
|
2024-05-09 11:22:30 +00:00
|
|
|
<div class="col-6">
|
2024-11-03 22:05:27 +00:00
|
|
|
@if($o->aka_unknown()->count())
|
2024-05-09 11:22:30 +00:00
|
|
|
<h4>This host's mail is sent to:</h4>
|
|
|
|
<table class="table monotable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>AKA</th>
|
|
|
|
<th>Uplink</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
2024-11-03 22:05:27 +00:00
|
|
|
@foreach($o->aka_unknown() as $ao)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $ao->ftn }}</td>
|
|
|
|
<td>
|
|
|
|
@if ($xx=$ao->uplink())
|
|
|
|
{{ $xx->ftn4d }}
|
|
|
|
@else
|
|
|
|
None
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
2024-05-09 11:22:30 +00:00
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Systems this host collects for -->
|
|
|
|
<div class="col-6">
|
2024-11-03 22:05:27 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
@if($o->sessions->count())
|
|
|
|
<h4>This host collects mail for the following systems:</h4>
|
2024-05-09 11:22:30 +00:00
|
|
|
|
2024-11-03 22:05:27 +00:00
|
|
|
<table class="table monotable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>AKA</th>
|
|
|
|
<th>Incl Systems(s)</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2024-05-09 11:22:30 +00:00
|
|
|
|
2024-11-03 22:05:27 +00:00
|
|
|
<tbody>
|
|
|
|
@foreach ($o->sessions->sortBy('zone_id') as $zo)
|
|
|
|
@if($zo->pivot->default)
|
|
|
|
<tr>
|
|
|
|
<td>{!! $o->akas->filter(fn($item)=>$item->zone->domain_id === $zo->domain_id)->pluck('ftn')->join('<br>') !!}</td>
|
|
|
|
<td>All <small>(not otherwise routed)</small></td>
|
|
|
|
</tr>
|
|
|
|
@else
|
|
|
|
@foreach ($o->match($zo,Address::NODE_ALL) as $oo)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $oo->ftn }}</td>
|
|
|
|
<td>{!! (($x=$oo->downlinks()) && $x->count()) ? $x->pluck('ftn')->join('<br>') : 'None' !!}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if($o->aka_uncommon()->count())
|
|
|
|
<div class="row">
|
|
|
|
<div class="rol-12">
|
|
|
|
<h4>This host's mail not known here:</h4>
|
|
|
|
<table class="table monotable">
|
|
|
|
<thead>
|
2024-05-09 11:22:30 +00:00
|
|
|
<tr>
|
2024-11-03 22:05:27 +00:00
|
|
|
<th>AKA</th>
|
2024-05-09 11:22:30 +00:00
|
|
|
</tr>
|
2024-11-03 22:05:27 +00:00
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach($o->aka_uncommon() as $ao)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $ao->ftn }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-09 11:22:30 +00:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|