@extends('admin.layouts.master') @section('title') عرض بيانات الدكتور @endsection @section('content') @php $profile = $doctor->doctorProfile; @endphp
{{-- Avatar بسيط باسم الدكتور --}} Doctor Avatar

{{ $doctor->name }}

{{ $profile?->specialty?->name ?? 'بدون تخصص محدد' }}

العيادة: {{ $doctor->clinic?->name ?? '-' }}
الفرع: {{ $doctor->branch?->name ?? '-' }}

الحالة: @if($doctor->is_active) نشط @else غير نشط @endif


البريد: {{ $doctor->email }}
الجوال: {{ $doctor->phone ?? '-' }}

تاريخ التسجيل: {{ $doctor->created_at?->format('Y-m-d') }}


تعديل بيانات الدكتور
{{-- Tab المواعيد --}}
@if($profile && $appointments->count())
@foreach($appointments as $app) @endforeach
# المريض التاريخ الوقت الحالة
{{ $app->id }} {{ $app->patient?->first_name ?? '-' }} {{ $app->appointment_date }} {{ $app->start_time }} {{ $app->status }}
{{-- Pagination للمواعيد --}}
{{ $appointments->links() }}
@else

لا توجد مواعيد مسجلة لهذا الطبيب.

@endif
{{-- Tab الزيارات --}}
@if($profile && $visits->count())
@foreach($visits as $visit) @endforeach
# المريض تاريخ الزيارة الحالة
{{ $visit->id }} {{ $visit->patient?->first_name ?? '-' }} {{ $visit->visit_date }} {{ $visit->status ?? '-' }}
{{-- Pagination للزيارات --}}
{{ $visits->links() }}
@else

لا توجد زيارات مسجلة لهذا الطبيب.

@endif
{{-- Tab الروشتات --}}
@if($profile && $prescriptions->count())
@foreach($prescriptions as $rx)
روشتة رقم #{{ $rx->id }}
{{ $rx->created_at->format('Y-m-d H:i') }} — للمريض: {{ $rx->patient?->first_name ?? $rx->patient?->name ?? '-' }}
طباعة
{!! nl2br(e($rx->notes)) !!}
{{-- لو عندك items للروشتة --}} @if($rx->items && $rx->items->count())
الأدوية:
    @foreach($rx->items as $item)
  • {{ $item->name ?? $item->medication->name ?? '—' }}
    @if($item->dosage) الجرعة: {{ $item->dosage }}
    @endif @if($item->instructions) {{ $item->instructions }} @endif
  • @endforeach
@endif
@endforeach
{{-- Pagination للروشتات --}}
{{ $prescriptions->links() }}
@else

لا توجد روشتات مسجلة لهذا الطبيب.

@endif
@endsection