My Wallet

{$wallet = $customer->Wallet;}

₦{number_format($wallet, 2, '.', ',')}

Your current balance

Fund your wallet

Please choose or enter an amount to continue.

@csrf; @method('@fundWallet');
Amount you desire to fund.

Transaction History

{$wallet = app('query')->getCustomerWalletTransactions();}
@if (count($wallet) == 0)
No payment transaction history found
@else @foreach ($wallet as $row) {$amount = doubleval($row->debit) > 0 ? doubleval($row->debit) : doubleval($row->credit);} @endfor
Date Remark Amount Status
{$row->datecreated} {ucfirst($row->remark)}₦{number_format($amount, 2, '.', ',')} @if (strpos('failed', $row->remark)) Failed @else @if (doubleval($row->debit) > 0) Debit @else Credit @endif @endif
@endif
@partial('main-footer', ['message' => $message]);