@extends('admin._layout') @section('title', 'صحة النظام') @push('head') @endpush @section('content')
{{-- Connectivity --}}

الاتصال

قاعدة بيانات Landlord
@if($checks['landlord_db']['ok']) المضيف: {{ config('database.connections.landlord.host') }} @else {{ $checks['landlord_db']['error'] ?? 'تعذّر الاتصال' }} @endif
@if($checks['landlord_db']['ok']) {{ $checks['landlord_db']['elapsed_ms'] }}ms @endif
قواعد بيانات العيادات
{{ $checks['tenant_dbs']['reachable'] }} / {{ $checks['tenant_dbs']['total'] }} عيادة متاحة (نشطة + تجريبية)
@if($checks['tenant_dbs']['ok']) {{ $checks['tenant_dbs']['reachable'] }}/{{ $checks['tenant_dbs']['total'] }} @else {{ count($checks['tenant_dbs']['unreachable']) }} غير متاحة @endif
@if(! empty($checks['tenant_dbs']['unreachable']))
عيادات تعذّر الاتصال بقواعدها:
    @foreach($checks['tenant_dbs']['unreachable'] as $u)
  • {{ $u['clinic']->name }}{{ Str::limit($u['error'], 80) }}
  • @endforeach
@endif
{{-- Sessions + Queue --}}

الجلسات والمهام

الجلسات النشطة
{{ $checks['sessions']['stale_24h'] ?? 0 }} جلسة قديمة (>24 ساعة)
{{ $checks['sessions']['total'] ?? 0 }}
طابور المهام
Driver: {{ $checks['queue']['driver'] ?? 'unknown' }}
{{ $checks['queue']['pending'] ?? 0 }} في الانتظار
المهام الفاشلة
@if(($checks['failed_jobs']['total'] ?? 0) > 0)
آخر فشل: {{ \Carbon\Carbon::parse($checks['failed_jobs']['latest'])->diffForHumans() }}
@else
لا توجد مهام فاشلة 🎉
@endif
{{ $checks['failed_jobs']['total'] ?? 0 }}
المجدول (Scheduler)
آخر نشاط عيادة: {{ $checks['scheduler']['last_active_clinic'] ?? '—' }}
آخر إيقاف تلقائي: {{ $checks['scheduler']['last_auto_expired'] ?? '—' }}
{{-- Storage --}}

التخزين

@php $storage = $checks['storage']; $usedPct = $storage['used_pct'] ?? 0; $color = $usedPct >= 90 ? 'danger' : ($usedPct >= 70 ? 'warning' : 'success'); @endphp @if(isset($storage['used_pct']))
مساحة القرص {{ $storage['free_gb'] }} GB متاحة من {{ $storage['total_gb'] }} GB
{{ $usedPct }}% مستخدم
@else
{{ $storage['note'] ?? 'تعذّر قراءة معلومات القرص' }}
@endif
{{-- Application info --}}

معلومات التطبيق

إصدار PHP
{{ $app['php_version'] }}
إصدار Laravel
{{ $app['laravel_version'] }}
البيئة
{{ $app['env'] }} @if($app['debug']) Debug ON @endif
المنطقة الزمنية
{{ $app['timezone'] }}
الآن
{{ $app['now'] }}
@endsection