Back
@if($settings->logo_path) Hospital Logo @else
M
@endif

{{ $branch->name }}

{{ $branch->address }}

Ph: {{ $branch->phone_number }} | Email: {{ $branch->email }}

Financial Statement

Statement Generated On

{{ now()->format('d M, Y h:i A') }}

Patient Name

{{ $registration->full_name }}

UHID / IPD No

{{ $registration->uhid }} / {{ $registration->ipd_number }}

Admission Date

{{ $registration->admission_date->format('d M, Y') }}

Room / Bed

{{ $registration->bed?->room?->room_number }} / {{ $registration->bed?->bed_number }}

@php $runningBalance = 0; $totalDr = 0; $totalCr = 0; @endphp @foreach($ledger as $entry) @php if ($entry['type'] === 'charge') { $runningBalance += $entry['amount']; $totalDr += $entry['amount']; } else { $runningBalance -= $entry['amount']; $totalCr += $entry['amount']; } @endphp @endforeach
Date Particulars Reference Debit (₹) Credit (₹) Balance (₹)
{{ $entry['date']->format('d/m/Y') }} {{ $entry['description'] }} {{ $entry['reference'] }} {{ $entry['type'] === 'charge' ? number_format($entry['amount'], 2) : '-' }} {{ $entry['type'] === 'payment' ? number_format($entry['amount'], 2) : '-' }} {{ number_format(abs($runningBalance), 2) }} {{ $runningBalance > 0 ? 'Dr' : 'Cr' }}

Total Charges

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

Total Paid

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

Net Balance

₹{{ number_format(abs($runningBalance), 2) }} {{ $runningBalance > 0 ? 'Dr' : 'Cr' }}

{{ $runningBalance > 0 ? 'Outstanding Amount Payable to Hospital' : 'Credit Balance - Refundable/Adjustable' }}

Authorized Signatory

{{ auth()->guard('branch')->user()->name }}

Computer Generated Report

Generated On: {{ now()->format('d/m/Y H:i') }}