{{-- --}} @php $saldo_awal = 0; $running_saldo = 0; @endphp @foreach($wallet_plus_transactions as $wallet_plus_transaction) @php $wallet_plus = $wallet_plus_transaction->wallet_plus; $customer = $wallet_plus->customer_plus->customer; @endphp @if($customer) @php $trx_type = $wallet_plus_transaction->wallet_plus_trx_type->type == 'credit' ? 'CR' : 'DB'; $customer_elite = $customer ? $customer->customer_elite()->where('isactive', 1)->whereDate('valid_until', '>=', date('Y-m-d'))->count() : 0; $total_saldo = $wallet_plus_transaction->saldo_akhir + $wallet_plus_transaction->total; if($trx_type == 'CR') { $total_saldo = $wallet_plus_transaction->saldo_akhir - $wallet_plus_transaction->total; } @endphp @endif @endforeach
Tanggal Kode Transaksi Status Elite Kode Customer Customer Account Created No Saldo Account Saldo Awal Mutasi Biaya Admin DB /CR Saldo Akhir Keterangan Id Wallet Id Wallet laku savingCreated
{{ $wallet_plus_transaction->date_approved }} {{ $wallet_plus_transaction->code }} @if ($customer_elite) Elite @else Regular @endif {{ $customer->code }} {{ $customer->name }} {{ $customer->created_at->format('d-m-Y') }} {{ $wallet_plus->nomor_rekening }} {{ $total_saldo < 0 ? 0 : $total_saldo }} {{ ($wallet_plus_transaction->nominal) }} {{ ($wallet_plus_transaction->service_fee) }} {{ $trx_type }} {{ ($wallet_plus_transaction->saldo_akhir) }} {{ $configs[$wallet_plus_transaction->type] }} {{ $wallet_plus_transaction->wallet_reguler_transaction_code ?? '-' }} @php $customer_lei = App\Models\Customer_model::where('id', $customer->id)->first(); if ($customer_lei->wallet) { echo $customer_lei->wallet->id; } @endphp @php if ($wallet_plus->customer_plus) { echo $wallet_plus->customer_plus->id; } @endphp