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

Admin Dashboard

Total Doctors

{{ $stats['doctors'] }}

Verified Doctors

{{ $stats['verified_doctors'] }}

Pending Doctors

{{ $stats['pending_doctors'] }}

Branches

{{ $stats['branches'] }}

Total Prescriptions

{{ $stats['prescriptions'] }}

Total Appointments

{{ $stats['appointments'] }}

Pending Appointments

{{ $stats['pending_appointments'] }}

Total Patients

{{ $stats['patients'] }}

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

Recent Notifications

View All
@csrf
@foreach($notifications as $notification)
@if(isset($notification->data['type']) && $notification->data['type'] === 'doctor_registration') @else @endif

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

@if(isset($notification->data['type']) && $notification->data['type'] === 'doctor_registration')

Doctor: {{ $notification->data['doctor_name'] ?? 'N/A' }}

@elseif(isset($notification->data['type']) && $notification->data['type'] === 'prescription_created')

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

@endif

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

@csrf
@endforeach
@endif
@endsection