@extends('layouts.app') @section('title','Transactions') @section('page-title','Transaction Ledger') @section('content')
All Transactions
Complete financial transaction history
@forelse($transactions as $txn) @empty @endforelse
ReferenceMemberTypeAmountBalance AfterModeDateBy
{{ $txn->reference }}
{{ strtoupper(substr($txn->member->name,0,2)) }}
{{ $txn->member->name }}
@php $colors = ['deposit'=>'active','withdrawal'=>'rejected','repayment'=>'paid']; @endphp {{ ucfirst($txn->type) }} {{ $txn->type==='deposit' ? '+' : '-' }}${{ number_format($txn->amount,2) }} ${{ number_format($txn->balance_after,2) }} {{ ucfirst(str_replace('_',' ',$txn->payment_mode)) }} {{ $txn->created_at->format('M d, Y H:i') }} {{ $txn->recordedBy->name ?? 'System' }}
No transactions found
@if($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection