Status
@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'processing' => 'bg-blue-100 text-blue-800', 'completed' => 'bg-green-100 text-green-800', 'failed' => 'bg-red-100 text-red-800', 'cancelled' => 'bg-gray-100 text-gray-800', 'completed_with_errors' => 'bg-orange-100 text-orange-800', ]; @endphp {{ str_replace('_', ' ', ucfirst($batchJob->status)) }}Type
{{ ucfirst($batchJob->type) }}
Created
{{ $batchJob->created_at->format('M j, Y g:i A') }}
Scheduled
{{ $batchJob->scheduled_at->format('M j, Y g:i A') }}
{{ $batchJob->total_items }}
Total Items
{{ $batchJob->processed_items - $batchJob->failed_items }}
Successful
{{ $batchJob->failed_items }}
Failed
{{ $batchJob->total_items - $batchJob->processed_items }}
Pending
Success Rate
{{ $stats['success_rate'] }}%
Avg Processing Time
{{ number_format($stats['avg_processing_time'], 1) }}s
Duration
@if($batchJob->completed_at && $batchJob->started_at) {{ $batchJob->completed_at->diffForHumans($batchJob->started_at, true) }} @elseif($batchJob->started_at) {{ $batchJob->started_at->diffForHumans(null, true) }} @else - @endif
| # | Type | Details | Amount | Status | Result/Error |
|---|---|---|---|---|---|
| {{ $item->sequence }} | {{ ucfirst($item->type) }} |
@if($item->type === 'transfer' || $item->type === 'payment')
From: {{ $item->data['from_account'] ?? 'N/A' }} To: {{ $item->data['to_account'] ?? 'N/A' }} @elseif($item->type === 'conversion'){{ $item->data['from_currency'] ?? 'N/A' }} → {{ $item->data['to_currency'] ?? 'N/A' }} @endif @if(!empty($item->data['description'])){{ $item->data['description'] }} @endif |
{{ number_format($item->data['amount'] ?? 0, 2) }} {{ $item->data['currency'] ?? '' }} | @php $itemStatusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'completed' => 'bg-green-100 text-green-800', 'failed' => 'bg-red-100 text-red-800', 'cancelled' => 'bg-gray-100 text-gray-800', ]; @endphp {{ ucfirst($item->status) }} |
@if($item->status === 'completed' && $item->result)
@if($item->type === 'conversion' && isset($item->result['converted_amount'])) Converted: {{ number_format($item->result['converted_amount'] / 100, 2) }} @ {{ $item->result['rate'] ?? 'N/A' }} @else {{ json_encode($item->result) }} @endif @elseif($item->status === 'failed' && $item->error_message){{ $item->error_message }} @endif |