@extends('layouts.admin') @section('title', 'Application Details') @section('content')

Application Details

{{ $application->applicationStatus->status_name ?? 'N/A' }} View History
{{-- Basic Details --}} {{-- User Details --}} {{-- Personal Info --}} {{-- Guardian Details --}} {{-- Death Details --}} {{-- Address --}} {{-- Medical & Financial Info --}} {{-- Society Details --}} {{-- Dates --}}
Application Number {{ $application->application_number ?? 'N/A' }}
Application Type {{ $application->applicationType->application_type_name ?? 'N/A' }}
Applicant Name {{ $application->name ?? 'N/A' }}
Phone Number {{ $application->phone_number ?? 'N/A' }}
User Details @if ($application->user)
Name: {{ $application->user->name ?? 'N/A' }}
Email: {{ $application->user->email ?? 'N/A' }}
Phone Number: {{ $application->user->phone_number ?? 'N/A' }}
@else N/A @endif
Personal Information
Aadhaar Number {{ $application->aadhaar_number ?? 'N/A' }}
Child’s Aadhaar Number {{ $application->childs_aadhaar_number ?? 'N/A' }}
Ration Card Number {{ $application->ration_card_number ?? 'N/A' }}
Annual Income {{ $application->annual_income ?? 'N/A' }}
Birth Certificate Number {{ $application->birth_certificate_number ?? 'N/A' }}
Guardian Name: {{ $application->guardian_name ?? 'N/A' }}
Phone: {{ $application->guardians_phone_number ?? 'N/A' }}
Relationship: {{ $application->guardianRelationship->name ?? 'N/A' }}
Death Details
Father’s Death Details Certificate No: {{ $application->death_certificate_number_father ?? 'N/A' }}
Date of Death: {{ $application->date_of_death_father ? \Carbon\Carbon::parse($application->date_of_death_father)->format('d-m-Y') : 'N/A' }}
Mother’s Death Details Certificate No: {{ $application->death_certificate_number_mother ?? 'N/A' }}
Date of Death: {{ $application->date_of_death_mother ? \Carbon\Carbon::parse($application->date_of_death_mother)->format('d-m-Y') : 'N/A' }}
Address (From Address Book)
@if ($application->addressBook)
@if ($application->addressBook->door_no)
Door No: {{ $application->addressBook->door_no }}
@endif @if ($application->addressBook->building_name)
Building Name: {{ $application->addressBook->building_name }}
@endif @if ($application->addressBook->street)
Street: {{ $application->addressBook->street }}
@endif @if ($application->addressBook->city)
City: {{ $application->addressBook->city }}
@endif @if ($application->addressBook->postOffice)
Post Office: {{ $application->addressBook->postOffice->post_office_name ?? 'N/A' }}
@endif @if ($application->addressBook->district)
District: {{ $application->addressBook->district->district ?? 'N/A' }}
@endif @if ($application->addressBook->taluk)
Taluk: {{ $application->addressBook->taluk->taluk_name ?? 'N/A' }}
@endif @if ($application->addressBook->state)
State: {{ $application->addressBook->state }}
@endif @if ($application->addressBook->country)
Country: {{ $application->addressBook->country }}
@endif @if ($application->addressBook->postOffice && $application->addressBook->postOffice->pincode)
Pincode: {{ $application->addressBook->postOffice->pincode }}
@elseif ($application->addressBook->pincode)
Pincode: {{ $application->addressBook->pincode }}
@endif
@else N/A @endif
Medical & Financial Information
Hospital {{ $application->hospital->name ?? 'N/A' }}
Disease / Accident {{ $application->diseaseAccident->name ?? 'N/A' }}
Disease / Accident Description {{ $application->disease_accident_description ?? 'N/A' }}
Financial Details
Amount by HQ Staff: {{ $application->amount_by_hq_staff ?? 'N/A' }}
Amount Approved by Registrar: {{ $application->amount_approved_by_registrar ?? 'N/A' }}
Amount Expected for Treatment: {{ $application->amount_expected_for_treatment ?? 'N/A' }}
Amount Spent: {{ $application->amount_spent ?? 'N/A' }}
Society Information
Society Name {{ $application->society->name ?? 'N/A' }}
Society Type {{ $application->society->societyType->name ?? 'N/A' }}
District {{ $application->society->district->district ?? 'N/A' }}
Taluk {{ $application->society->taluk->taluk_name ?? 'N/A' }}
Membership Number {{ $application->society_membership_number ?? 'N/A' }}
SB Account Number {{ $application->society_sb_account_number ?? 'N/A' }}
Timestamps
Submitted At {{ $application->submitted_at ? \Carbon\Carbon::parse($application->submitted_at)->format('d-m-Y H:i A') : 'N/A' }}
Created At {{ $application->created_at ? \Carbon\Carbon::parse($application->created_at)->format('d-m-Y H:i A') : 'N/A' }}
Updated At {{ $application->updated_at ? \Carbon\Carbon::parse($application->updated_at)->format('d-m-Y H:i A') : 'N/A' }}
{{-- Attachments --}}
Attachments
{{-- Medical Certificate --}} @if ($application->MedicalCertificate)

Medical Certificate: {{ $application->MedicalCertificate->attachment_name ?? 'View File' }}

@else

Medical Certificate: N/A

@endif {{-- Other Attachments --}} @if ($application->OtherAttachments && $application->OtherAttachments->count())

Other Attachments: @foreach ($application->OtherAttachments as $attachment) {{ $attachment->attachment_name ?? 'View File' }} @if (!$loop->last) , @endif @endforeach

@else

Other Attachments: N/A

@endif
@endsection