@extends('admin.layouts.app') @section('title', $patient->user->name) @section('page-title', 'ملف المريض') @section('content')
العودة لقائمة المرضى
@csrf @method('DELETE')
{{ $stats['total_appointments'] }}
إجمالي المواعيد
{{ $stats['total_records'] }}
السجلات الطبية
{{ $stats['doctors_visited'] }}
أطباء زارهم
البيانات الشخصية
{{ $patient->user->name }}
@if($patient->user->is_active) حساب نشط @else حساب غير نشط @endif
  • {{ $patient->user->email ?? '—' }}
  • {{ $patient->user->phone ?? '—' }}
  • @if($patient->gender === 'male') ذكر @elseif($patient->gender === 'female') أنثى @else — @endif
  • @if($patient->blood_type) {{ $patient->blood_type }} @else — @endif
  • {{ $patient->date_of_birth?->format('Y/m/d') ?? '—' }} @if($patient->date_of_birth) ({{ $patient->age }} سنة) @endif
  • @if($patient->national_id)
  • {{ $patient->national_id }}
  • @endif
@if($patient->chronic_diseases || $patient->allergies || $patient->current_medications)
معلومات طبية
@if($patient->chronic_diseases)
مزمن: {{ $patient->chronic_diseases }}
@endif @if($patient->allergies)
حساسية: {{ $patient->allergies }}
@endif @if($patient->current_medications)
أدوية حالية: {{ $patient->current_medications }}
@endif
@endif
آخر السجلات الطبية {{ $patient->medicalRecords->count() }} معروض
@forelse($patient->medicalRecords as $rec) @empty @endforelse
التاريخ الطبيب التشخيص
{{ $rec->visit_date->format('Y/m/d') }} {{ $rec->doctor?->user?->name ?? '—' }} {{ Str::limit($rec->diagnosis ?? '—', 80) }}
لا توجد سجلات بعد
آخر المواعيد {{ $patient->appointments->count() }} معروض
@forelse($patient->appointments as $appt) @empty @endforelse
التاريخ الطبيب الوقت الحالة
{{ $appt->appointment_date->format('Y/m/d') }} {{ $appt->doctor?->user?->name ?? '—' }} {{ $appt->appointment_time ?? '—' }} @php $st = [ 'pending' => ['warning', 'بانتظار'], 'confirmed' => ['info', 'مؤكد'], 'in_progress' => ['primary', 'قيد الفحص'], 'completed' => ['success', 'منتهي'], 'cancelled' => ['secondary', 'ملغي'], 'no_show' => ['dark', 'لم يحضر'], ]; [$cls, $lb] = $st[$appt->status] ?? ['secondary', $appt->status]; @endphp {{ $lb }}
لا توجد مواعيد بعد
@endsection