@extends('layouts.user', ['heading' => 'Wallet / वॉलेट']) @section('content') @if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
@endif
Income Wallet
₹ {{ number_format((float) ($wallet->income_balance ?? 0), 2) }}
Repurchase Wallet
₹ {{ number_format((float) ($wallet->repurchase_balance ?? 0), 2) }}
Withdrawable Wallet
₹ {{ number_format((float) ($wallet->withdrawable_balance ?? 0), 2) }}
Wallet Transfer
@csrf
@forelse($transactions as $txn)
{{ $txn->wallet_type }}
{{ optional($txn->transacted_at)->format('d M Y, h:i A') }}
Direction: {{ $txn->direction }}
{{ $txn->direction === 'credit' ? '+' : '-' }}₹ {{ number_format((float) $txn->amount, 2) }}
Balance: ₹ {{ number_format((float) $txn->closing_balance, 2) }}
Ref: {{ $txn->display_reference ?? $txn->reference ?? 'NA' }}
@empty
No transactions found.
@endforelse
{{ $transactions->links() }}
@endsection