@extends('admin.layout') @section('title', $student->name) @section('page-title', $student->name . ' โ€” ' . $student->student_id) @section('content') @php $stageKeys = array_keys($stages); $currentIdx = array_search($student->current_stage, $stageKeys); @endphp
Back {{ $student->course }} @php $si = $student->stageInfo(); @endphp {{ $si['label'] }} @if($student->batch) {{ $student->batch }} @endif Edit
@csrf @method('DELETE')
Journey Progress
@foreach($stageKeys as $i => $key)
@endforeach
Enquiry{{ $si['label'] }}Japan ๐ŸŽŒ

Profile

@foreach([['fas fa-id-card','Student ID',$student->student_id],['fas fa-envelope','Email',$student->email],['fas fa-phone','Phone',$student->phone],['fas fa-birthday-cake','DOB',$student->dob?->format('d M Y')],['fas fa-user','Father',$student->father_name],['fas fa-graduation-cap','Education',$student->education],['fas fa-map-marker-alt','Location',trim(($student->city??'').', '.($student->state??''),', ')]] as $row)
{{ $row[1] }} {{ $row[2] ?: 'โ€”' }}
@endforeach

Update Stage

@csrf

Fees

@forelse($student->fees as $fee)
โ‚น{{ number_format($fee->amount) }} โ€” {{ ucfirst($fee->type) }}
Due: {{ $fee->due_date?->format('d M Y') ?? 'โ€”' }}
{{ ucfirst($fee->status) }} @if($fee->status !== 'paid')
@csrf @method('PUT')
@endif
@empty
No fee records.
@endforelse

Documents

@php $uploadedDocs = $student->documents->keyBy('doc_type'); @endphp @foreach($docLabels as $type => $label) @php $doc = $uploadedDocs->get($type); @endphp
{{ $label }}
@if($doc)
{{ ucfirst($doc->status) }} @if($doc->status !== 'verified')
@csrf @method('PUT')
@endif
@else Not uploaded @endif
@endforeach

Activity Timeline

@forelse($student->pipeline as $p) @php $psi = \App\Models\Student::stages()[$p->stage] ?? ['label'=>$p->stage,'icon'=>'fa-circle','color'=>'#94a3b8']; @endphp
{{ $psi['label'] }}
@if($p->notes)
{{ $p->notes }}
@endif
{{ $p->completed_at?->format('d M Y, h:i A') }} {{ $p->updatedBy ? 'ยท by '.$p->updatedBy->name : '' }}
@empty
No activity recorded.
@endforelse

Test Performance

@forelse($student->testResults as $r)
{{ $r->test?->title }}
{{ $r->test?->test_date?->format('d M Y') }}
@if($r->marks_obtained !== null)
{{ $r->marks_obtained }}/{{ $r->test?->total_marks }}
{{ $r->percentage() }}%
@else Pending @endif
@empty
No tests recorded.
@endforelse
@endsection