@php
$fields = [
'appli_email', 'mob_no', 'adult_status', 'birth_place',
'parent_marriage_place', 'isthere_nm_change', 'previous_nm', 'distinguishing_mark',
'occupation', 'employed_status', 'name_of_employer', 'address_of_employer', 'employer_contact_no',
'marital_status', 'divorsed_country', 'spouse_nationality', 'spouse_profession', 'spouse_birth_place',
'marriage_cert_issued', 'father_nationality', 'father_profession', 'mother_nationality',
'mother_profession', 'already_have_oci_card', 'have_dual_nationality', 'relative_in_india',
'nm_relative_in_india', 'addr_relative_in_india', 'relationship_with_appli', 'age_of_relative',
'arrival_port', 'arrival_date', 'father_name','father_birth_place', 'mother_name', 'mother_birth_place', 'visited_india', 'countries_visited',
'ref_india_name', 'ref_india_address', 'ref_india_phone', 'ref_home_name', 'ref_home_address',
'ref_home_phone', 'pre_nm_ifany', 'application_type', 'passport_booklet', 'employment_type',
'educational_qualification', 'passport_address', 'indian_mobile_no', 'police_station',
'emergency_contact_name', 'emergency_contact_address', 'emergency_contact_mobile_no',
'emergency_contact_email', 'have_pan_card', 'purpose_of_pcc',
'pcc_for_which_country', 'is_current_address_different', 'leave_date', 'duration_of_extension',
'current_visa_type', 'printable_addr', 'voterid_status', 'rationcard_status', 'docs_issued_state', 'docs_for_apostilled',
'expect_travel_dt', 'arrival_first_port', 'india_exit_port', 'country_visited_5years',
'birth_place_father', 'birth_place_mother','father_currently_living', 'mother_currently_living'
];
//echo count($applicants); exit;
$k=1;
@endphp
@foreach($applicants as $key => $app)
Applicant Name-: {{ $app->appli_nm }}
Service-: {{ $app->service->menu_title }}
@foreach ($fields as $field)
@if($app->$field != null)
@endif
@endforeach
@php $k.=1; @endphp
@endforeach