@extends('admin.layout.app') @section('title', __('admin.student_details') . ' - ' . $student->name) @php $dash = '—'; $placementValue = fn ($value, $fallback = '—') => filled($value) ? $value : $fallback; $formatDate = fn ($value, $format = 'Y-m-d') => $value ? \Illuminate\Support\Carbon::parse($value)->format($format) : '—'; $status = strtolower((string) ($academicPlacement['status'] ?? 'active')); $statusClass = match($status) { 'active' => 'success', 'graduated' => 'primary', 'inactive' => 'secondary', 'suspended' => 'warning', default => 'secondary', }; $healthClass = match($academicHealth['standing'] ?? 'good') { 'probation' => 'danger', 'at_risk' => 'warning', default => 'success', }; @endphp @section('body')
{{ __('admin.complete_student_academic_financial_and_activity_overview') }}
| {{ __('admin.full_name') }} | {{ $student->name }} |
|---|---|
| {{ __('admin.father_s_name') }} | {{ $student->father_name ?: $dash }} |
| {{ __('admin.date_of_birth') }} | {{ $formatDate($student->dob) }} |
| {{ __('admin.gender') }} | {{ $student->gender ? ucfirst($student->gender) : $dash }} |
| {{ __('admin.tazkira_no') }} | {{ $student->tazkira_no ?: $dash }} |
| {{ __('admin.agreement') }} | {!! $student->agreement ? 'Accepted' : 'Not accepted' !!} |
| {{ __('admin.university') }} | {{ $placementValue($academicPlacement['university']) }} |
|---|---|
| {{ __('admin.faculty') }} | {{ $placementValue($academicPlacement['faculty']) }} |
| {{ __('admin.department') }} | {{ $placementValue($academicPlacement['department']) }} |
| {{ __('admin.program') }} | {{ $placementValue($academicPlacement['program']) }} |
| {{ __('admin.current_semester') }} | {{ $placementValue($academicPlacement['semester']) }} |
| {{ __('admin.status') }} | {{ $status }} |
| {{ __('admin.email') }} | {{ $student->email ?: $dash }} |
|---|---|
| {{ __('admin.phone') }} | {{ $student->phone ?: $dash }} |
| {{ __('admin.country') }} | {{ $student->country ?: $dash }} |
| {{ __('admin.address') }} | {{ $student->address ?: $dash }} |
| {{ __('admin.last_education') }} | {{ $student->last_education ?: $dash }} |
| {{ __('admin.current_job') }} | {{ $student->current_job ?: $dash }} |
| {{ __('admin.created_at') }} | {{ $student->created_at ? $student->created_at->format('Y-m-d H:i') : $dash }} |
|---|---|
| {{ __('admin.updated_at') }} | {{ $student->updated_at ? $student->updated_at->format('Y-m-d H:i') : $dash }} |
| {{ __('admin.desired_course') }} | {{ $student->desired_course ?: $dash }} |
| {{ __('admin.signature_name') }} | {{ $student->signature_name ?: $dash }} |
| {{ __('admin.signed_date') }} | {{ $formatDate($student->signed_date) }} |
| {{ __('admin.course') }} | {{ __('admin.semester') }} | {{ __('admin.marks') }} | {{ __('admin.grade') }} | {{ __('admin.grade_point') }} | {{ __('admin.status') }} |
|---|---|---|---|---|---|
{{ $cr->course->title ?? $dash }} {{ $cr->course->code ?? '' }} |
{{ $cr->semester->name ?? (optional($cr->semester)->number ? 'Semester '.optional($cr->semester)->number : $dash) }} | {{ $cr->total_marks !== null ? $cr->total_marks.'%' : $dash }} | {{ $cr->gradeScale->name ?? $cr->grade ?? $dash }} | {{ $cr->grade_point ?? $dash }} | {{ ($cr->is_passed ?? false) ? 'Passed' : 'Not Passed' }} |
| {{ __('admin.no_records') }} | |||||
| {{ __('admin.date') }} | {{ __('admin.course') }} | {{ __('admin.status') }} |
|---|---|---|
| {{ $att->date ?: $dash }} | {{ $att->course->title ?? $dash }} | {{ $attStatus ?: $dash }} |
| {{ __('admin.no_records') }} | ||
| {{ __('admin.semester') }} | {{ __('admin.net') }} | {{ __('admin.paid') }} | {{ __('admin.outstanding') }} | {{ __('admin.due_date') }} |
|---|---|---|---|---|
| {{ $fee->semester->name ?? $dash }} | {{ number_format((float) $fee->net_amount, 2) }} | {{ number_format((float) $fee->paid_amount, 2) }} | {{ number_format((float) $fee->outstanding, 2) }} | {{ $fee->due_date ? $fee->due_date->format('Y-m-d') : $dash }} |
| {{ __('admin.no_records') }} | ||||
| {{ __('admin.semester') }} | {{ __('admin.gpa') }} | {{ __('admin.status') }} | {{ __('admin.result_date') }} |
|---|---|---|---|
| {{ $res->semester->name ?? (optional($res->semester)->number ? 'Semester '.optional($res->semester)->number : $dash) }} | {{ $res->gpa ?? $dash }} | {{ $resStatus ?: $dash }} | {{ $res->result_date ?: $dash }} |
| {{ __('admin.no_records') }} | |||
| {{ __('admin.activity') }} | {{ __('admin.course') }} | {{ __('admin.time') }} |
|---|---|---|
| {{ ucfirst(str_replace('_', ' ', $act->activity_type ?? 'Activity')) }} | {{ $act->course->title ?? $dash }} | {{ $act->occurred_at ? $act->occurred_at->format('Y-m-d H:i') : ($act->created_at ? $act->created_at->format('Y-m-d H:i') : $dash) }} |
| {{ __('admin.no_records') }} | ||