@php
$companyName = 'Company Name';
$cinLabel = 'Corporate Identity Number (CIN)';
$companyPostalAddress = 'Postal address with telephone numbers and email address';
if (!empty($source) && $source == 'cnpn') {
$companyName = 'Name of the Applicant';
$cinLabel = 'CIN (if applicable):';
$companyPostalAddress = 'Complete Postal Address';
}
@endphp
(a) Name of the applicanti
{{ $user->name ?? '' }}
@php
$typeLabels = [
'C' => ['label' => $cinLabel, 'field' => 'cin'],
'PSU' => ['label' => $cinLabel, 'field' => 'cin'],
'I' => ['label' => $cinLabel, 'field' => 'cin'],
'L' => ['label' => 'LLPIN:', 'field' => 'cin'],
'F' => ['label' => 'FCPR:', 'field' => 'cin'],
'IE' => ['label' => 'PAN:', 'field' => 'pan'],
'IF' => ['label' => 'Aadhaar:', 'field' => 'aadhaar'],
'IH' => ['label' => 'Passport Number:', 'field' => 'passport_no'],
'NGO' => ['label' => 'NGO Reg. Number:', 'field' => 'cin'],
];
$userType = $user->user_type ?? null;
$config = $typeLabels[$userType] ?? null;
@endphp
@if ($config)
(b) {{ $config['label'] }}2
{{ $user->{$config['field']} ?? '' }}
@endif