@extends('layouts.cashier') @section('title','New Fee Entry') @section('breadcrumb')@endsection @section('cashier-content') @php $selectedInstitute = $institutes->count() === 1 ? $institutes->first() : null; @endphp {{-- HEADER --}}
Fee Collection Desk
Pick a student → verify due → record payment → auto-generate receipt.
Students (matched)
{{ $students->total() }}
Institute
{{ $selectedInstitute?->name ?? '—' }}
Date
{{ now()->format('d M Y') }}
{{-- LEFT: STUDENT PICKER --}}
Select Student
Click any row to auto-fill payment panel
@if($selectedInstitute) @else @endif
@forelse($students as $s) @php $fee = (float) (optional($s->feeStructure)->total_course_fee ?? 0); $paid = (float) $s->feePayments->sum('amount_paid'); $due = $fee - $paid; @endphp @empty @endforelse
Enrollment Student Course Total Paid Due
{{ $s->enrollment_no }}
{{ $s->name }}
{{ optional($s->institute)->name ?? '—' }}
{{ optional($s->course)->name ?? '—' }} ₹{{ number_format($fee, 0) }} ₹{{ number_format($paid, 0) }} @if($due > 0) ₹{{ number_format($due, 0) }} @else Paid @endif
No students found.
{{ $students->withQueryString()->links() }}
{{-- RIGHT: PAYMENT PANEL --}}
Record Payment
Receipt will be generated automatically after saving.
Select a student to begin
Click any row on the left to load payment details here.
{{-- PAYMENT FORM (hidden until student selected) --}} @endsection @push('scripts') @endpush