@use(Carbon\Carbon) @use(Carbon\CarbonInterface) @use(Illuminate\Support\Facades\Gate) @use(App\Classes\FTN\Packet) @use(App\Models\Mailer) @use(App\Models\User)
@can('admin')

System Users

@error('users') {{ $message }} @enderror
@endcan

System Details

@error('name') {{ $message }} @else A name is required. @enderror
@can('admin',$o)
@error('zt_id') {{ $message }} @enderror
@endcan
@error('sysop') {{ $message }} @else A Sysop's name is required. @enderror
@error('location') {{ $message }} @else System location is required. @enderror
@error('address') {{ $message }} @enderror
@error('phone') {{ $message }} @enderror

Mailer Details

@foreach (Mailer::all() as $mo) @php($x=$o->mailers->find($mo))
id.'.active',$x?->pivot->active))checked @endif @cannot($action,$o)disabled @endcannot>
@error('mailer_details.'.$mo->id.'.port') {{ $message }} @enderror
@endforeach
@error('pkt_msgs') {{ $message }} @enderror

BBS Details

@can($action,$o) Active
active))checked @endif> active))checked @endif>
@endcan
@can('admin',$o) Hold Mail
hold))checked @endif> hold))checked @endif>
@endcan
@can($action,$o) Poll Mode
pollmode === TRUE) ? 2 : 0) === 2)checked @endif> pollmode === FALSE) ? 1 : 0) === 1)checked @endif> pollmode) ? 0 : 1) === 0)checked @endif>
@error('pollmode') {{ $message }} @enderror
@endcan
@if($o->exists) @can('update_nn',$o)
pollmode))d-none @endif" id="heartbeat_option">
@error('heartbeat') {{ $message }} @enderror
@endcan @endif
@if(! is_null($o->pollmode))
@if($job=$o->poll())
@if($job->attempts)Last: @else Scheduled: @endif
{{ $job->created_at }}
Attempts:
{{ $job->attempts ?: 0 }}
@if($job->attempts)
Next:
{{ $job->available_at->diffForHumans(now(),$job->available_at->isFuture() ? CarbonInterface::DIFF_ABSOLUTE : CarbonInterface::DIFF_RELATIVE_TO_NOW) }}
@endif @else
Last Poll:
{{ ($x=$o->logs()->where('originate',TRUE)->orderBy('created_at','DESC')->limit(1)->single())?->created_at ?: 'Never' }}
Method:
{{ $x ? $x->mailer->name : '-' }}
@if($o->heartbeat)
Next Heartbeat:
{{ $x ? $x->created_at->addHours($o->heartbeat) : Carbon::now() }}
@endif @endif
Status:
@if($job) Queued @elseif ($o->autohold)Auto Hold @else @switch($o->pollmode) @case(TRUE) Crash @break; @case(FALSE) Normal @break; @default Hold @endswitch @endif
@endif
@can('admin')
@endcan
@if($o->exists) @can($action,$o) Cancel @else NOTE: You'll be able to update these details after registration is completed. @endcan @else @endif
@section('page-scripts') @append