@extends('backend.bursar.bursar_dashboard') @section('bursar')
{{-- ========================================================= PAGE HEADER ========================================================== --}}

Bursar Dashboard

Overview of student bills, payments and outstanding balances.

{{-- ========================================================= FINANCIAL SUMMARY CARDS ========================================================== --}}
{{-- TOTAL BILL --}}

Total Bills

₦{{ number_format($totalBill, 2) }}

Total amount billed
{{-- TOTAL PAID --}}

Payment Made

₦{{ number_format($totalPaid, 2) }}

Total money received
{{-- OUTSTANDING --}}

Outstanding

₦{{ number_format($totalOutstanding, 2) }}

Amount yet to be paid
{{-- STUDENTS --}}

Students Billed

{{ number_format($studentsWithBills) }}

Students with active bills
{{-- ========================================================= SECONDARY ANALYSIS ========================================================== --}}
{{-- PAYMENT STATUS --}}
Payment Analysis
Overall bill collection status
{{-- STUDENT PAYMENT STATUS --}}
Student Payment Status
Current payment situation
{{-- FULLY PAID --}}
Fully Paid

{{ number_format($fullyPaidStudents) }}

{{-- OUTSTANDING STUDENTS --}}
Outstanding

{{ number_format($studentsWithOutstanding) }}

{{-- COLLECTION RATE --}} @php $collectionRate = $totalBill > 0 ? ($totalPaid / $totalBill) * 100 : 0; @endphp
Collection Rate {{ number_format($collectionRate, 1) }}%
{{-- ========================================================= RECENT PAYMENTS ========================================================== --}}
Recent Payments
Latest payments received from students
View History
@forelse($recentPayments as $payment) @empty @endforelse
S/N Receipt No. Student Class Payment Date Amount
{{ $loop->iteration }} {{ $payment->receipt_number }}
{{ $payment->student?->name ?? 'N/A' }}
{{ $payment->student?->user?->user_name ?? 'N/A' }}
{{ $payment->studentClass?->class_name ?? 'N/A' }} {{ $payment->payment_date ? $payment->payment_date->format('d M Y') : 'N/A' }} ₦{{ number_format($payment->amount, 2) }}
No payments have been recorded yet.
{{-- ============================================================= CHART.JS ============================================================== --}} @endsection