@extends('admin.layout.app') @section('body')

{{ __('admin.fee_reports') }}

{{ __('admin.overview_of_fee_collection_outstanding_balances_and_stu') }}

{{ __('admin.total_collected') }}

{{ number_format($totalCollected, 2) }} AFN

{{ __('admin.outstanding_total') }}

{{ number_format($outstandingTotal, 2) }} AFN

{{ __('admin.students_with_outstanding') }}

{{ $studentsWithOutstanding }}

@php $studentFees = \App\Models\FeeM\StudentFee::with(['student', 'semester'])->orderBy('id', 'desc')->paginate(20); @endphp @forelse($studentFees as $sf) @empty @endforelse
{{ __('admin.student_2') }} {{ __('admin.semester') }} {{ __('admin.net_fee_afn') }} {{ __('admin.paid_afn') }} {{ __('admin.outstanding_afn') }} {{ __('admin.status') }} {{ __('admin.due_date') }} {{ __('admin.actions') }}
{{ $sf->student->name ?? 'N/A' }}
{{ $sf->student->email ?? '' }}
{{ $sf->semester->name ?? 'N/A' }} {{ number_format($sf->net_amount, 2) }} {{ number_format($sf->paid_amount, 2) }} {{ number_format($sf->outstanding, 2) }} {{ ucfirst($sf->status) }} {{ $sf->due_date ? $sf->due_date->format('Y-m-d') : '—' }} {{ __('admin.view_payments') }}
{{ __('admin.no_fee_records_found') }}
{{ $studentFees->links('pagination::bootstrap-4') }}
@endsection