@extends('user.layouts.app') @section('content')

My Wallet

Manage your funds and view transaction history.

Add Money

Service Wallet

₹{{ number_format(auth()->user()->wallet_balance, 2) }}

Available for Consultations

Total Spent

₹{{ number_format(auth()->user()->walletTransactions()->where('wallet_type', 'chat')->where('type', 'debit')->sum('amount'), 2) }}

Shopping Wallet

₹{{ number_format(auth()->user()->shopping_wallet_balance, 2) }}

Available for AstroMall

Total Spent

₹{{ number_format(auth()->user()->walletTransactions()->where('wallet_type', 'shopping')->where('type', 'debit')->sum('amount'), 2) }}

Transaction History

@forelse($transactions as $transaction) @empty @endforelse
ID Date Description Category Type Amount
#{{ $transaction->id }}
{{ $transaction->created_at->format('d M, Y') }}
{{ $transaction->created_at->format('h:i A') }}
{{ $transaction->description }}
{{ ($transaction->wallet_type ?? 'chat') == 'chat' ? 'Services' : 'Shopping' }} {{ $transaction->type }} {{ $transaction->type == 'credit' ? '+' : '-' }}₹{{ number_format($transaction->amount, 2) }}

No transactions found for this category

@if($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection