@extends('layouts.admin') @section('title', 'Doctor Allocation') @section('page', 'doctor-allocation') @section('content')

Doctor Allocation

Review outside/self-booked appointments and assign each patient to the appropriate department and doctor.

PATIENT SELF-BOOKINGS LIVE INGESTION
{{ $pending->count() }} Allocation Needed

Self-Booked Appointments & Doctor Allocation

Patients booking via the self-portal or coming from outside staff appear here. Assign them to a department and doctor to push them directly into the doctor's schedule.

@forelse($pending as $a)
{{ $a->patient->full_name }} @if($a->diagnosis){{ $a->diagnosis->name }}@endif Pending Allocation
{{ $a->appointment_date->format('Y-m-d') }} @if($a->appointment_time)· {{ \Illuminate\Support\Carbon::parse($a->appointment_time)->format('h:i A') }}@endif {{ $a->patient->phone }} @if($a->patient->whatsapp) WhatsApp@endif {{ $a->code }}
@if($a->reason || $a->special_requests)[{{ ucfirst($a->booking_source) }} Booking] {{ $a->reason }}@if($a->special_requests) · {{ $a->special_requests }}@endif@endif
@csrf @method('PUT') Assign To:
@empty
No appointments awaiting allocation.
@endforelse
What happens after allocation?The patient is attached to the selected doctor and the booking is pushed into the doctor's schedule automatically.
Allocation Activity
Recently assigned bookings.
@forelse($activity as $a) @empty @endforelse
PatientBookingDepartmentDoctorStatusAction
{{ $a->patient->full_name }} {{ $a->code }}
{{ $a->appointment_date->format('Y-m-d') }}
{{ $a->department?->name ?? '—' }} {{ $a->doctor?->name ?? '—' }} {{ strtoupper(str_replace('_',' ',$a->status)) }}
No allocation completed yet.
@endsection