@extends('layouts.app') @section('title', $patient->full_name) @php // Whitelist the fields the edit modal needs. Avoids leaking eager-loaded // relations (appointments, prescriptions…) into the page payload. $patientFormData = $patient->only([ 'id', 'first_name', 'last_name', 'gender', 'date_of_birth', 'national_id', 'nationality', 'phone', 'alternative_phone', 'email', 'city', 'address', 'marital_status', 'occupation', 'blood_type', 'allergies', 'chronic_diseases', 'current_medications', 'family_history', 'insurance_provider', 'insurance_number', 'insurance_expires_at', 'emergency_contact_name', 'emergency_contact_phone', 'emergency_contact_relation', 'photo', 'notes', ]); $apptStatusMeta = [ 'scheduled' => ['label' => 'مجدول', 'color' => 'blue'], 'confirmed' => ['label' => 'مؤكد', 'color' => 'azure'], 'checked_in' => ['label' => 'حضر', 'color' => 'cyan'], 'completed' => ['label' => 'مكتمل', 'color' => 'green'], 'cancelled' => ['label' => 'ملغي', 'color' => 'red'], 'no_show' => ['label' => 'لم يحضر', 'color' => 'orange'], ]; $labStatusMeta = [ 'requested' => ['label' => 'مطلوب', 'color' => 'blue'], 'in_progress' => ['label' => 'قيد التنفيذ', 'color' => 'yellow'], 'completed' => ['label' => 'مكتمل', 'color' => 'green'], 'cancelled' => ['label' => 'ملغي', 'color' => 'red'], ]; @endphp @section('content')
{{ $patient->notes }}
لم تُحدَّد.
@endif{{ $patient->chronic_diseases ?: 'لا يوجد.' }}
{{ $patient->current_medications ?: 'لا يوجد.' }}