@extends('customer.dashboard.layout') @section('title', 'My Wallet') @section('content')

My Wallet

Manage your credits and view transaction history

Top Up Credits

Available Balance

{{ number_format($stats['current_balance'], 0) }}

credits

{{ number_format($stats['total_credits_added'], 0) }}

Total Credits Added

{{ number_format($stats['total_credits_spent'], 0) }}

Total Credits Spent

Transaction History

{{ $stats['total_transactions'] }} transactions
@if($transactions->count() > 0)
@foreach($transactions as $transaction) @endforeach
Date Description Source Amount Balance After Related
{{ $transaction->created_at->format('M d, Y') }}
{{ $transaction->created_at->format('g:i A') }}
{{ $transaction->description ?? 'Transaction' }} @if($transaction->notes)
{{ $transaction->notes }} @endif
{{ ucfirst($transaction->source) }} {{ $transaction->type === 'credit' ? '+' : '-' }}{{ number_format($transaction->amount, 0) }} {{ number_format($transaction->balance_after, 0) }} @if($transaction->order) Order #{{ $transaction->order->order_number }} @elseif($transaction->booking) Booking #{{ $transaction->booking->booking_reference }} @elseif($transaction->subscription) Subscription @elseif($transaction->credit_package_id) Package @else - @endif
{{ $transactions->links() }}
@else

No Transactions Yet

Your wallet transaction history will appear here

Top Up Credits
@endif
How does the wallet work?

Top Up: Purchase credit packages to add credits to your wallet

Use Credits: Credits can be used for bookings, purchases, and subscriptions

Track Everything: All transactions are recorded and can be viewed anytime

@endsection @push('styles') @endpush