@extends('layouts.app')
@section('content')
<div class="container-xxl flex-grow-1 container-p-y"><div class="card"><div class="card-header"><h5 class="mb-0">Wallet Transactions</h5></div>
<div class="table-responsive"><table class="table"><thead><tr><th>User</th><th>Type</th><th>Amount</th><th>Status</th><th>Reference</th><th>Date</th></tr></thead><tbody>
@foreach($walletTransactions as $tx)
<tr><td>{{ $tx->user->name ?? 'N/A' }}</td><td>{{ $tx->type }}</td><td>${{ number_format($tx->amount,2) }}</td><td>{{ $tx->status }}</td><td>{{ $tx->reference }}</td><td>{{ $tx->created_at->format('Y-m-d H:i') }}</td></tr>
@endforeach
</tbody></table></div><div class="card-body">{{ $walletTransactions->links() }}</div></div></div>
@endsection
