@extends('layouts.print') @section('title', 'Fee Report') @section('subtitle', 'Fee Report') @section('meta')
From: {{ \Illuminate\Support\Carbon::parse($from)->format('d M Y') }}   To: {{ \Illuminate\Support\Carbon::parse($to)->format('d M Y') }}
@endsection @section('content')
Total Patient Fee
{{ number_format($summary->total_fee, 2) }}
Total Received
{{ number_format($summary->total_received, 2) }}
Total Remaining
{{ number_format($summary->total_remaining, 2) }}
Total Discount
{{ number_format($summary->total_discount, 2) }}
@forelse($rows as $r) @empty @endforelse @if($rows->count()) @endif
SerialPatientVisit DateTypeFeeReceivedRemainingDiscountBalanceCity
{{ $r->serial }}{{ $r->name }} {{ \Illuminate\Support\Carbon::parse($r->date)->format('d M Y') }} {{ $r->type }} {{ number_format($r->patient_fee, 2) }} {{ number_format($r->received_fee, 2) }} {{ number_format($r->remaining_fee, 2) }} {{ number_format($r->discount_fee, 2) }} {{ ucfirst($r->balance_type ?? '—') }} {{ $r->city ?? '—' }}
No fee records in this range.
Total ({{ $summary->count }}){{ number_format($summary->total_fee, 2) }}{{ number_format($summary->total_received, 2) }}{{ number_format($summary->total_remaining, 2) }}{{ number_format($summary->total_discount, 2) }}
@if($payments->count())

Remaining Payments Received

@foreach($payments as $pay) @endforeach
Payment DatePatientAmount
{{ $pay->payment_date->format('d M Y') }}{{ $pay->patient->name ?? '—' }}{{ number_format($pay->payment_amount, 2) }}
Total{{ number_format($payments->sum('payment_amount'), 2) }}
@endif @endsection