@extends('layouts.app') @section('title', 'Altyapı & Bakım') @section('content')

Altyapı & Bakım

Sistem altyapısı ve bakım işlemleri paneli

@if(isset($fullStatus['health']))

Sistem Sağlık Skoru

Genel Sağlık Skoru

{{ number_format($fullStatus['health']['score'], 1) }}

@if($fullStatus['health']['score'] >= 90) Mükemmel Durum @elseif($fullStatus['health']['score'] >= 70) İyi Durum @else Dikkat Gerekli @endif

@endif
@if(isset($fullStatus['queue']))

Queue Durumu

{{ ucfirst($fullStatus['queue']['status']) }}
Bekleyen İşler {{ number_format($fullStatus['queue']['pending_jobs']) }}
Başarısız İşler {{ number_format($fullStatus['queue']['failed_jobs']) }}
Son 24 Saat {{ number_format($fullStatus['queue']['recent_failed_jobs']) }}
@endif @if(isset($fullStatus['cache']))

Cache Durumu

{{ ucfirst($fullStatus['cache']['status']) }}
Driver {{ ucfirst($fullStatus['cache']['driver']) }}
@if(isset($fullStatus['cache']['hit_rate']))
Hit Rate {{ number_format($fullStatus['cache']['hit_rate'], 1) }}%
@endif
@endif @if(isset($fullStatus['database']))

Database Durumu

{{ $fullStatus['database']['connected'] ? 'Bağlı' : 'Bağlı Değil' }}
Driver {{ ucfirst($fullStatus['database']['driver']) }}
@if(isset($fullStatus['database']['size_mb']))
Boyut {{ number_format($fullStatus['database']['size_mb'], 2) }} MB
@endif @if(isset($fullStatus['database']['table_count']))
Tablo Sayısı {{ number_format($fullStatus['database']['table_count']) }}
@endif
@endif @if(isset($fullStatus['disk']) && !empty($fullStatus['disk']['disks'])) @php $mainDisk = $fullStatus['disk']['disks'][0] ?? null; @endphp @if($mainDisk)

Disk Kullanımı

{{ ucfirst($mainDisk['status']) }}
Kullanım {{ number_format($mainDisk['used_percent'], 1) }}%
Kullanılan {{ $mainDisk['used_formatted'] ?? '-' }}
Toplam {{ $mainDisk['total_formatted'] ?? '-' }}
@endif @endif

Toplam Backup

{{ number_format($totalBackups) }}

Tamamlanan

{{ number_format($completedBackups) }}

Başarısız

{{ number_format($failedBackups) }}

Devam Eden

{{ number_format($inProgressBackups) }}

Toplam Boyut

@if($totalBackupSize > 0) @if($totalBackupSize >= 1073741824) {{ number_format($totalBackupSize / 1073741824, 2) }} GB @elseif($totalBackupSize >= 1048576) {{ number_format($totalBackupSize / 1048576, 2) }} MB @else {{ number_format($totalBackupSize / 1024, 2) }} KB @endif @else - @endif

@if(isset($fullStatus['system']))

Sistem Bilgileri

PHP Versiyonu

{{ $fullStatus['system']['php_version'] }}

Laravel Versiyonu

{{ $fullStatus['system']['laravel_version'] }}

Ortam

{{ ucfirst($fullStatus['system']['app_env']) }}

Sunucu Zamanı

{{ $fullStatus['system']['server_time'] }}

@endif @if($recentBackups->count() > 0)

Son Backup'lar

@foreach($recentBackups as $backup) @endforeach
Site Tip Durum Boyut Tarih
{{ $backup->site->name ?? '-' }} {{ $backup->type_label }} {{ ucfirst($backup->status) }} {{ $backup->formatted_file_size }} {{ $backup->created_at->format('d.m.Y H:i') }}
@endif @if(isset($fullStatus['critical_issues']) && count($fullStatus['critical_issues']) > 0)

Kritik Sorunlar

@foreach($fullStatus['critical_issues'] as $issue)

{{ $issue['title'] }}

{{ $issue['description'] }}

@endforeach
@endif
@endsection