@extends('layouts.app') @section('title', 'Doctor Dashboard') @section('content')
Total Appointments
{{ $stats['appointments'] }}
Pending Appointments
{{ $stats['pending_appointments'] }}
Prescriptions
{{ $stats['prescriptions'] }}
{{ $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' }}
{{ $notification->created_at->diffForHumans() }}
| 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 PrescriptionCreate @else View PrescriptionView @endif |