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

Clinical & Operational Dashboard

Real-time status for Swapnapuri Nursing Home • {{ now()->format('l, F j, Y') }}

Patients Registered
{{ number_format($totalPatients) }}
+{{ $todayRegistrations }} registered today
Today's OPD Queue
{{ $todayOpdVisits }}
{{ $waitingOpd }} Waiting • {{ $completedOpd }} Completed
Bed Occupancy Rate
{{ $occupancyRate }}%
{{ $occupiedBeds }} Occupied of {{ $totalBeds }} ({{ $availableBeds }} Free)
Today's Collection
₹{{ number_format($totalTodayCollection, 2) }}
Hospital: ₹{{ number_format($todayHospitalPayments, 0) }} • Pharm: ₹{{ number_format($todayPharmacySales, 0) }}
Pending Laboratory Orders
{{ $pendingLabOrders }} in process
View LIS →
Low Stock Medicines
{{ $lowStockCount }} items alert
Restock →
Near-Expiry Batches (60 Days)
{{ $nearExpiryCount }} batches
FEFO Enabled

Current Inpatient Census ({{ $activeAdmissions }})

Visual Bed Matrix →
@forelse($recentAdmissions as $adm) @empty @endforelse
Patient / ID Bed & Ward Doctor Admitted On Action
{{ $adm->patient->full_name }}
{{ $adm->patient->patient_id }}
{{ $adm->bed->bed_number }}
{{ $adm->bed->ward->name }}
{{ $adm->primaryDoctor->full_name }}
{{ $adm->admission_date->format('d/m/Y h:i A') }} View File
No inpatients currently admitted.

Recently Registered Patients

All Patients →
@forelse($recentPatients as $p) @empty @endforelse
Patient ID Name Age / Gender Mobile Action
{{ $p->patient_id }} {{ $p->full_name }} {{ $p->age }} yrs • {{ $p->gender }} ({{ $p->blood_group }}) {{ $p->mobile }} EMR Card
No patients registered yet.

Security & Operational Audit Feed

Full Audit Trail →
@foreach($recentAuditLogs as $log)
{{ $log->module }} {{ $log->created_at->diffForHumans() }}
{{ $log->action }}
User: {{ $log->user->name ?? 'System' }} {{ $log->ip_address }}
@endforeach
@endsection