@extends('layouts.admin') @section('title', $student->full_name) @section('page-title', $student->full_name) @section('page-subtitle', 'Student details') @section('content')
@if($student->profile_photo) {{ $student->full_name }} @else
{{ substr($student->first_name, 0, 1) }}{{ substr($student->last_name ?? '', 0, 1) }}
@endif

{{ $student->full_name }}

{{ ucfirst($student->status) }}

{{ $student->age }}

Years Old

{{ ucfirst($student->gender) }}

Gender

{{ $student->date_of_birth->format('M j, Y') }}

Date of Birth

{{ $student->class?->name ?? 'N/A' }}

Class

Attendance Summary

{{ $student->attendanceRecords->where('present', true)->count() }}

Days Present

{{ $student->attendanceRecords->where('present', false)->count() }}

Days Absent

{{ $student->attendanceRecords->count() > 0 ? round(($student->attendanceRecords->where('present', true)->count() / $student->attendanceRecords->count()) * 100) : 0 }}%

Attendance Rate

Parent/Guardian

Name

{{ $student->parent_name }}

Phone

{{ $student->parent_phone }}

@if($student->parent_email)

Email

{{ $student->parent_email }}

@endif @if($student->parent)

Church Member

{{ $student->parent->full_name }}
@endif
@if($student->notes)

Notes

{{ $student->notes }}

@endif
@endsection