{{ \App\Models\Setting::where('type', 'system_name')->first()->description ?? 'School Management System' }}
{{ \App\Models\Setting::where('type', 'address')->first()->description ?? 'School Address' }}
{{ isset($selected_count) ? 'STUDENT PAYMENT TRANSACTIONS' : 'STUDENT PAYMENT TRANSACTION STATEMENT' }}
Student Name: {{ $student->user->name }}
Student ID: {{ $student->id }}
Class: {{ $student->my_class->name ?? 'N/A' }} {{ $student->section->name ?? '' }}
Period: {{ \Carbon\Carbon::parse($start_date)->format('M d, Y') }} - {{ \Carbon\Carbon::parse($end_date)->format('M d, Y') }}
Generated: {{ $generated_at->format('M d, Y H:i') }}
@if($transactions->count() > 0) @foreach($transactions as $transaction) @endforeach
Date Reference Amount Payment Method Status Narration Paid By
{{ \Carbon\Carbon::parse($transaction->payment_date)->format('M d, Y') }} {{ $transaction->ref ?? 'N/A' }} ₵{{ number_format($transaction->amount, 2) }} {{ $transaction->payment_method ?? 'N/A' }} {{ ucfirst($transaction->status) }} {{ $transaction->narration ?? 'N/A' }} {{ $transaction->paid_by ?? 'N/A' }}
TOTAL AMOUNT: ₵{{ number_format($total_amount, 2) }}
@else
No transactions found for the selected period.
@endif