@extends('layouts.main') @section('content')

Available Balance

₹ {{ AmountFormat(Auth::user()->wallet) }}

Transactions
@forelse ($wallet as $w) @php $icon = '
'; if ($w->type == 'credit' && $w->status == 'completed') { $icon = '
'; } elseif ($w->type == 'debit' && $w->status == 'completed') { $icon = '
'; } else { $icon = '
'; } @endphp
{!! $icon !!}
{{ config('constants.source_types.' . $w->source_type) ?? 'Unknown' }}

{{ $w->formatted_created_at }}

@if ($w->type == 'credit')
₹{{ $w->amount }}
{{ ucfirst($w->status) }}
@elseif($w->type == 'debit')
-₹{{ $w->amount }}
{{ $w->status }}
@endif
@empty
No Transactions

No Transactions Yet

Your wallet is currently empty. Add funds to your wallet.

+ Add Money
@endforelse {{ $wallet->links('pagination::bootstrap-5') }}
@endsection