@extends('admin.layouts.app') @section('content')
Back
Dispatch no.: {{ $VerRelation->chalani_no ?? '' }}
Date: {{ \Carbon\Carbon::parse($VerRelation->date ?? now())->format('d F, Y') }}

{{$VerRelation->subject}}

@php // Helper function to get title based on gender and marital status // Decode relations $relations = is_string($VerRelation->relations) ? json_decode($VerRelation->relations, true) : $VerRelation->relations; @endphp

This is to verify that applicant {{ getTitle($VerRelation->gender, $VerRelation->applicant_marital_status) }} {{ $VerRelation->applicant_name ?? '' }} holder of Nepali Citizenship Certificate No. {{ $VerRelation->applicant_citizen ?? '' }} @if ($VerRelation->applicant_id_no != null) and National ID No. {{ $VerRelation->applicant_id_no }} @endif @if ($VerRelation->applicant_passport != null) and Passport No. {{ $VerRelation->applicant_passport }} @endif @if($VerRelation->applicant_grandfather == NULL) @else @if ($VerRelation->gender == 'Male') grandson @else granddaughter @endif of {{ getTitle('Male') }} {{ $VerRelation->applicant_grandfather ?? '' }}, @endif @if ($VerRelation->gender == 'Male') son @else daughter @endif of {{ getTitle('Male') }} {{ $VerRelation->applicant_father ?? '' }} and {{ getTitle('Female', 'Married') }} {{ $VerRelation->applicant_mother ?? '' }}, permanent resident of ward No. {{ $VerRelation->ward->name ?? ($VerRelation->previous_ward_no ?? '') }} @if($VerRelation->previous_ward_no == null) @else (Previous ward No. {{ $VerRelation->previous_ward_no ?? '' }}), @endif {{ $VerRelation->municipality->name ?? '' }}, {{ $VerRelation->district ?? '' }}, {{ $VerRelation->provinance ?? '' }}, Nepal. has the following relationship with the under mentioned persons.

@if (isset($relations) && is_array($relations) && count($relations) > 0) @foreach ($relations as $index => $relation) @endforeach @endif
S.N Name Citizenship Certificate No Relationship with the Applicant
1 {{ getTitle($VerRelation->gender, $VerRelation->applicant_marital_status) }} {{ $VerRelation->applicant_name ?? '' }} {{ $VerRelation->applicant_citizen ?? '' }} Self (Applicant)
{{ $index + 2 }} {{ getTitle($relation['relation_gender'] ?? 'Male', $relation['married_status'] ?? null) }} {{ $relation['relation_name'] ?? '' }} {{ $relation['relation_citizen'] ?? '' }} {{ $relation['relation'] ?? '' }}
Photo Verification
@if (isset($VerRelation->applicant_photo) && $VerRelation->applicant_photo) {{ $VerRelation->applicant_name ?? 'Applicant' }} @else
PHOTO
@endif
Applicant
{{ getTitle($VerRelation->gender, $VerRelation->applicant_marital_status) }} {{ $VerRelation->applicant_name ?? '' }}
@if (isset($relations) && is_array($relations) && count($relations) > 0) @foreach ($relations as $relation)
@if (isset($relation['photo']) && $relation['photo']) {{ $relation['relation_name'] ?? 'Photo' }} @else
PHOTO
@endif
{{ ucfirst($relation['relation'] ?? 'Relation') }}
{{ getTitle($relation['relation_gender'] ?? 'Male', $relation['married_status'] ?? null) }} {{ $relation['relation_name'] ?? '' }}
@endforeach @else
No relations information available.
@endif

This letter is issued on the basis of the applicant's written self-declaration, official inquiry and investigation carried out at the local level, confirmation by competent witnesses, and in accordance with the Section 12 of the Local Government Operation Act, 2074 BS (2017 AD).

{{ $Wardchairman->name ?? '' }}
{{ $Wardchairman->position ?? 'Ward Chairman' }}
{{ $Wardchairman->municipality->name ?? 'Bhaktapur Municipality' }}, Ward {{ $Wardchairman->ward->name ?? '2' }}
@endsection