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

Pharmacist Dashboard

Total Appointments

{{ $stats['appointments'] }}

Pending Appointments

{{ $stats['pending_appointments'] }}

Total Patients

{{ $stats['patients'] }}

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

Notifications

@csrf
@foreach($notifications as $notification)

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

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

Prescription #: {{ $notification->data['prescription_number'] ?? 'N/A' }}

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

@endif

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

@csrf
@endforeach
@endif
Create New Appointment View Prescriptions

Recent Appointments

@foreach($recentAppointments as $appointment) @endforeach
Patient Date Status
{{ $appointment->patient->full_name }} {{ $appointment->appointment_date->format('M d, Y H:i') }} {{ ucfirst($appointment->status) }}
@endsection