@extends('layouts.app') @section('title', __('Wallet')) @section('content')

{{ __('A clear view of your current balance and transaction history.') }}

{{ __('LML digital wallet') }}

{{ __('Available balance') }}

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

{{ __('Account holder') }}

{{ $user->name }}

{{ __('Member ID') }}

{{ $user->member_id ?: '—' }}

{{ __('Payment history') }}{{ __('View your previous payment records') }} {{ __('Withdraw') }}{{ __('Request a balance payout') }}

{{ __('Account details') }}

{{ __('Account status') }}

{{ $user->is_active ? __('Active') : __('Inactive') }}

{{ __('Member since') }}

{{ $user->created_at->format('M Y') }}

{{ __('Transaction history') }}

{{ __('Credits and debits posted to your wallet') }}

{{ method_exists($txs, 'total') ? $txs->total() : $txs->count() }} {{ __('records') }}
@if($txs->count())
@foreach($txs as $transaction) @endforeach
{{ __('Description') }}{{ __('Reference') }}{{ __('Date') }}{{ __('Amount') }}
{{ $transaction->description ?: ucfirst($transaction->type) }} {{ $transaction->reference ?: '—' }} {{ $transaction->created_at->format('M d, Y · g:i A') }} {{ $transaction->type === 'credit' ? '+' : '−' }}৳{{ number_format($transaction->amount, 2) }}
@if(method_exists($txs, 'links'))
{{ $txs->links() }}
@endif @else

{{ __('No transactions yet') }}

{{ __('Your wallet activity will appear here after a transaction is posted.') }}

@endif
@endsection