@foreach($feeCounts ?? [] as $fee) @endforeach
Total Patient {{$total}} Male {{$male}} Female {{$female}} New Patient {{$new}} Old Patient {{$old}} Appointment {{$appointment}}
Dialated {{$dialted}} Free {{$free}} Paid {{$paid}}₹{{ number_format((float) $fee->Amount, ((float) $fee->Amount == floor((float) $fee->Amount)) ? 0 : 2) }} {{ $fee->FeeCount }}
@php $i=1;@endphp @foreach($data as $result) @php $i++;@endphp @endforeach
Sr.No Date Amount
{{$i}} {{date("d/m/Y", strtotime(str_replace('-', '/',$result->InDate)))}} ₹{{number_format($result->Amount,2)}}
{{$i}} Total ₹{{number_format($totsum,2)}}