@extends('student.layout') @section('title','My Dashboard') @section('page-title','My Japan Journey') @section('content') @php $si = $student->stageInfo(); $paidFees = $student->fees->where('status','paid')->sum('amount'); $pendingFees = $student->fees->whereIn('status',['pending','partial'])->sum('amount'); $verifiedDocs = $student->documents->where('status','verified')->count(); $totalDocs = $student->documents->count(); @endphp
あなたの旅の進捗
Current Stage
{{ $si['label'] }}
{{ $student->course }} · {{ $student->batch ?? 'No batch assigned' }} · Enrolled {{ $student->enrollment_date?->format('d M Y') }}
@php $allStages = array_keys(\App\Models\Student::stages()); $currentIdx = array_search($student->current_stage, $allStages); $pct = round(($currentIdx / (count($allStages)-1)) * 100); @endphp
Enquiry{{ $pct }}% CompleteJapan 🎌
{{ $student->course }}
Current Course
₹{{ number_format($paidFees) }}
Fee Paid
{{ $pendingFees>0 ? '₹'.number_format($pendingFees) : '✓' }}
Fee Pending
{{ $verifiedDocs }}/{{ $totalDocs ?: '—' }}
Docs Verified

Study Materials

View All
@forelse($materials as $m)
{{ $m->title }}
{{ $m->topic ?? $m->course }}
@if($m->file_path || $m->external_url) @endif
@empty
No materials yet. Check back soon!
@endforelse

Recent Tests

View All
@forelse($recentTests 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 }}
@else Pending @endif
@empty
No tests yet.
@endforelse
@endsection