@php $status = $progress['status']; $statusLabel = match ($status) { 'active' => 'Cron ativo', 'scheduled' => 'Próximo ciclo agendado', 'completed' => 'Lote concluído', 'quota' => 'Cota diária atingida', 'delayed' => 'Cron sem atividade recente', 'error' => 'Falha no último ciclo', default => 'Nenhum lote em verificação', }; $progressColor = match ($status) { 'completed' => 'success', 'quota' => 'warning', 'delayed', 'error' => 'danger', 'idle' => 'gray', default => 'primary', }; @endphp
in_array($status, ['active', 'scheduled'], true), 'bg-success-500' => $status === 'completed', 'bg-warning-500' => $status === 'quota', 'bg-danger-500' => in_array($status, ['delayed', 'error'], true), 'bg-gray-400' => $status === 'idle', 'animate-pulse motion-reduce:animate-none' => $progress['processing'] > 0, ]) aria-hidden="true">

Verificação Reoon

· {{ $progress['scope_label'] }} in_array($status, ['active', 'scheduled'], true), 'text-success-600 dark:text-success-400' => $status === 'completed', 'text-warning-600 dark:text-warning-400' => $status === 'quota', 'text-danger-600 dark:text-danger-400' => in_array($status, ['delayed', 'error'], true), 'text-gray-500 dark:text-gray-400' => $status === 'idle', ])> {{ $statusLabel }}
$progressColor === 'primary', 'bg-success-500' => $progressColor === 'success', 'bg-warning-500' => $progressColor === 'warning', 'bg-danger-500' => $progressColor === 'danger', 'bg-gray-400' => $progressColor === 'gray', ]) style="width: {{ max(0, min(100, $progress['percentage'])) }}%" >
{{ $progress['percentage'] }}%
Verificadas
{{ number_format($progress['completed'], 0, ',', '.') }} verificadas
Verificando
$progress['processing'] > 0, 'text-gray-950 dark:text-white' => $progress['processing'] < 1, ])> {{ number_format($progress['processing'], 0, ',', '.') }} verificando
Faltam
{{ number_format($progress['remaining'], 0, ',', '.') }} faltam
@if (in_array($status, ['quota', 'delayed', 'error'], true))

$status === 'quota', 'border-danger-200 bg-danger-50/60 text-danger-700 dark:border-danger-500/20 dark:bg-danger-400/5 dark:text-danger-400' => in_array($status, ['delayed', 'error'], true), ])> @if ($status === 'quota') O processamento continuará automaticamente quando a cota for renovada. Uso de hoje: {{ number_format($progress['quota_used'], 0, ',', '.') }}/{{ number_format($progress['quota_limit'], 0, ',', '.') }}. @elseif ($status === 'error') O último ciclo não terminou corretamente. O cron tentará novamente em até {{ $intervalMinutes }} minutos. @else Nenhum ciclo foi registrado nos últimos 12 minutos. Verifique o agendador se o aviso continuar. @endif

@endif