@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $statusColors = ['active' => 'green', 'inactive' => 'amber', 'graduated' => 'brand', 'transferred' => 'slate', 'expelled' => 'red']; $validSections = ['academic', 'documents', 'attendance', 'fees', 'ai-risk']; $initialSection = in_array(request('tab'), $validSections, true) ? request('tab') : null; @endphp
r.json()) .then((data) => { this.risk = data; this.riskLoading = false; }) .catch(() => { this.riskLoading = false; }); }, toggleSection(name) { this.openSection = this.openSection === name ? null : name; if (name === 'ai-risk' && this.openSection === 'ai-risk') this.loadRisk(); } }">
@if($student->photo_path) {{ $student->fullName() }} @else @endif

{{ $student->fullName() }}

{{ $student->student_code }}

Date of Birth
{{ $student->dob->format('M j, Y') }}
Gender
{{ ucfirst($student->gender) }}
Blood Group
{{ $student->blood_group ?? '—' }}
Address
{{ $student->address_line ?? '—' }}
City
{{ $student->city ?? '—' }}
Country
{{ $student->country ?? '—' }}
Emergency Contact
{{ $student->emergency_contact_phone ?? '—' }}
Enrolled
{{ $student->enrolled_at?->format('M j, Y') ?? '—' }}
user) x-data="{ revealed: false, password: null, loading: false, reveal() { if (this.revealed) { this.revealed = false; return; } if (this.password) { this.revealed = true; return; } this.loading = true; fetch('{{ route('tenant.admin.students.reveal-password', $student) }}', { headers: { 'Accept': 'application/json' } }) .then(r => r.json()) .then(data => { this.password = data.password; this.revealed = true; this.loading = false; }) .catch(() => { this.loading = false; }); } }" @endif>

Login Access

@if($student->user && $student->user->is_active) Active @elseif($student->user) Deactivated @else No Login @endif
@if($student->user)
Email:
{{ $student->user->email }}
Password:
@csrf @method('PUT') @if($student->user->is_active) @else @endif
@else

This student doesn't have a portal login yet.

@endif

Guardians

@forelse($student->guardians as $guardian)

{{ $guardian->fullName() }} @if($guardian->pivot->is_primary)Primary@endif

{{ ucfirst($guardian->relationship) }} · {{ $guardian->phone }} @if($guardian->email) · {{ $guardian->email }} @endif

@empty

No guardians linked yet.

@endforelse
Branch
{{ $student->branch->name }}
Department
{{ $student->department?->name ?? '—' }}
Academic Session
{{ $student->academicSession->name }}
Roll Number
{{ $student->roll_number ?? '—' }}
@if($student->admissionApplication)
Admission Reference
{{ $student->admissionApplication->reference }}
@endif
@if($tenant->hasModule('batches')) @php $batchEnrollments = $student->batchEnrollments()->with(['batch.course', 'batch.teacher', 'invoices.payments'])->latest('enrolled_on')->get(); @endphp
@if($tenant->hasModule('batch_tests')) Progress report @endif @forelse($batchEnrollments as $enrollment)
{{ $enrollment->batch?->course?->name }} — {{ $enrollment->batch?->name }}

{{ $enrollment->batch?->daysLabel() }} · {{ $enrollment->batch?->timeLabel() }} · since {{ $enrollment->enrolled_on->format('d M Y') }}

@if($tenant->hasModule('batch_fees') && ($enrollmentDue = $enrollment->dueCents())) {{ \App\Support\Money::format($enrollmentDue, $currency) }} due @endif {{ ucfirst($enrollment->status) }}
@empty

Not enrolled in any batch. Browse batches to enroll.

@endforelse
@endif
@if($student->admissionApplication && $student->admissionApplication->documents->isNotEmpty())
    @foreach($student->admissionApplication->documents as $document)
  • {{ ucwords(str_replace('_', ' ', $document->document_type)) }}
  • @endforeach
@else

No documents on file. Documents uploaded during the admission application carry over here automatically.

@endif

Last 14 recorded attendance entries. Full history available via the Attendance Report.

@forelse($recentAttendance as $record)
{{ $record->date->format('M j, Y') }} {{ $record->statusLabel() }}
@empty

No attendance recorded yet.

@endforelse
@php $attendanceStatusColors = ['present' => 'text-emerald-600', 'absent' => 'text-rose-600', 'late' => 'text-amber-600', 'excused' => 'text-brand-600']; @endphp
@foreach(\App\Models\AttendanceRecord::STATUS_SHORT_LABELS as $status => $short) {{ $short }} {{ \App\Models\AttendanceRecord::STATUS_LABELS[$status] }} @endforeach
@for($day = 1; $day <= $attendanceMonth->daysInMonth; $day++) @php $date = $attendanceMonth->copy()->day($day); @endphp @endfor @for($day = 1; $day <= $attendanceMonth->daysInMonth; $day++) @php $date = $attendanceMonth->copy()->day($day); $record = $attendanceByDay->get($day); @endphp @endfor
Student{{ $day }}
{{ $student->fullName() }} {{ $record?->statusShortLabel() ?? '—' }}
@if($tuitionStructure)

Tuition Fee{{ $student->section?->schoolClass ? ' · '.$student->section->schoolClass->name : '' }}

{{ \App\Support\Money::format($tuitionStructure->amount_cents, $currency) }}

Billed {{ str_replace('_', ' ', $tuitionStructure->billing_frequency) }}{{ $tuitionStructure->due_day_of_month ? ' · due on day '.$tuitionStructure->due_day_of_month.' of the month' : '' }}

@else
No tuition fee structure applies to this student's class yet.
@endif
@forelse($invoices as $invoice) @php $statusColors = ['unpaid' => 'amber', 'partially_paid' => 'blue', 'paid' => 'green', 'overdue' => 'red', 'cancelled' => 'slate']; @endphp @empty @endforelse
Invoice Due Date Amount Paid Balance Status

{{ $invoice->invoice_number }}

{{ $invoice->description }}

{{ $invoice->due_date->format('M j, Y') }} {{ \App\Support\Money::format($invoice->amount_due_cents, $currency) }} {{ \App\Support\Money::format($invoice->amountPaidCents(), $currency) }} {{ \App\Support\Money::format($invoice->amount_due_cents - $invoice->amountPaidCents(), $currency) }} {{ ucfirst(str_replace('_', ' ', $invoice->status)) }}
No invoices yet.
@csrf

@if($student->user) A new random password will be generated and shown once. The student's login email stays unless you change it here. @else Auto-generated as a unique institutional address. You can edit it — e.g. to use a guardian's email — if you prefer. @endif

@error('email')

{{ $message }}

@enderror
@csrf