@extends('layouts.app') @section('title', 'Students') @section('breadcrumb') @endsection @section('content') @php // Get current active class detail $currentClass = $student->classDetails->first(); @endphp

Student Management

Student Details
{{-- ================= PERSONAL INFO ================= --}}
Personal Information
Admission No: {{ $student->admission_no }}
Admission Date: {{ $student->class->admission_date }}
Status: {{ $student->status ? 'Active' : 'Inactive' }}
Name: {{ $student->name }}
DOB: {{ \Carbon\Carbon::parse($student->dob)->format('d M Y') }}
Gender: {{ $student->gender }}
Nationality: {{ $student->nationality }}
Mother Tongue: {{ $student->mother_tongue }}
Category: {{ $student->category }}
Caste: {{ $student->cast }}
Minority: {{ $student->belongs_to_minority_group ? 'Yes':'No' }}
PH: {{ $student->is_disability_ph ? 'Yes':'No' }}
Transport Required: {{ $student->is_transport_required ? 'Yes':'No' }}
{{-- ================= ADDRESS ================= --}}
Address
Permanent Address:
{{ $student->address }}
Local Address:
{{ $student->local_address }}
{{-- ================= CLASS DETAILS ================= --}}
Class Details
@if($currentClass)
Class: {{ $currentClass->class->class_name }}
Section: {{ $currentClass->section->section_name }}
Academic Year: {{ $currentClass->financialYear->label }}
@endif {{-- ================= PARENT DETAILS ================= --}}
Parent / Guardian Details
Father Name: {{ $student->parent->father_name }}
Mother Name: {{ $student->parent->mother_name }}
Father Occupation: {{ $student->parent->father_occupation }}
Mother Occupation: {{ $student->parent->mother_occupation }}
Father Phone: {{ $student->parent->father_phone }}
Mother Phone: {{ $student->parent->mother_phone }}
Guardian Name: {{ $student->parent->guardian_name }}
Guardian Phone: {{ $student->parent->guardian_phone }}
Guardian Address:
{{ $student->parent->guardian_address }}
{{-- ================= DOCUMENTS ================= --}}
Documents

@if($student->profile_image) @else Not Uploaded @endif

@if($student->dob_photo_copy) Download DOB Proof @else Not Uploaded @endif
@endsection