{{-- resources/views/diler/wallet.blade.php --}} @extends('diler.layouts.app') @section('title', 'Wallet') @section('content')
Current Wallet Balance

৳{{ number_format($balance, 2) }}

Available for withdrawal
Total Credited

৳{{ number_format($wallet->total_credited ?? 0, 2) }}

Total Withdrawn

৳{{ number_format($wallet->total_debited ?? 0, 2) }}

Pending Requests

৳{{ number_format($wallet->pending_withdrawal ?? 0, 2) }}

Transaction History

@if($transactions->count() > 0)
@foreach($transactions as $tx) @endforeach
Date Type Amount Balance After Description
{{ $tx->created_at->format('d M Y h:i A') }} {{ ucfirst($tx->type) }} {{ $tx->type == 'credit' ? '+' : '-' }}৳{{ number_format($tx->amount, 2) }} ৳{{ number_format($tx->balance_after, 2) }} {{ $tx->description ?? '-' }}
{{ $transactions->links() }}
@else
No transactions yet
@endif
@endsection