@extends('layouts.app') @section('title', 'Doctor Dashboard') @section('content')

Doctor Dashboard

Availability Profile

Total Appointments

{{ $stats['appointments'] }}

Pending Appointments

{{ $stats['pending_appointments'] }}

Prescriptions

{{ $stats['prescriptions'] }}

@if($notifications->count() > 0)

Notifications

@csrf
@foreach($notifications as $notification)

{{ $notification->data['message'] ?? 'New notification' }}

@if(isset($notification->data['appointment_id']))

Patient: {{ $notification->data['patient_name'] ?? 'N/A' }} | Type: {{ $notification->data['consultation_type'] ?? 'N/A' }}

View Appointment @if(isset($notification->data['appointment_id'])) Join Video Call @endif
@endif

{{ $notification->created_at->diffForHumans() }}

@csrf
@endforeach
@endif

Recent Appointments

@foreach($recentAppointments as $appointment) @endforeach
Patient Date Status Actions
{{ $appointment->patient->full_name }} {{ $appointment->appointment_date->format('M d, Y H:i') }} {{ ucfirst($appointment->status) }} @if($appointment->status !== 'completed') Create @else View @endif
@endsection