@extends('admin.layouts.app') @section('title', 'Application — ' . $application->form_number) @section('breadcrumb') @endsection @section('content')
Personal Information
Basic Details
{{-- --}} {{-- --}} @if ($application->type ==2) @endif
Full Name {{ $application->applicant_name ?? '--' }}
Date of Birth {{ $application->date_of_birth->format('d M Y') }}
Gender {{ ucfirst($application->gender) }}
Religion {{ $application->religion ?? '—' }}
Category {{ $application->category ?? '—' }}
Mobile {{ $application->contact_no ?? '--' }}
WhatsApp {{ $application->whatsapp_no ?? '—' }}
Email {{ $application->email ?? '--' }}
Aadhar No. {{ $application->aadhar_no ?? '—' }}
Differently Abled {{ $application->differently_abled == 1 ? 'Yes' : 'No' }}
Nationality {{ $application->nationality ?? '--' }}
Scholarship {{ strtoupper($application->scholarship ?? '--') }}
Aadhaar Number {{ $application->aadhaar_number ?? '--' }}
Academic Details
@php $subjects = $application->subjects_marks ?? []; @endphp @if ($application->type == 1) @endif @if ($application->type == 1) @endif @if ($application->type == 2) @endif
Applied For {{ $application->course ?? '--' }}
Subject {{ $application->subject ?? '--' }}
HS % {{ $application->percentage ?? '—' }}%
HS Subjects {{ collect($subjects)->pluck('name')->implode(', ') }}
Year of Passing H.S {{ $application->hs_passing_year ?? '—' }}
Name of the Board {{ $application->board_name ?? '—' }}
Previous Institution {{ $application->prev_institution ?? '—' }}
Previous Institution Address {{ $application->prev_institution_address ?? '—' }}
H.S.Reg No. {{ $application->hs_reg_no ?? '—' }}
Year of Graduation {{ $application->year_of_graduation ?? '—' }}
University Name {{ $application->university_name ?? '—' }}
University Registration No. {{ $application->university_reg_no ?? '—' }}
NAD / ABC ID {{ $application->nad_abc_id ?? '—' }}
Degree Status {{ $application->degree_status == 'final_declared' ? 'Final Declared' : 'Final Awarded' }}
Results Declaration Date {{ $application->results_declaration_date ?? '—' }}
{{ $application->type == 2 ? 'Semester Marks' : 'Subjects Marks' }}
@php // sample data provided by user; replace with real data variable as needed $subjectMarks = $application->subjects_marks ?? []; $totalFullMarks = collect($subjectMarks)->sum(function ($sub) { return $sub['full_marks'] ?? 0; }); $totalMarksObtained = collect($subjectMarks)->sum(function ($sub) { return $sub['marks_obtained'] ?? 0; }); $percentage = $totalFullMarks > 0 ? round(($totalMarksObtained / $totalFullMarks) * 100, 2) : null; @endphp
@foreach ($subjectMarks as $sub) @endforeach
{{ $application->type == 2 ? 'Semester' : 'Subject' }} Full Marks Marks Obtained
{{ $sub['name'] ?? '—' }} {{ $sub['full_marks'] ?? '—' }} {{ $sub['marks_obtained'] ?? '—' }}
Total {{ $totalFullMarks }} {{ $totalMarksObtained }}
Percentage {{ $percentage !== null ? $percentage . '%' : '—' }}
Family Information
Father
{{ $application->father_name ?? '—' }}
{{ $application->father_profession ?? '' }}
{{ $application->father_mobile ?? '' }}
Mother
{{ $application->mother_name ?? '—' }}
{{ $application->mother_profession ?? '' }}
{{ $application->mother_mobile ?? '' }}
@if ($application->type == 2)
Family Income
{{ $application->family_income ?? '—' }}
@endif
Address
Correspondence
{{ $application->address }},
{{ $application->pincode }}
Uploaded Documents
@if ($application->documents->count())
@foreach ($application->documents as $doc)
{{ in_array(pathinfo($doc->file_path, PATHINFO_EXTENSION), ['pdf']) ? '📄' : '🖼️' }}
{{ ucwords(str_replace('_', ' ', $doc->document_type)) }}
{{ $doc->original_filename }}
{{-- @if (!$doc->verified) @else @endif --}}
@endforeach {{--
{{ '📄' }}
{{ 'Application Pdf' }}
{{ $application->form_number . '.pdf' ?? '—' }}
@php $folderPath = storage_path('app/public/documents/' . $application->form_number); $expectedFile = $application->form_number . '.pdf'; $filePath = $folderPath . '/' . $expectedFile; $fileExists = file_exists($filePath) && is_file($filePath); $fileUrl = asset( 'storage/documents/' . $application->form_number . '/' . $expectedFile, ); @endphp
@if ($fileExists) @else
@csrf
@endif
--}}
@else
No documents uploaded yet.
@endif
Application Status
    @php // Define all statuses in order $allStatuses = [ 'step1_complete' => ['label' => 'Step 1 Completed', 'color' => 'bg-primary'], 'payment_completed' => ['label' => 'Payment Completed', 'color' => 'bg-info'], 'submitted' => ['label' => 'Document Submitted', 'color' => 'bg-warning'], 'application_selected' => ['label' => 'Shortlisted', 'color' => 'bg-success'], 'verified' => ['label' => 'Admitted', 'color' => 'bg-secondary'], ]; // Collect completed statuses from logs $completed = $application->statusLogs()->pluck('status')->toArray(); @endphp @foreach ($allStatuses as $status => $config) @php $isCompleted = in_array($status, $completed); $log = $application->statusLogs()->where('status', $status)->first(); @endphp
  • {{ $config['label'] }}
    @if ($isCompleted && $log) {{ \Carbon\Carbon::parse($log->created_at)->timezone('Asia/Kolkata')->format('d M Y, h:i A') }} @else Pending @endif
  • @endforeach
@if ($application->status === 'admitted' && $application->student)
Student Details
Student Code {{ $application->student->student_code }}
Roll No {{ $application->student->roll_no ?? '—' }}
Semester {{ $application->student->current_semester }}
View Student Profile
@endif
@endsection @push('scripts') @endpush