@extends('layouts.branch') @section('title', 'Revenue Dashboard') @section('header', 'Revenue Dashboard') @section('content')
@include('partials.branch._breadcrumbs', [ 'breadcrumbs' => [ ['name' => 'Revenue Dashboard', 'url' => route('branch.revenue.index')] ] ])
Reset

Total Combined Revenue

₹{{ number_format($totalRevenue, 2) }}

OPD Registry {{ number_format($opdCount) }} Visits

₹{{ number_format($totalOpdRevenue, 2) }}

IPD Charges

₹{{ number_format($totalIpdCharges, 2) }}

Admissions {{ number_format($admissionCount) }} Admits

₹{{ number_format($totalIpdAdvances, 2) }}

Payments

₹{{ number_format($consolidatedCollections, 2) }}

Outstanding

₹{{ number_format($totalIpdOutstanding, 2) }}

Revenue Trend

@if($fromDate && $toDate)

Collections from {{ \Carbon\Carbon::parse($fromDate)->format('d M') }} to {{ \Carbon\Carbon::parse($toDate)->format('d M') }}

@else

Daily collections over last {{ $days }} days

@endif

Revenue Mix

Service distribution

OPD Registry
{{ number_format(($totalOpdRevenue / max($totalRevenue, 1)) * 100, 1) }}%
IPD Services
{{ number_format(($totalIpdCharges / max($totalRevenue, 1)) * 100, 1) }}%
@push('scripts') @endpush @endsection