@extends('school.layouts.app') @section('content')

Enquiry #{{ $enquiry->id }}

{{ $enquiry->student_name }} — {{ $enquiry->seeking_class }}

{!! $statusBadge !!} {{ $enquiry->created_at->diffForHumans() }}
@php $registration = \App\Models\Registration::where('enquiry_id', $enquiry->id)->first(); @endphp
Edit

Student Information

Student Name

{{ $enquiry->student_name }}

Date of Birth

{{ $enquiry->date_of_birth?->format('d M Y') }}

@if($enquiry->date_of_birth) @php $dob = \Carbon\Carbon::parse($enquiry->date_of_birth); $now = \Carbon\Carbon::now(); $years = floor($dob->diffInYears($now)); $months = floor($dob->copy()->addYears($years)->diffInMonths($now)); $days = floor($dob->copy()->addYears($years)->addMonths($months)->diffInDays($now)); @endphp

{{ $years }}y {{ $months }}m {{ $days }}d

@endif

Gender

@if($enquiry->gender === 'Male') @elseif($enquiry->gender === 'Female') @else @endif {{ $enquiry->gender }}

Seeking Class

{{ $enquiry->seeking_class }}

Enquiry Source

{{ $enquiry->enquiry_source }}

Enquiry Date

{{ $enquiry->created_at->format('d M Y, h:i A') }}

Parental Details

Father's Name

{{ $enquiry->father_name ?? 'N/A' }}

Mother's Name

{{ $enquiry->mother_name ?? 'N/A' }}

Contact Number

{{ $enquiry->contact_number }}

Email

@if($enquiry->email) {{ $enquiry->email }} @else Not provided @endif

Address

{{ $enquiry->address ?? 'N/A' }}

@if($document)

Scanned Document

@endif
@endsection