@extends('layouts.branch') @section('title', 'IPD Charges Report') @section('header', 'IPD Charges Report') @section('content')
@include('partials.branch._breadcrumbs', [ 'breadcrumbs' => [ ['name' => 'Reports', 'url' => route('branch.reports.index')], ['name' => 'IPD Charges Report', 'url' => route('branch.reports.ipd-charges')] ] ])

Total IPD Charge Records: {{ number_format($totalCount) }}

@forelse($charges as $charge) @empty @endforelse @if($charges->count() > 0) @endif
Date UHID IPD No. Patient Charge Details Amount
{{ $charge->date->format('d M, y') }} {{ $charge->patient->uhid }} {{ $charge->ipdRegistration->ipd_number }}

{{ $charge->patient->name }}

{{ $charge->chargeType->name }}

{{ $charge->note ?? 'No notes' }}

{{ number_format($charge->amount, 2) }}

No charges found

Grand Total IPD Charges ₹{{ number_format($grandTotal, 2) }}
@if($charges->hasPages())
{{ $charges->appends(request()->query())->links() }}
@endif
@endsection