@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->CreatedDate)))}} ₹{{number_format($result->Amount,2)}}
{{$i}} Total ₹{{number_format($totsum,2)}}