@extends('patient.layouts.app') @section('title','ملفي الشخصي') @section('tb-sub','إعدادات الحساب') @push('styles') @endpush @section('content') @php $p = $patient; $u = $patient->user; $apptCount = \App\Models\Appointment::where('patient_id',$p->id)->count(); $recordCount = \App\Models\MedicalRecord::where('patient_id',$p->id)->count(); $docCount = \App\Models\Appointment::where('patient_id',$p->id)->distinct('doctor_id')->count('doctor_id'); @endphp {{-- ══ Hero ══ --}}
{{ strtoupper(mb_substr($u->name,0,1)) }}
{{ $u->name }}
{{ $u->phone }}
@if($p->blood_type)🩸 {{ $p->blood_type }}@endif @if($p->gender){{ $p->gender==='male'?'👨 ذكر':'👩 أنثى' }}@endif @if($p->date_of_birth)🎂 {{ $p->date_of_birth->age }} سنة@endif
{{-- ══ Stats ══ --}}
{{ $apptCount }}
موعد
{{ $recordCount }}
زيارة
{{ $docCount }}
طبيب
{{-- ══ Quick Links ══ --}}
مواعيدي
{{ $apptCount }} موعد مسجل
سجلاتي الطبية
{{ $recordCount }} زيارة طبية
الإشعارات
عرض كل الإشعارات
{{-- ══ المعلومات الطبية ══ --}}
المعلومات الطبية
@if($p->chronic_diseases || $p->allergies || $p->current_medications)
@if($p->chronic_diseases)
⚠️
أمراض مزمنة
{{ $p->chronic_diseases }}
@endif @if($p->allergies)
🚨
الحساسية
{{ $p->allergies }}
@endif @if($p->current_medications)
💊
الأدوية الحالية
{{ $p->current_medications }}
@endif
@else
لا توجد معلومات طبية مضافة
@endif
{{-- ══ تعديل البيانات الشخصية ══ --}}
تعديل البيانات الشخصية
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
{{-- ══ تغيير كلمة المرور ══ --}}
تغيير كلمة المرور
@csrf @method('PUT')
{{-- ══ تسجيل الخروج ══ --}}
@csrf
@endsection @push('scripts') @endpush