@php($runs = $runs ?? collect()) @php($interval = $runs->isEmpty() ? max((int) $pollSeconds, 10) : (int) $pollSeconds)
@if($runs->isNotEmpty())
@foreach ($runs as $run) @php($effectiveTotal = max((int) $run->total_items, (int) $run->processed_items)) @php($percent = $effectiveTotal > 0 ? min(100, round(($run->processed_items / $effectiveTotal) * 100)) : 0)

{{ 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 }} / {{ $effectiveTotal }}
{{ $percent }}%
@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