@extends(session('staff_logged_in') ? 'Staff.layout' : 'Admin.layout') @section('content')
Vasantha Clinic Dashboard
Total Patients

{{ number_format($totalPatients ?? 0) }}


This Week {{ number_format($thisWeekPatients ?? 0) }}
Last Week {{ number_format($lastWeekPatients ?? 0) }}
Appointments

{{ number_format($appointments ?? 0) }}


Completed 0
Pending 0
Total Follow Ups

{{ number_format($totalFollowUps ?? 0) }}


Today {{ number_format($todayFollowUps ?? 0) }}
Tomorrow {{ number_format($tomorrowFollowUps ?? 0) }}
Total Products

{{ number_format($totalProducts ?? 0) }}


Low Stock {{ number_format($lowStockProducts ?? 0) }}
Out of Stock {{ number_format($outOfStockProducts ?? 0) }}

Total Doctors

{{ number_format($totalDoctors ?? 0) }}

Total Staffs

{{ number_format($totalStaffs ?? 0) }}

Total Treatments

{{ number_format($totalTreatments ?? 0) }}

Total Reviews

{{ number_format($totalReviews ?? 0) }}

@php $upcomingFollowUps = $upcomingFollowUps ?? collect([ (object) ['patient_name' => 'John', 'follow_up_date' => '12/12/2026'], (object) ['patient_name' => 'Kumar', 'follow_up_date' => '12/12/2026'], (object) ['patient_name' => 'David', 'follow_up_date' => '12/12/2026'], ]); $lowStockMedicines = $lowStockMedicines ?? collect([ (object) ['product_name' => 'Paracetamol', 'stock' => 5], (object) ['product_name' => 'Syringe', 'stock' => 8], (object) ['product_name' => 'Cotton Roll', 'stock' => 2], ]); $expiringMedicines = $expiringMedicines ?? collect([ (object) ['product_name' => 'Amoxicillin', 'expiry_date' => '20-Jul-2026'], (object) ['product_name' => 'Cough Syrup', 'expiry_date' => '30-Jul-2026'], ]); $recentPatients = $recentPatients ?? collect([ (object) ['patient_name' => 'John', 'phone' => '9876543210', 'last_visit' => '11/11/2025'], (object) ['patient_name' => 'Kumar', 'phone' => '9123456789', 'last_visit' => '11/11/2025'], ]); @endphp
{{-- Upcoming Follow-ups --}}
Upcoming Follow-ups
@forelse($upcomingFollowUps as $followUp) @empty @endforelse
Patient Date
{{ $followUp->patient_name }} {{ $followUp->follow_up_date }}
No upcoming follow-ups
{{-- Low Stock Medicines --}}
Low Stock Medicines
@forelse($lowStockMedicines as $medicine) @empty @endforelse
Product Stock
{{ $medicine->product_name }} {{ $medicine->stock }}
No low stock medicines
{{-- Expiring Medicines --}}
Expiring Medicines
@forelse($expiringMedicines as $medicine) @empty @endforelse
Product Expiry
{{ $medicine->product_name }} {{ $medicine->expiry_date }}
No medicines expiring soon
{{-- Recent Patients --}}
Recent Patients
@forelse($recentPatients as $recentPatient) @empty @endforelse
Patient Mobile Last Visit
{{ $recentPatient->patient_name }} {{ $recentPatient->phone }} {{ $recentPatient->last_visit }}
No recent patients
@endsection