@extends('layouts.app') @section('title', 'Hospital Analytics & Reports') @section('content')

Hospital Analytics & Clinical Census

Comprehensive operational and financial intelligence for Swapnapuri Nursing Home

From: To:
Total Hospital Revenue
₹{{ number_format($totalRevenue, 2) }}
Billing + Pharmacy Collections
OPD Consultations
{{ $opdVisitsCount }}
Walk-ins & Appointments
IPD Admissions & Discharges
{{ $ipdAdmissionsCount }} / {{ $dischargesCount }} disc
Inpatient clinical throughput
Laboratory Orders
{{ $labOrdersCount }}
Diagnostic investigations run
Financial Revenue Breakdown Settled Collections
Hospital Invoices & Services Collection ₹{{ number_format($hospitalPayments, 2) }}
@php $hospPct = $totalRevenue > 0 ? round(($hospitalPayments / $totalRevenue) * 100, 1) : 0; @endphp
{{ $hospPct }}% of total collection
Central Pharmacy POS Receipts ₹{{ number_format($pharmacySales, 2) }}
@php $pharmPct = $totalRevenue > 0 ? round(($pharmacySales / $totalRevenue) * 100, 1) : 0; @endphp
{{ $pharmPct }}% of total collection
Doctor Consultation Workload {{ $startDate }} to {{ $endDate }}
@foreach($doctorOpdCounts as $doc) @php $docPct = $opdVisitsCount > 0 ? round(($doc->opd_visits_count / $opdVisitsCount) * 100, 1) : 0; @endphp @endforeach
Consultant Doctor Department Consultations Share (%)
{{ $doc->full_name }} {{ $doc->department->name ?? 'Clinical' }} {{ $doc->opd_visits_count }} {{ $docPct }}%
@endsection