@extends('layouts.app') @section('title', 'Pocket Money Transactions') @section('content')

Wallet transactions

Every deposit and withdrawal with the running wallet balance and the clerk who recorded it.
Export CSV
@include('pocket-money._nav')

Transaction ledger

{{ num($transactions->total()) }} entries
@forelse($transactions as $tx) @php($name = trim(($tx->first_name ?? '') . ' ' . ($tx->middle_name ?? '') . ' ' . ($tx->surname ?? ''))) @empty @endforelse
DateLearnerAdmission NoTypeAmountBalance afterNoteRecorded by
{{ \Carbon\Carbon::parse($tx->created_at)->format('d M Y H:i') }} {{ $name }} {{ $tx->admission_no }} {{ $tx->type }} {{ $tx->type === 'Deposit' ? '+' : '−' }}{{ money($tx->amount) }} {{ money($tx->balance_after) }} {{ $tx->note ?: '—' }} {{ $tx->clerk ?: 'System' }}
@include('shared.pager', ['paginator' => $transactions])
@csrf
@endsection