{{-- Receipt lookup: is this money receipt present in manager recharge? --}}
@if (!is_null($receiptMatches))
{{-- What the payment side knows: does this receipt/TRX exist at all? --}}
@if (!is_null($receiptPayments) && $receiptPayments->isNotEmpty())
| Customer Payment |
| Payment ID |
Date |
Client ID |
Manager |
TRX ID / Money Receipt |
Amount |
@foreach ($receiptPayments as $payment)
| {{ $payment->id }} |
{{ $payment->created_at ? \Carbon\Carbon::parse($payment->created_at)->format('d-M-Y h:i A') : '' }}
|
{{ $payment->client_id }}
|
{{ $payment->reseller_name ?? '' }} |
{{ $payment->trx_id }}
{{ $payment->money_receipt_number }}
|
{{ number_format($payment->paid_amount, 2) }} |
@endforeach
@endif
@if ($receiptMatches->isEmpty())
@if (!is_null($receiptPayments) && $receiptPayments->isNotEmpty())
{{ $receiptSearch }} was paid by the customer but
never recharged to the manager.
It is listed in the report below when the date range covers
{{ \Carbon\Carbon::parse($receiptPayments->first()->created_at)->format('d-M-Y') }}.
@else
No customer payment and no manager recharge found for
{{ $receiptSearch }}. Please check the money receipt / TRX ID.
@endif
@else
Found {{ $receiptMatches->count() }} manager recharge record(s) for
{{ $receiptSearch }}.
| Recharge ID |
Date |
Manager |
Amount |
Matched On |
@foreach ($receiptMatches as $match)
| {{ $match->id }} |
{{ $match->created_at ? \Carbon\Carbon::parse($match->created_at)->format('d-M-Y h:i A') : '' }}
|
{{ $match->reseller_name ?? ('Manager #' . $match->reseller_id) }} |
{{ number_format($match->amount, 2) }} |
@if ($match->txn_id)
{{ $match->txn_id }}
@endif
@if ($match->payment_gateway_transaction_id)
{{ $match->payment_gateway_transaction_id }}
@endif
|
@endforeach
@endif
@endif
{{-- Filters --}}
@if (is_null($payments))
Select a From Date and To Date, then press Search to load the
report.
@else
{{-- Summary --}}
Total Payment: {{ $totalCount }}
Total Amount: {{ number_format($totalAmount, 2) }}
TK
{{ $from_date }} to {{ $to_date }}
@if ($totalCount > 0)
Download Excel
@endif
| # |
Create Date |
TRX ID |
Client ID |
Manager |
Amount |
@forelse ($payments as $index => $payment)
| {{ $payments->firstItem() + $index }} |
{{ $payment->created_at ? \Carbon\Carbon::parse($payment->created_at)->format('d-M-Y h:i A') : '' }}
|
{{ $payment->trx_id }} |
{{ $payment->client_id }}
|
{{ $payment->reseller_name ?? '' }} |
{{ number_format($payment->paid_amount, 2) }} |
@empty
|
No unrecharged online payment found for this date range.
|
@endforelse
{{ $payments->links() }}
@endif