Student Payment Transaction History
@if (session()->has('error'))
{{ session('error') }}
@endif
@if($selectedStudentId)
Student selected: {{ $selectedStudent }}
@else
Type and select a student from the dropdown
@endif @if($showResults)
@foreach($searchResults as $student) {{ $student['student_name'] }} ({{ $student['class_name'] }}) @endforeach
@endif
Print Statement
@if(!$selectedStudentId && !$startDate && !$endDate && !$statusFilter)
Showing the most recent 20 transactions. Use the filters above to narrow down results.
@endif
@forelse($transactions as $transaction) @empty @endforelse
Student Name Class Amount Payment Date Payment Method Status Narration Paid By Actions
{{ $transaction->studentRecord ? $transaction->studentRecord->user->name : 'N/A' }} @if($transaction->studentRecord) {{ $transaction->studentRecord->my_class ? $transaction->studentRecord->my_class->name : '' }} {{ $transaction->studentRecord->section ? $transaction->studentRecord->section->name : '' }} @else N/A @endif ₵{{ number_format($transaction->amount, 2) }} {{ date('M d, Y', strtotime($transaction->payment_date)) }} {{ $transaction->payment_method }} @php $badgeClass = match(strtolower($transaction->status)) { 'paid' => 'badge-success', 'pending' => 'badge-warning', 'reversed' => 'badge-danger', default => 'badge-secondary' }; @endphp {{ ucfirst($transaction->status) }} {{ $transaction->narration }} {{ $transaction->paid_by }} Print Receipt
No transactions found matching your criteria.
@if(method_exists($transactions, 'links'))
{{ $transactions->links() }}
@endif
@push('styles') @endpush