@extends('layouts.app') @section('content')

Doctor Portal

Welcome, Dr. {{ auth()->user()->name }}

Calendar Availability
Today's Appointments

{{ $todayAppointments->count() }}

Upcoming

{{ $upcomingCount }}

Completed

{{ $completedCount }}

Patients

{{ $patientCount }}

Today's Schedule
@forelse($todayAppointments as $appointment) @empty @endforelse
TimePatientTypeStatusReason
{{ $appointment->start_time }} - {{ $appointment->end_time }} {{ $appointment->patient?->user?->name }} {{ ucfirst($appointment->consultation_type) }} {{ ucfirst($appointment->status) }} {{ $appointment->reason ?: '-' }}
No appointments today.
Upcoming Schedule
@forelse($calendarAppointments->where('appointment_date', '>=', today()) as $appointment) @empty @endforelse
DateTimePatientStatus
{{ $appointment->appointment_date?->format('d M Y') }}{{ $appointment->start_time }}{{ $appointment->patient?->user?->name }}{{ ucfirst($appointment->status) }}
No upcoming appointments.
@endsection