@extends('layouts.app') @section('content')
@include('layouts.left-menu')

Payment Settings

@include('session-messages')

{{ $stats['total_students'] }}

Total Students

{{ $stats['total_profiles'] }}

Payment Profiles

{{ $stats['monthly_students'] }}

Monthly Students

{{ $stats['annual_students'] }}

Annual Students

{{ $stats['free_students'] }}

Free Students

{{ number_format($stats['total_outstanding'], 2) }} PKR

Total Outstanding Balance

System Settings
@csrf
Note: These settings will apply to newly created payment profiles. Existing profiles will not be affected.
@error('admission_fee')
{{ $message }}
@enderror This is the default admission fee charged to all students upon enrollment or promotion.
Current Setting:
Admission Fee: {{ number_format($admissionFee->setting_value ?? 0, 2) }} PKR

Last updated: {{ $admissionFee->updated_at ? $admissionFee->updated_at->format('d M Y, h:i A') : 'Never' }}

Payment Type Information
Payment Type Description Students
Free Students who only pay admission fee, no recurring fees {{ $stats['free_students'] }} students
Monthly Students who pay admission fee + monthly recurring fee {{ $stats['monthly_students'] }} students
Annual Students who pay admission fee + annual recurring fee {{ $stats['annual_students'] }} students

Back to Payments @if(auth()->user()->role == 'admin') @else @endif
How Payment System Works
  1. Enrollment/Promotion: When a student is enrolled or promoted, a payment profile is created with the admission fee set here.
  2. Payment Types: Admin assigns payment type (Free/Monthly/Annual) and sets recurring fee amount during promotion.
  3. Admission Voucher: System automatically generates an admission voucher for each student to allow class entry.
  4. Payment Recording: All payments are recorded as transactions (receipts) with unique receipt numbers.
  5. Partial Payments: System supports partial payments for both monthly and annual students.
@include('layouts.footer')
@endsection