{{-- resources/views/wallets/transactions.blade.php --}} @extends('layouts.app') @section('content')

All Wallet Transactions

Back to Wallets
@if(session('success'))
{{ session('success') }}
@endif {{-- Summary Cards --}}

Total Transactions

{{ $transactions->total() }}

Total Credits

৳{{ number_format($totalCredits, 2) }}

Total Debits

৳{{ number_format($totalDebits, 2) }}

{{-- Filters --}}
Clear
{{-- Transactions Table --}}
@forelse($transactions as $transaction) @empty @endforelse
ID Subscriber Type Amount Source Description Date Created By Actions
{{ $transaction->id }} {{ $transaction->subscriber->name }} @if($transaction->type == 'credit') Credit @else Debit @endif {{ $transaction->type == 'credit' ? '+' : '-' }} ৳{{ number_format($transaction->amount, 2) }} {{ str_replace('_', ' ', ucfirst($transaction->source)) }} {{ $transaction->description ?? 'N/A' }} {{ $transaction->created_at->format('d M Y, h:i A') }} {{ $transaction->creator->name ?? 'System' }}
No transactions found.
{{ $transactions->withQueryString()->links() }}
@endsection