@extends('layouts.admin') @section('title', __('admin.system.title')) @section('content')

{{ __('admin.system.title') }}

{{ __('admin.system.subtitle') }}

{{ __('admin.system_status.'.$health['overall']) }}
@foreach([ 'database' => $health['database'], 'scheduler' => $health['scheduler'], 'worker' => $health['worker'], 'worker_default' => $health['worker_default'], 'queue' => $health['queue'], 'connectors' => $health['connectors'], ] as $key => $component)
{{ $key === 'worker_default' ? __('operations.default_worker') : __('admin.system.components.'.$key) }} {{ __('admin.system_status.'.$component['status']) }}
@if(in_array($key, ['scheduler', 'worker', 'worker_default'], true)) {{ $component['last_seen']?->format('d/m/Y H:i:s') ?? '—' }} {{ $component['age_seconds'] !== null ? __('admin.system.seconds_ago', ['seconds' => $component['age_seconds']]) : __('admin.system.no_heartbeat') }} @elseif($key === 'queue') {{ $component['pending'] ?? '—' }} {{ __('admin.system.pending_jobs') }} {{ __('admin.system.failed_jobs_24h', ['count' => $component['failed_24h'] ?? '—']) }} @elseif($key === 'connectors') {{ __('admin.system.failed_runs_24h', ['count' => $component['failed_24h'] ?? '—']) }} {{ $component['last_failure']?->provider?->name ?? __('admin.system.no_recent_failure') }} @else {{ $component['status'] === 'ok' ? __('admin.system.database_connected') : __('admin.system.database_unavailable') }} {{ $component['message'] ? str($component['message'])->limit(90) : __('admin.system.database_help') }} @endif
@endforeach
{{ __('admin.system.version') }}{{ $health['version'] }}
{{ __('admin.system.live_states') }}{{ $health['live']['states'] ?? '—' }}
{{ __('admin.system.live_fresh') }}{{ $health['live']['fresh'] ?? '—' }}
{{ __('admin.system.generated_at') }}{{ $health['generated_at']->format('d/m/Y H:i:s') }}

{{ __('admin.system.local_runtime') }}

{{ __('admin.system.local_runtime_help') }}

START_DATA.bat {{ __('admin.system.start_help') }} STOP_DATA.bat {{ __('admin.system.stop_help') }} STATUS_DATA.bat {{ __('admin.system.status_help') }}

{{ __('admin.system.recent_runs') }}

{{ __('admin.system.recent_runs_help') }}

@if($recentRuns->isEmpty())
{{ __('admin.system.no_runs') }}
@else
@foreach($recentRuns as $run) @endforeach
{{ __('admin.providers.title') }} {{ __('admin.labels.operation') }} {{ __('admin.labels.status') }} {{ __('admin.labels.updated_at') }} {{ __('admin.labels.duration') }} {{ __('admin.labels.source') }}
{{ $run->provider?->name ?? '—' }} {{ $run->operation }} {{ $run->status }} {{ $run->created_at?->format('d/m/Y H:i:s') ?? '—' }} {{ $run->duration_ms !== null ? $run->duration_ms.' ms' : '—' }} {{ $run->source?->name ?? '—' }}
@endif
@endsection