{{-- resources/views/dashboard/wallet/banking.blade.php --}} @extends('layouts.user') @section('title', 'Banking') @section('content')
{{-- Header --}}

Banking

Home Banking
{{-- Balance strip --}}
Available Balance
${{ number_format($walletSummary['available_balance'], 2) }}
Ready to use
Pending Amount
${{ number_format($walletSummary['pending_total'], 2) }}
In processing
Completed Txns
{{ $walletSummary['completed_transactions'] }}
All-time settled
Pending Txns
{{ $walletSummary['pending_transactions'] }}
Awaiting settlement
{{-- Money flow chart --}}
Monthly Money Flow
Credit vs Debit vs Net by month
{{-- Monthly breakdown --}}
Monthly Breakdown
Summary by month
Month Credit Debit Net
@forelse($monthlyFlow as $month) @php $credit = (float)$month->total_credit; $debit = (float)$month->total_debit; $net = $credit - $debit; $maxVal = max($credit, $debit, 1); $cPct = min(100, round(($credit / $maxVal) * 100)); $dPct = min(100, round(($debit / $maxVal) * 100)); @endphp
{{ $month->month }}
+${{ number_format($credit, 2) }}
-${{ number_format($debit, 2) }}
{{ $net >= 0 ? '+' : '' }}${{ number_format($net, 2) }}
@empty
No monthly records available.
@endforelse
{{-- Transaction history --}}
Wallet Transactions
Full transaction history
Reference Asset Direction Amount Status
@forelse($transactions as $tx) @php $isCredit = $tx->direction === 'credit'; @endphp
{{ $tx->reference }}
{{ ucfirst($tx->type) }}
{{ $tx->created_at?->format('M d, Y · H:i') }}
{{ $tx->asset }}
{{ ucfirst($tx->direction) }}
{{ number_format((float)$tx->amount, 8) }}
{{ ucfirst($tx->status) }}
@empty
No transactions found.
@endforelse
{{ $transactions->links() }}
@endsection @push('scripts') @endpush