@php $statusStyles = [ 'running' => ['bg' => '#1e3a5f', 'color' => '#60a5fa', 'label' => 'RUN'], 'ok' => ['bg' => '#14532d', 'color' => '#86efac', 'label' => 'OK'], 'error' => ['bg' => '#7f1d1d', 'color' => '#fca5a5', 'label' => 'ERR'], 'warn' => ['bg' => '#78350f', 'color' => '#fcd34d', 'label' => 'WARN'], 'info' => ['bg' => '#1e3a5f', 'color' => '#93c5fd', 'label' => 'INFO'], ]; $groupLabels = [ 'last_5_min' => 'LAST 5 MINUTES', 'earlier_today' => 'EARLIER TODAY', 'yesterday' => 'YESTERDAY', 'older' => 'OLDER', ]; $runningJobs = $this->groupedLogs['running'] ?? []; $otherGroups = array_filter( $this->groupedLogs, fn($k) => $k !== 'running' && $k !== 'queued', ARRAY_FILTER_USE_KEY ); @endphp {{-- wire:poll on root only — x-data is on the inner div so morphdom never re-initialises the Alpine scope during polls --}}