@php $i=1; @endphp @foreach($data as $result) @php $i++;@endphp @endforeach
Sr.No Date Receipt No Expenses Amount Payment Mode
{{$i}} {{date("d/m/Y", strtotime(str_replace('-', '/',$result->CreatedDate)))}} {{$result->id}} {{$result->Narration}} ₹{{number_format($result->Amount,2)}} {{$result->PayMode}}
{{$i}} Total ₹{{number_format($sum,2)}}