@php $pgCategories = ['UR', 'SC', 'ST', 'OBC', 'EWS', 'PwD']; // Date of birth $dob = $app->date_of_birth ? \Carbon\Carbon::parse($app->date_of_birth) : null; $ddmm = $dob ? $dob->format('d/m/Y') : ''; // Address $addrFull = trim($app->address ?? ''); // Subjects/marks — stored as JSON array of {name, full_marks, marks_obtained} $subjects = is_array($app->subjects_marks) ? $app->subjects_marks : (is_string($app->subjects_marks) ? json_decode($app->subjects_marks, true) : []); $subjects = $subjects ?? []; // Results declaration date — safe parse $resultsDate = null; if ($app->results_declaration_date) { try { $resultsDate = \Carbon\Carbon::parse($app->results_declaration_date); } catch (\Exception $e) { $resultsDate = null; } } // Degree status flags $degreeStatus = $app->degree_status ?? ''; $isDeclared = str_contains($degreeStatus, 'final_declared'); $isAwaited = str_contains($degreeStatus, 'final_awaited'); // Aggregate totals from semester entries $totalFullMarks = 0; $totalMarksObtained = 0; foreach ($subjects as $s) { $totalFullMarks += (float)($s['full_marks'] ?? 0); $totalMarksObtained += (float)($s['marks_obtained'] ?? 0); } $semLabels = ['Semester-I','Semester-II','Semester-III','Semester-IV','Semester-V','Semester-VI']; @endphp Application Form — {{ $app->form_number }} {{-- ─────────── HEADER ─────────── --}}
@php $logo = public_path('images/logo.png'); @endphp @if (file_exists($logo)) @endif
St. Xavier's College (Autonomous), Burdwan
ST. XAVIER'S ROAD  ★  P.O. SRIPALLI  ★  Dt. PURBA BARDHAMAN  ★  W.B. 713103
Recognized by UGC under Section 2(f) & 12(B), NAAC B++ Grade, AICTE Approved
ISO Certified, A Jesuit Minority Autonomous Institution
Academic Session 2026-2027
APPLICATION FORM – 2 YEARS PG COURSE
 
{{-- ─────────── TOP ROW (Form No / Course / Category / Photo) ─────────── --}} {{-- LEFT: form no, course, subject, gender --}} {{-- RIGHT: category + photo --}}
Form No. : {{ $app->form_number }}
Name of the Course: {{ $app->course }}
Department / Subject: {{ $app->subject }}
Gender: {!! tick($app->gender === 'Male') !!} Male    {!! tick($app->gender === 'Female') !!} Female    {!! tick($app->gender === 'Transgender') !!} Transgender    {!! tick(!in_array($app->gender, ['Male','Female','Transgender'])) !!} Others
[Put (✓) on the appropriate box]
@foreach ($pgCategories as $cat) @endforeach @foreach ($pgCategories as $cat) @endforeach
{{ $cat }}
{!! tick(strtoupper($app->category) === strtoupper($cat)) !!}
@if ($photo) Photo @else Paste recent
stamp sized
photograph @endif
{{-- ─────────── 1. Name of the Applicant ─────────── --}}
1.  Name of the Applicant
(In block letters)
{!! charBoxes($app->applicant_name, 26) !!}
{{-- ─────────── 2. Father's Name ─────────── --}}
2.  Father's Name {!! charBoxes($app->father_name, 26) !!}
{{-- ─────────── 3. Mother's Name ─────────── --}}
3.  Mother's Name {!! charBoxes($app->mother_name, 26) !!}
{{-- ─────────── 4. DOB | 5. Contact ─────────── --}}
4.  Date of Birth: {!! charBoxes($ddmm, 10, 16) !!} 5.  Contact No. {!! charBoxes($app->contact_no, 12, 16) !!}
{{-- ─────────── 6. Differently abled | 7. Nationality ─────────── --}}
6.  Differently abled: {!! tick(!$app->differently_abled) !!} No   {!! tick((bool) $app->differently_abled) !!} Yes 7.  Nationality {{ $app->nationality }}
{{-- ─────────── 8. Religion | 9. Email ─────────── --}}
8.  Religion: {{ $app->religion }} 9.  E-mail ID {{ $app->email }}
{{-- ─────────── 10. Address ─────────── --}}
10.  Address for Correspondence:
 
{{ $addrFull }}
 
  Pin {!! charBoxes($app->pincode, 6, 16) !!}
{{-- ─────────── 11. Year of Graduation | 12. University ─────────── --}}
11.  Year of Graduation:
{!! charBoxes((string) $app->year_of_graduation, 4, 18) !!}
12.  Name of the University
{!! charBoxes($app->university_name, 24, 16) !!}
{{-- ─────────── 13. Previous institution ─────────── --}}
13.  Name of the previous College / Institution & Address
 
@php $prev = trim($app->prev_institution ?? ''); $prevAddr = trim($app->prev_institution_address ?? ''); echo e($prev . ($prevAddr ? ' — ' . $prevAddr : '')); @endphp
 
{{-- ─────────── 14. Graduation Semester-wise Marks ─────────── --}}
14.  Graduation Details (Semester-wise Marks)
@foreach ($semLabels as $i => $label) @php $sem = $subjects[$i] ?? null; @endphp @endforeach
Semester Full Marks Marks Obtained
{{ $label }} {{ $sem ? $sem['full_marks'] : '' }} {{ $sem ? $sem['marks_obtained'] : '' }}
Aggregate @php $aggFull = $app->aggregate_marks ?? ($totalFullMarks > 0 ? rtrim(rtrim(number_format($totalFullMarks, 2, '.', ''), '0'), '.') : ''); echo $aggFull; @endphp {{ $totalMarksObtained > 0 ? rtrim(rtrim(number_format($totalMarksObtained, 2, '.', ''), '0'), '.') : '' }}
Percentage of Marks (%) {{ $app->percentage ? $app->percentage . '%' : '' }}
Graduation / University Details:
University Registration No.
{!! charBoxes($app->university_reg_no, 14, 16) !!}
NAD / ABC ID
{!! charBoxes($app->nad_abc_id, 14, 16) !!}
{{--
H.S. Reg. No.
{!! charBoxes($app->hs_reg_no, 14, 16) !!}
Roll / Unique ID
{!! charBoxes($app->hs_unique_id_roll, 14, 16) !!}
--}}
{{-- ─────────── 15. Status of Degree ─────────── --}}
15.  Status of Degree:   {!! tick($isDeclared) !!} Final Results Declared     {!! tick($isAwaited) !!} Final Results Awaited
{{-- ─────────── 16. Month & Year of Results Declaration ─────────── --}}
16.  Month & Year of Results Declaration:   {{ $resultsDate ? $resultsDate->format('F') : ($app->results_declaration_date ?? '') }}   {{ $resultsDate ? $resultsDate->format('Y') : '' }}
{{-- ─────────── 17. Scholarship | 18. Aadhaar ─────────── --}}
17.  Scholarship / Stipend:   {!! tick(strtolower($app->scholarship ?? '') === 'yes') !!} Yes   {!! tick(strtolower($app->scholarship ?? '') !== 'yes') !!} No @if ($app->scholarship && !in_array(strtolower($app->scholarship), ['yes', 'no']))  ({{ $app->scholarship }}) @endif 18.  Aadhaar Number: @php $aadhaarNumber = preg_replace('/\s+/', '', $app->aadhaar_number ?? ''); @endphp {{-- @dd($aadhaarNumber); --}} {!! charBoxes($aadhaarNumber, 12, 16) !!}
{{-- ─────────── 19. Father Profession | 20. Family Income ─────────── --}}
19.  Father's / Guardian Profession:
{{ $app->father_profession }}
20.  Family Income (per annum):
{{ $app->family_income }}
{{-- ─────────── DECLARATION ─────────── --}}
    I declare that I shall abide by all the rules and regulations both in case of examinations and in case of discipline in the campus and in any incident of my failure; I shall be liable to be punished as per decision of the College Authority.
{{-- ─────────── SIGNATURES ─────────── --}}
Full Signature of the Guardian with Date
@if ($signature) Signature @endif
Full Signature of the Applicant with Date