@extends('layout') @section('content') @php $s = $stats; @endphp

Hospital Management Dashboard

Sanjeevan Hospital — {{ $s['todayFormatted'] }}
Live Overview
Welcome, {{ $s['userName'] ?? 'User' }}
{{-- Row 1: OPD & Queue --}}
Today's OPD Overview
OPD Patients
{{ number_format($s['queueTotal']) }}
In queue today
Pending
{{ number_format($s['queuePending']) }}
{{ $s['queueDone'] }} completed
Appointments
{{ number_format($s['appointmentsToday']) }}
Scheduled today
Total Today
₹{{ number_format($s['todayCollection'], 0) }}
OPD + IPD
Total Patients
{{ number_format($s['totalPatients']) }}
{{ $s['totalDoctors'] }} consultants
OPD Payments (Today)
Cash Payment
₹{{ number_format($s['opdCashAmount'], 0) }}
{{ $s['opdCashCount'] }} receipt(s)
View →
Mobile Payment
₹{{ number_format($s['opdMobileAmount'], 0) }}
{{ $s['opdMobileCount'] }} receipt(s)
View →
Coupon Payment
₹{{ number_format($s['opdCouponAmount'], 0) }}
{{ $s['opdCouponCount'] }} receipt(s)
View →
OPD Total
₹{{ number_format($s['opdReceiptAmount'], 0) }}
{{ $s['opdReceiptCount'] }} receipt(s) all modes
View All →
{{-- Row 2: IPD & OT --}}
IPD & Operation Theatre
Active IPD
{{ number_format($s['activeIpd']) }}
{{ $s['ipdAdmittedToday'] }} admitted today
IPD Receipts
₹{{ number_format($s['ipdReceiptAmount'], 0) }}
{{ $s['ipdReceiptCount'] }} today
IPD Bills
₹{{ number_format($s['ipdBillAmount'], 0) }}
{{ $s['ipdBillCount'] }} bills today
OT Scheduled
{{ number_format($s['otScheduledToday']) }}
{{ $s['dischargeToday'] }} discharged today
{{-- Charts --}}
Monthly Revenue ({{ $s['monthlyRevenueChart']['year'] }})
Today's Queue Status
Monthly OPD Patient Visits ({{ $s['monthlyVisitsChart']['year'] }})
{{-- Tables --}}
Today's OPD Queue
@forelse($s['todayQueue'] as $row) @empty @endforelse
MRDPatientConsultantTimeStatus
{{ $row->MrdNo }} {{ $row->PatientName }} {{ $row->ConsultantName ?? '-' }} {{ $row->InTime ? date('h:i A', strtotime($row->InTime)) : '-' }} @if($row->Checked == 1)Done@elseWaiting@endif
No patients in queue today
Today's Appointments
@forelse($s['todayAppointments'] as $row) @empty @endforelse
MRDPatientTimeRefer ForConsultant
{{ $row->MrdNo }} {{ $row->PatientName }} {{ $row->AppTime ? date('h:i A', strtotime($row->AppTime)) : '-' }} {{ $row->ReferFor ?? '-' }} {{ $row->Consultant ?? '-' }}
No appointments today
Today's OT Schedule
@forelse($s['todayOtSchedule'] as $row) @empty @endforelse
MRDPatientOperation Planned
{{ $row->MrdNo }} {{ $row->PatientName }} {{ $row->OperationPlanned ?? '-' }}
No OT scheduled today
Today's OPD Receipts
@forelse($s['recentOpdReceipts'] as $row) @empty @endforelse
MRDPatientProcedureAmountMode
{{ $row->MrdNo }} {{ $row->PatientName }} {{ Str::limit($row->Procedures ?? '-', 30) }} ₹{{ number_format($row->Amount ?? 0, 0) }} {{ $row->PayMode ?? '-' }}
No OPD receipts today
@endsection @section('scriptcontent') @endsection