@extends('layouts.student')
@section('title', 'My Profile')
@section('content')
Date of birth: {{ optional($student->date_of_birth)->format('d M Y') ?? '—' }}
Academic year: {{ $student->academicYear?->name ?? $class?->academicYear?->name ?? '—' }}
Current term: {{ $term?->name ?? '—' }}
Class teacher: {{ $class?->classTeacher?->full_name ?? '—' }}
@if ($student->email)Email: {{ $student->email }}
@endif @if ($student->phone)Phone: {{ $student->phone }}
@endif @if ($student->medical_notes)Medical notes: {{ $student->medical_notes }}
@endif{{ $guardian->full_name }} — {{ $guardian->pivot->relationship ?? 'Guardian' }} @if($guardian->pivot->is_primary)
| Term | Class | Average | |
|---|---|---|---|
| {{ $card->term?->name }} | {{ $card->schoolClass?->name }} | {{ number_format((float) $card->overall_average, 1) }}% | View |