@php use App\Models\{Mailer,User}; @endphp
@can('admin',$o)

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>
@error('mailer_details.'.$mo->id.'.port') {{ $message }} @enderror
@endforeach
@error('pkt_type') {{ $message }} @enderror

BBS Details

@can('update',$o)
active))checked @endif> active))checked @endif>
@endcan
@can('update',$o)
hold))checked @endif> hold))checked @endif>
@endcan
@can('update',$o)
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
pollmode))d-none @endif" id="heartbeat_option"> @can('admin',$o)
@error('heartbeat') {{ $message }} @enderror
@endcan @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() ? \Carbon\CarbonInterface::DIFF_ABSOLUTE : \Carbon\CarbonInterface::DIFF_RELATIVE_TO_NOW) }}
@endif @else
Last Poll:
{{ ($x=$o->logs->where('originate',TRUE)->last())?->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',$o)
@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-css') @css('select2') @append @section('page-scripts') @js('select2') @append