@extends('admin.layouts.app') @section('title', 'Educator Profile') @section('breadcrumb') @endsection @section('content')
Personal Information
@foreach ([['Date of Birth', $educator->date_of_birth?->format('d M Y')], ['Gender', ucfirst($educator->gender ?? '—')], ['Email', $educator->email ?? '—'], ['Phone', $educator->phone ?? '—'], ['Address', $educator->address ?? '—'], ['Qualification', $educator->qualification ?? '—'], ['Experience (Years)', $educator->experience_years ?? '—']] as [$label, $value])
{{ $label }}
{{ $value }}
@endforeach
Professional Qualifications
@foreach (json_decode($educator->professional_qualifications) as $qualification)
{{ $qualification->name }}
{{ $qualification->institution }} ({{ $qualification->year_of_passing }})
@endforeach
Attendance Summary
{{-- @forelse($attendance as $row) @empty @endforelse --}}
Class Total Classes Classes Attended Classes Absent % Attendance
{{ $row->class_name }} {{ $row->total }} {{ $row->attended }} {{ $row->absent }} {{ $row->pct }}% @if ($row->pct < 75) @endif
No attendance records
Status
{{ ucfirst($educator->status) }}
Fee Payments View All
{{-- @forelse($educator->payments->take(5) as $p)
{{ $p->feeGroup?->name ?? 'Payment' }}
{{ $p->payment_date->format('d M Y') }}
₹{{ number_format($p->net_amount) }}
{{ ucfirst($p->status) }}
@empty
No payments
@endforelse --}}
@if ($educator->application)
Application
@endif
@endsection