@extends('layouts.finance') @section('title', $student->name) @section('subtitle', 'Enrollments and monthly fee history') @section('content')

{{ $student->name }}

Edit All Students
Code
{{ $student->student_code ?: '—' }}
Phone
{{ $student->phone ?: '—' }}
Email
{{ $student->email ?: '—' }}
Status
{{ ucfirst($student->status) }}
Joined
{{ optional($student->joined_on)->format('d M Y') ?: '—' }}
@if($student->guardian_name || $student->address)
Guardian
{{ $student->guardian_name ?: '—' }} {{ $student->guardian_phone ? '· '.$student->guardian_phone : '' }}
Address
{{ $student->address ?: '—' }}
@endif

Enroll in a Course

@if($courses->isEmpty())

No active courses yet. Add a course before enrolling this student.

@else
@csrf
Leave blank to use the course fee.
@endif

Enrollments

@forelse($student->enrollments as $enrollment) @csrf @method('PUT') @empty @endforelse
Course Monthly Fee Start End Status
{{ $enrollment->course?->name ?? '—' }}
@csrf @method('DELETE')
Not enrolled in any course yet.

Fee History

Add / Manage Fees
@forelse($feeInvoices as $fee) @empty @endforelse
Invoice Period Course Amount Status Received
{{ $fee->invoice_number }} {{ $fee->feePeriodLabel() ?? '—' }} {{ $fee->course?->name ?? $fee->product_name }} {{ $fee->currency }} {{ number_format($fee->total(), 2) }} {{ $fee->status === 'paid' ? 'Paid' : 'Unpaid' }} {{ optional($fee->paid_at)->format('d M Y') ?: '—' }}
No fees raised yet.
{{ $feeInvoices->links() }}
@endsection