@extends('admin.layouts.master') @section('css') @endsection @section('title') عرض بيانات العميل @endsection @section('content')
تعديل بيانات المريض
بيانات المريض
تعديل بيانات المريض
{{ $patient->code }}
{{ $patient->first_name }} {{ $patient->last_name }}
{{ $patient->phone }}
{{ $patient->phone_alt ?: '-' }}
@if($patient->gender === 'male') ذكر @elseif($patient->gender === 'female') أنثى @else - @endif
{{ $patient->birth_date ?: '-' }}
{{ $patient->address ?: '-' }}
{{ $patient->notes ?: '-' }}
@if($patient->medicalRecord)
الملف الطبي
{{ $patient->medicalRecord->blood_type ?: '-' }}
{{ $patient->medicalRecord->allergies ?: '-' }}
{{ $patient->medicalRecord->chronic_diseases ?: '-' }}
@endif
المواعيد
{{-- فورم حجز موعد جديد للمريض --}} {{-- فورم حجز موعد جديد للمريض --}}
@csrf
{{-- جدول المواعيد --}}
@forelse($patient->appointments->sortByDesc('appointment_date') as $appointment) @empty @endforelse
# التاريخ الوقت الطبيب الحالة
{{ $appointment->id }} {{ $appointment->appointment_date }} {{ $appointment->start_time }} {{ $appointment->doctor?->user?->name }} {{ $appointment->status }}
لا توجد مواعيد مسجلة لهذا المريض.
إضافة زيارة جديدة للمريض
@csrf
{{-- خطط العلاج --}}
@if($patient->treatmentPlans?->count())
@foreach($patient->treatmentPlans as $plan) @php $status = $plan->status; $badgeClass = match($status) { 'draft' => 'secondary', 'ongoing' => 'warning', 'completed'=> 'success', 'cancelled'=> 'danger', default => 'secondary', }; @endphp @endforeach
# العنوان الطبيب الحالة تاريخ الإنشاء إجراءات
{{ $plan->id }} {{ $plan->title ?? '-' }} {{ $plan->doctor?->user?->name ?? '-' }} {{ $plan->status }} {{ $plan->created_at?->format('Y-m-d') }} عرض الخطة
@else

لا توجد خطط علاج لهذا المريض.

@endif
الروشتات الطبية
{{-- فورم روشتة جديدة (سريعة) --}}
@csrf @if($patient->visits->count())
@endif
{{-- جدول كل الروشتات السابقة --}}
@forelse($patient->prescriptions->sortByDesc('created_at') as $prescription)
روشتة رقم #{{ $prescription->id }}
{{ $prescription->created_at->format('Y-m-d H:i') }} — د. {{ $prescription->doctor?->user?->name }}
طباعة
{!!$prescription->notes !!}
{{-- لو فيه items وادوية --}} @if($prescription->items->count())
الأدوية:
    @foreach($prescription->items as $item)
  • {{ $item->medication->name ?? '—' }}
    {{ $item->instructions }}
  • @endforeach
@endif
@empty
لا توجد روشتات مسجلة لهذا المريض.
@endforelse
فواتير المريض
كل الفواتير
@php $i = 1; @endphp @forelse($patient->invoices as $invoice) @php $remaining = max($invoice->total - $invoice->paid_amount, 0); @endphp @empty @endforelse
# رقم الفاتورة التاريخ الإجمالي المدفوع المتبقي الحالة دفع عرض
{{ $i++ }} {{ $invoice->invoice_number }} {{ $invoice->date->format('Y-m-d') }} {{ number_format($invoice->total, 2) }} {{ number_format($invoice->paid_amount, 2) }} {{ number_format($remaining, 2) }} @switch($invoice->status) @case('unpaid') غير مدفوعة @break @case('partial') مدفوعة جزئياً @break @case('paid') مدفوعة بالكامل @break @case('refunded') مسترجعة @break @endswitch @if($remaining > 0)
@csrf
@else لا يوجد متبقي @endif
عرض
لا توجد فواتير لهذا المريض حتى الآن.
الملفات والمرفقات
@csrf
{{-- جدول المرفقات --}}
@forelse($patient->attachments->sortByDesc('created_at') as $attachment) @empty @endforelse
# الملف النوع الوصف التاريخ إجراءات
{{ $attachment->id }} عرض الملف {{ $attachment->file_type ?: '-' }} {{ $attachment->description ?: '-' }} {{ $attachment->created_at->format('Y-m-d H:i') }}
@csrf @method('DELETE')
لا توجد مرفقات لهذا المريض.
@endsection @section('js') @endsection