Dashboard Mutasi Wallet
Rp. {{ number_format($total_wallet, 2, ',', '.') }}
Rp. {{ number_format($total_pending_disbursement, 2, ',', '.') }}
Rp. {{ number_format($total_balance, 2, ',', '.') }}
@php $keluar_pembelian = empty($wallet_type_trx[5]) ? 0 : $wallet_type_trx[5]->total_nominal; $keluar_withdraw = empty($wallet_type_trx[2]) ? 0 : $wallet_type_trx[2]->total_nominal; $keluar_correction = empty($wallet_type_trx[3]) ? 0 : $wallet_type_trx[3]->total_nominal; $keluar_total = $keluar_pembelian + $keluar_withdraw + $keluar_correction; $keluar_withdraw_processing = $total_withdrawal_processing; // Pembelian & Correction processing belum ada data sumbernya, hardcode 0 $keluar_processing_total = $keluar_withdraw_processing; $keluar_grand_total = $keluar_total + $keluar_processing_total; $masuk_jual = empty($wallet_type_trx[7]) ? 0 : $wallet_type_trx[7]->total_nominal; $masuk_topup = (empty($wallet_type_trx[1]) ? 0 : $wallet_type_trx[1]->total_nominal) + (empty($wallet_type_trx[13]) ? 0 : $wallet_type_trx[13]->total_nominal) + (empty($wallet_type_trx[14]) ? 0 : $wallet_type_trx[14]->total_nominal); $masuk_correction = (empty($wallet_type_trx[4]) ? 0 : $wallet_type_trx[4]->total_nominal) + (empty($wallet_type_trx[16]) ? 0 : $wallet_type_trx[16]->total_nominal) + (empty($wallet_type_trx[17]) ? 0 : $wallet_type_trx[17]->total_nominal); $masuk_total = $masuk_jual + $masuk_topup + $masuk_correction; $rp = function($v) { return 'Rp. ' . number_format($v, 0, ',', '.'); }; @endphp
WALLET KELUAR - {{ $rp($keluar_grand_total) }}
Processing
Completed
Pembelian
{{ $rp(0) }}
{{ $rp($keluar_pembelian) }}
Withdraw
{{ $rp($keluar_withdraw_processing) }}
{{ $rp($keluar_withdraw) }}
Correction
{{ $rp(0) }}
{{ $rp($keluar_correction) }}
Total
{{ $rp($keluar_processing_total) }}
{{ $rp($keluar_total) }}
WALLET MASUK - {{ $rp($masuk_total) }}
Processing
Completed
Jual
{{ $rp(0) }}
{{ $rp($masuk_jual) }}
Topup
{{ $rp(0) }}
{{ $rp($masuk_topup) }}
Correction
{{ $rp(0) }}
{{ $rp($masuk_correction) }}
Total
{{ $rp(0) }}
{{ $rp($masuk_total) }}
@if(!empty($wallet_trx))
@foreach($wallet_trx as $k=>$v) @endforeach
No. Kode Transaksi Customer Kode Customer Metode Pembayaran Tipe Nominal Total Bayar Saldo Akhir Wkt. Approval
{{ ($k+1) + ($rpp * (empty($_GET['page']) ? 0 : $_GET['page']-1)) }} {{ $v->code }} {{ $v->wallet->customer->name }} {{ $v->wallet->customer->code }} {{ @$v->metode_pembayaran->label }} {{ $type[$v->type] }} Rp. {{ number_format($v->nominal, 0, ',', '.') }} Rp. {{ number_format($v->total, 0, ',', '.') }} Rp. {{ number_format($v->saldo_akhir, 0, ',', '.') }} {{ $v->date_approved }}
{{ $wallet_trx->appends(['start_date' => @$_GET['start_date'], 'end_date' => @$_GET['end_date']])->links() }}
@endif