@extends('layout.app') @section('content')

Online Payment But Not Recharged In Manager

{{-- Receipt lookup: is this money receipt present in manager recharge? --}}
Reset
@if (!is_null($receiptMatches)) {{-- What the payment side knows: does this receipt/TRX exist at all? --}} @if (!is_null($receiptPayments) && $receiptPayments->isNotEmpty())
@foreach ($receiptPayments as $payment) @endforeach
Customer Payment
Payment ID Date Client ID Manager TRX ID / Money Receipt Amount
{{ $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) }}
@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 }}.
@foreach ($receiptMatches as $match) @endforeach
Recharge ID Date Manager Amount Matched On
{{ $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
@endif
@endif {{-- Filters --}}
Reset
@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
@forelse ($payments as $index => $payment) @empty @endforelse
# Create Date TRX ID Client ID Manager Amount
{{ $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) }}
No unrecharged online payment found for this date range.
{{ $payments->links() }} @endif
@endsection