@extends('layouts.admin') @section('styles') @endsection @section('content')

UTR Report

--- Advance & Payment History ---
@php // prd($UtrData); $i = 0; @endphp @if(isset($UtrData) && !empty($UtrData)) @foreach($UtrData as $utrs) @endforeach @endif
Sr. No. UTR No. Date Transcode Beneficiary Name Bank Name Account No IFSC Amount Purpose Of Payment
{{ ++$i }} {{ $utrs->{'UTR No'} ?? '' }} {{ date('d-m-Y',strtotime($utrs->{'UTR Date'})) ?? '' }} {{ $utrs->{'NTA Transcode'} ?? ''}} {{ $utrs->{'BeneficiaryName'} ?? ''}} {{ $utrs->{'BankName'} ?? ''}} {{ $utrs->{'AccountNo'} ?? '' }} {{ $utrs->{'IFSC'} ?? ''}} {{ $utrs->{'Amount'} ?? '' }} {{ $utrs->{'Description'} ?? '' }}
--- Payment Recovery History ---
@php // Extract unique TnxNo values $TnxNo = collect($UtrData) ->pluck('TnxNo') ->unique() ->sort() ->values() ->toArray() ?? []; $i = 0; @endphp @if(isset($UtrData) && !empty($UtrData)) @foreach($TnxNo as $tnx) @php // Get the group of records for each unique TnxNo $utrsGroup = collect($UtrData)->where('TnxNo', $tnx); // prd($utrsGroup) @endphp @if(isset($utrsGroup) && !empty($utrsGroup[0])) @foreach($utrsGroup as $utrs) @if($utrs->{'TnxNo'}) @if($loop->first) @endif @endif @endforeach @endif @endforeach @endif
Sr. No. Transaction No. Transaction Date Beneficiary Name Bank Name Account No IFSC Amount To Be Paid Amount Paid To NTA Remarks Attachment
{{ ++$i }} {{ $utrs->{'TnxNo'} ?? '' }} {{ date('d-m-Y', strtotime($utrs->{'TnxDate'})) ?? '' }} {{ $utrs->{'BeneficiaryNamePaid'} ?? '' }} {{ $utrs->{'BankNamePaid'} ?? '' }} {{ $utrs->{'AccountNoPaid'} ?? '' }} {{ $utrs->{'IFSCPaid'} ?? '' }} {{ $utrsGroup->sum('AmountToBePaid') ?? '' }} {{ $utrsGroup->sum('AmountPaid') ?? '' }} {{ $utrs->{'Remarks'} ?? '' }} @if($utrs->{'Attachment'}) @endif
@endsection