{{-- resources/views/wallets/transactions.blade.php --}} @extends('layouts.app') @section('content')
Total Transactions
{{ $transactions->total() }}
Total Credits
৳{{ number_format($totalCredits, 2) }}
Total Debits
৳{{ number_format($totalDebits, 2) }}
| 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. | ||||||||