@if($runs->isNotEmpty())
@foreach ($runs as $run)

{{ ucfirst($run->action) }} {{ ucfirst(str_replace('_', ' ', $run->resource)) }}

@if($run->status === 'pending') @php($isStalePending = $run->created_at->lt(now()->subSeconds(30))) {{ $isStalePending ? 'Queued…' : 'Starting...' }} @elseif($run->status === 'running') Processing... @elseif(in_array($run->status, ['completed', 'completed_with_errors'], true)) Done @elseif(in_array($run->status, ['failed', 'aborted'], true)) Failed @endif

{{ $run->processed_items }} / {{ $run->total_items }}
{{ $run->total_items > 0 ? round(($run->processed_items / $run->total_items) * 100) : 0 }}%
@if ($run->succeeded > 0) ✓ {{ $run->succeeded }} succeeded @endif @if ($run->failed > 0) ✗ {{ $run->failed }} failed @endif @if ($run->skipped > 0) ⊘ {{ $run->skipped }} skipped @endif
{{ $run->created_at->diffForHumans(null, true, true) }}
@endforeach
@endif