@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)->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