@extends('backend.background_tasks.layout') @section('title', __('Failed Queue Jobs')) @section('bt_title', __('Failed Queue Jobs')) @section('bt_icon', 'warning-2') @section('bt_subtitle', __('Review, retry, or delete failed Laravel queue jobs.')) @if($count > 0) @section('bt_action')
@csrf
@endsection @endif @section('bt_content')
@if($count === 0)
@lang('Queue is healthy')
@lang('No failed jobs found. All jobs are processing normally.')
@else
@foreach($failedJobs as $job) @php $payload = json_decode($job->payload ?? '{}', true); $jobClass = $payload['displayName'] ?? $payload['job'] ?? 'Unknown'; @endphp @endforeach
# @lang('Job') @lang('Queue') @lang('Exception') @lang('Failed At') @lang('Actions')
{{ $job->id }}
{{ class_basename($jobClass) }}
{{ $jobClass }}
{{ $job->queue }} {{ mb_substr($job->exception ?? '', 0, 160) }}{{ mb_strlen($job->exception ?? '') > 160 ? '…' : '' }} {{ \Carbon\Carbon::parse($job->failed_at)->format('d M Y, H:i') }}
@csrf
@csrf @method('DELETE')
@if($failedJobs->hasPages())
{{ $failedJobs->links() }}
@endif @endif
{{-- Flush Confirmation Modal --}} @if($count > 0) @endif @endsection