check_circle
{{ session('success') }}
@endif
@if(session('error'))
error
{{ session('error') }}
@endif
Saldo Tersedia
Rp {{ number_format($walletBalance ?? 0, 0, ',', '.') }}
Total Pendapatan: Rp {{ number_format($totalIncome ?? 0, 0, ',', '.') }}
Total Ditarik: Rp {{ number_format($totalWithdrawn ?? 0, 0, ',', '.') }}
Riwayat Transaksi
history
@if(isset($transactions) && $transactions->count() > 0)
@foreach($transactions as $trx)
@php
$isIn = $trx->type === 'in';
@endphp
@endforeach
@else
@endif
{{ $isIn ? 'arrow_downward' : 'arrow_upward' }}
{{ $trx->description ?? ($isIn ? 'Pendapatan Pesanan' : 'Penarikan Dana') }}
{{ $trx->created_at ? $trx->created_at->format('d M Y, H:i') : now()->format('d M Y, H:i') }} WIB
{{ $isIn ? '+' : '-' }}Rp {{ number_format($trx->amount, 0, ',', '.') }}
receipt_long
Belum Ada Riwayat Transaksi
Pendapatan dan riwayat penarikan dana akan muncul di sini.