@extends('ops.layout') @section('title', 'Jobs & Queue') @section('content') {{-- Stats Bar --}}
{{ $pendingJobs->count() }}
{{ trans('ops.pending') }}
{{ $jobBatches->count() }}
{{ trans('ops.batches') }}
{{ $failedJobs->count() }}
{{ trans('ops.failed') }}
{{-- Pending Jobs --}}

{{ trans('ops.pending_jobs_title') }}

@if($pendingJobs->isEmpty())

{{ trans('ops.no_pending_jobs') }}

@else
@foreach($pendingJobs as $job) @endforeach
{{ trans('ops.th_id') }} {{ trans('ops.th_class') }} {{ trans('ops.th_queue') }} {{ trans('ops.th_attempts') }} {{ trans('ops.th_created') }} {{ trans('ops.th_available_at') }} {{ trans('ops.th_status') }}
{{ $job->id }} {{ $job->class_name }} {{ $job->queue }} {{ $job->attempts }} {{ $job->queued_at->diffForHumans() }} {{ $job->available_at->diffForHumans() }} @if($job->reserved_at) {{ trans('ops.processing') }} @else {{ trans('ops.waiting') }} @endif
@endif
{{-- Job Batches --}} @if($jobBatches->isNotEmpty())

{{ trans('ops.job_batches_title') }}

@foreach($jobBatches as $batch) @endforeach
{{ trans('ops.th_name') }} {{ trans('ops.th_total') }} {{ trans('ops.th_pending') }} {{ trans('ops.th_failed') }} {{ trans('ops.th_created') }} {{ trans('ops.th_completed') }}
{{ $batch->name }} {{ $batch->total_jobs }} {{ $batch->pending_jobs }} {{ $batch->failed_jobs }} {{ $batch->created_at->diffForHumans() }} @if($batch->finished_at) {{ $batch->finished_at->diffForHumans() }} @else {{ trans('ops.running_status') }} @endif
@endif {{-- Failed Jobs --}}

{{ trans('ops.failed_jobs_title') }}

@if($failedJobs->isNotEmpty()) @endif
@if($failedJobs->isEmpty())

{{ trans('ops.no_failed_jobs') }}

@else
@foreach($failedJobs as $job) @endforeach
UUID {{ trans('ops.th_class') }} {{ trans('ops.th_queue') }} {{ trans('ops.th_failed_at') }} {{ trans('ops.th_error') }} {{ trans('ops.th_action') }}
{{ Str::limit($job->uuid, 14) }} {{ $job->class_name }} {{ $job->queue }} {{ $job->failed_at->diffForHumans() }} {{ $job->exception_summary }}
@endif
@endsection @push('scripts') @endpush