@extends('layouts.doctor') @section('title', 'Doctor Dashboard') @section('header', 'Medical Dashboard') @section('content')

Welcome, {{ $doctor->name }}

{{ $doctor->designation->name }} • {{ $doctor->department->name }}

{{ $doctor->doctor_code }} | Joined on {{ $doctor->joining_date ? $doctor->joining_date->format('M d, Y') : 'N/A' }}
Today
{{ str_pad($todayCount, 2, '0', STR_PAD_LEFT) }}
Total Appointments
{{ str_pad($calledTodayCount, 2, '0', STR_PAD_LEFT) }}
Patients Called
{{ str_pad($remainingTodayCount, 2, '0', STR_PAD_LEFT) }}
Remaining in Queue
@if($avgConsultationTime) {{ floor($avgConsultationTime / 60) }}m {{ round($avgConsultationTime % 60) }}s @else -- @endif
Avg. Consult Time

Today's Clinic

Live list of scheduled OPD appointments

System Live
@if($appointments->count() > 0)
@foreach($appointments as $app) @endforeach
Token & Time Patient Details Visit Nature Action
No {{ str_pad($app->token_number ?? 0, 2, '0', STR_PAD_LEFT) }}
{{ $app->visit_time }}
{{ $app->token_prefix ?: $app->uhid }}
{{ $app->full_name }}
{{ $app->gender }} • {{ $app->age }} Years
{{ $app->visit_nature ?: 'Standard' }} @if($app->is_calling) Now Calling @endif @if($app->status == 'completed' && $app->consultation_duration)
Time Taken: {{ floor($app->consultation_duration / 60) }}m {{ $app->consultation_duration % 60 }}s
@endif
@if($app->status == 'completed') Consulted @elseif(!$app->is_calling)
@csrf
@else
@csrf
@endif Clinical View
@else

No appointments scheduled today

Your clinic queue is currently empty.

@endif
@endsection