@extends('doctor.layouts.app') @section('title','لوحة الطبيب') @section('page-title','لوحة التحكم') @section('content') {{-- إحصائيات --}}
{{ $stats['waiting'] }}
ينتظرون
{{ $stats['in_progress'] }}
قيد الفحص
{{ $stats['appointments'] }}
مواعيد اليوم
{{ $stats['completed'] }}
أنهوا اليوم
{{-- ══ المريض الحالي ══ --}}
@if($currentPatient)
المريض الحالي — رقم {{ $currentPatient->queue_number }}
{{ $currentPatient->patient->user->name }}
@if($currentPatient->patient->blood_type) {{ $currentPatient->patient->blood_type }} @endif @if($currentPatient->patient->chronic_diseases) {{ Str::limit($currentPatient->patient->chronic_diseases,40) }} @endif {{ $currentPatient->started_at?->format('H:i') }}
الملف الطبي
@csrf @method('PATCH')
@csrf
@else
لا يوجد مريض قيد الفحص حالياً
@if($stats['waiting'] > 0)
@csrf
@endif
@endif
{{-- ══ الطابور ══ --}}
الطابور الآن إدارة
@forelse($queue as $item)
{{ $item->queue_number }}
{{ $item->patient->user->name }}
@if($item->patient->blood_type) {{ $item->patient->blood_type }} @endif @if($item->patient->chronic_diseases) مزمن @endif {{ $item->arrived_at?->format('H:i') }}
@if($item->status==='waiting') ينتظر
@csrf @method('PATCH')
@elseif($item->status==='called') استُدعي @elseif($item->status==='in_progress') قيد الفحص @endif
@empty
الطابور فارغ
@endforelse
{{-- ══ مواعيد اليوم ══ --}}
مواعيد اليوم الكل
@forelse($todayAppointments as $appt)
{{ $appt->appointment_time }}
{{ $appt->patient->user->name }}
{{ $appt->reason ?? '—' }}
@if($appt->status === 'pending')
@csrf @method('PATCH')
@endif
@csrf
@empty
لا توجد مواعيد اليوم
@endforelse
@endsection @push('scripts') @endpush