<x-filament-panels::page>
<div class="grid gap-4 md:grid-cols-3">
<x-filament::section><x-slot name="heading">Aktivasyon</x-slot><p>{{ $summary['activation_mode'] }}</p><p>Kill switch: {{ $summary['kill_switch'] ? 'AKTİF' : 'Kapalı' }}</p><p>Circuit: {{ $summary['circuit_open'] ? 'Açık' : 'Kapalı' }}</p></x-filament::section>
<x-filament::section><x-slot name="heading">Son 24 saat</x-slot><p>Toplam: {{ $summary['checks_24h'] }}</p><p>Tamamlanan: {{ $summary['completed_24h'] }}</p><p>Başarısız: {{ $summary['failed_24h'] }}</p><p>Başarı: %{{ $summary['success_percent'] }}</p></x-filament::section>
<x-filament::section><x-slot name="heading">Kuyruk</x-slot><p>Provider bekleyen: {{ $summary['waiting_provider'] }}</p><p>Takılı: {{ $summary['stuck'] }}</p><p>Backlog: {{ $summary['queue_backlog'] }}</p><p>Failed jobs: {{ $summary['failed_jobs'] }}</p></x-filament::section>
<x-filament::section><x-slot name="heading">Bütçe (mikro USD)</x-slot><p>Günlük: {{ $summary['budget']['daily_micros'] }}</p><p>Aylık: {{ $summary['budget']['monthly_micros'] }}</p></x-filament::section>
<x-filament::section><x-slot name="heading">Ramp-up</x-slot><p>Başlangıç: {{ $summary['ramp_up']['started_at'] ?? 'Başlamadı' }}</p><p>Kullanım: {{ $summary['ramp_up']['used'] }}</p><p>Geçerli limit: {{ $summary['ramp_up']['limit'] ?? 'Sınırsız' }}</p></x-filament::section>
<x-filament::section><x-slot name="heading">Provider health</x-slot><p>Son kontrol: {{ $summary['last_health_at'] ?? 'Yapılmadı' }}</p><p>Credential: {{ config('serp.dataforseo.login') && config('serp.dataforseo.password') ? 'configured' : 'not configured' }}</p><p>Son hata: {{ $summary['last_error_category'] ?? '—' }}</p></x-filament::section>
</div>
@if(auth()->user()->hasRole('super_admin'))<div class="flex gap-3"><x-filament::button color="danger" wire:click="emergencyStop">Emergency stop</x-filament::button><x-filament::button color="gray" wire:click="clearEmergencyStop">Stop kaldır</x-filament::button></div>@endif
</x-filament-panels::page>
