@extends('secretary.layouts.app') @section('title', 'الاستقبال') @section('page-title', 'لوحة الاستقبال') @section('content') {{-- إحصائيات --}}
{{ $stats['waiting'] }}
ينتظرون
{{ $stats['in_progress'] }}
عند الطبيب
{{ $stats['appointments'] }}
مواعيد اليوم
{{ $stats['completed'] }}
أنهوا اليوم
{{-- بحث مريض --}}
بحث سريع عن مريض مريض جديد
{{-- الطابور --}}
طابور اليوم إدارة الطابور
@forelse($queue as $item)
{{ $item->queue_number }}
{{ $item->patient->user->name }}
{{ $item->arrived_at?->format('H:i') }} @if($item->estimated_wait_minutes) · ~{{ $item->estimated_wait_minutes }} د @endif
@if($item->status==='waiting') ينتظر @elseif($item->status==='in_progress') عند الطبيب @elseif($item->status==='called') استُدعي @endif
@csrf @method('DELETE')
@empty
الطابور فارغ
@endforelse
{{-- مواعيد اليوم --}} @if($todayAppointments->count())
مواعيد اليوم المحجوزة
@foreach($todayAppointments as $appt) @endforeach
الوقتالمريضسبب الزيارةالحالةإجراء
{{ $appt->appointment_time }}
{{ $appt->patient->user->name }}
{{ $appt->patient->user->phone }}
{{ $appt->reason ?? '—' }} @if($appt->status==='confirmed') مؤكد @else بانتظار @endif
@csrf
@endif
@endsection @push('scripts') @endpush