@php($runs = $runs ?? collect()) @php($overflowCount = (int) ($overflowCount ?? 0)) @php($tenant = $tenant ?? null) {{-- Widget must always be mounted, even when empty, so it can receive Livewire events --}}
isNotEmpty()) wire:poll.5s="refreshRuns" @endif > @if($runs->isNotEmpty())
@foreach ($runs->take(5) as $run)

{{ \App\Support\OperationCatalog::label((string) $run->type) }}

@if($run->status === 'queued') Queued • {{ ($run->started_at ?? $run->created_at)?->diffForHumans(null, true, true) }} @else Running • {{ ($run->started_at ?? $run->created_at)?->diffForHumans(null, true, true) }} @endif

@if ($tenant) View run @endif
@endforeach @if($overflowCount > 0 && $tenant) +{{ $overflowCount }} more @endif
@endif