@php $photo = null; $signature = null; foreach ($application->documents as $doc) { if ($doc->document_type === 'photograph') { $photo = storage_path('app/public/' . $doc->file_path); } if ($doc->document_type === 'signature') { $signature = storage_path('app/public/' . $doc->file_path); } } @endphp

STUDENT APPLICATION FORM

Form No: {{ $application->form_number ?? '--' }}
Name: {{ $application->applicant_name }}
Father: {{ $application->father_name }}
Mother: {{ $application->mother_name }}
Gender: {{ $application->gender }}
DOB: {{ $application->date_of_birth }}
PHOTOGRAPH
@if ($photo && file_exists($photo)) @else
Not Uploaded
@endif
SIGNATURE
@if ($signature && file_exists($signature)) @else
Not Uploaded
@endif
Course {{ $application->course }} Subject {{ $application->subject }}
Category {{ $application->category }} Differently Abled {{ $application->differently_abled ? 'Yes' : 'No' }}
Email {{ $application->email }}
Contact No {{ $application->contact_no }}
Address {{ $application->address }}
Pincode {{ $application->pincode }}
Nationality {{ $application->nationality }}
Religion {{ $application->religion }}
Name of the Board / Council {{ $application->board_name }}
Year of Passing H.S. / Equiv. Exam {{ $application->hs_passing_year }}
Previous Institution {{ $application->prev_institution }}
Institution Address {{ $application->prev_institution_address }}
H.S. / Equiv. Registration No {{ $application->hs_reg_no }}
Unique ID / Roll No {{ $application->hs_unique_id_roll }}

Subjects & Marks

@foreach ($application->subjects_marks as $i => $sub) @endforeach
# Subject Full Marks Marks Obtained
{{ $i + 1 }} {{ $sub['name'] }} {{ $sub['full_marks'] }} {{ $sub['marks_obtained'] }}
Aggregate Marks {{ $application->aggregate_marks }} Percentage (%) {{ $application->percentage }}