@php function getPronoun($gender, $type, $startOfSentence = true): string { $pronoun = ''; if ($type === 'subject') { $pronoun = $gender == 'male' ? 'He' : 'She'; } else if ($type === 'possessive') { $pronoun = $gender == 'male' ? 'His' : 'Her'; }elseif ($type === 'child') { $pronoun = $gender == 'male' ? 'son' : 'daughter'; } return $startOfSentence ? $pronoun : strtolower($pronoun); } if ($companyType === 'UNV'){ $principalLabel = 'Chancellor'; }elseif ($companyType === 'SCL'){ $principalLabel = 'Headmaster'; }else{ $principalLabel = 'Principal'; } function isMozilla(): bool { $userAgent = $_SERVER['HTTP_USER_AGENT']; return str_contains($userAgent, 'Firefox'); } @endphp
This is to certify that {{ $student?->name ?? '' }} {{getPronoun($student?->gender, 'child', true)}} of {{ $student?->eims_student_information?->father_name ?? ''}} (Father) and {{ $student?->eims_student_information?->mother_name ?? '' }} (Mother), residing in District {{$student?->eims_student_information?->permanent_dist ?? '' }} Upazila {{ $student?->eims_student_information?->permanent_ps ?? '' }} {{ getPronoun($student?->gender, 'subject', true) }} has been a regular student of this institution in the session {{ $student?->eims_session?->name ?? '' }} in class {{ $student?->eims_semester_class?->name ?? '' }} . {{ getPronoun($student?->gender, 'possessive', true) }} class roll number is {{ $student?->roll_no ?? '' }} .
To the best of my knowledge, {{ getPronoun($student?->gender, 'subject', false) }} has not engaged in any activities that undermine the standards of school discipline. {{ getPronoun($student?->gender, 'subject', true) }} is known for {{ getPronoun($student?->gender, 'possessive', false) }} exemplary behavior and character. I wish {{ getPronoun($student?->gender, 'possessive', false) }} every success in life.
I wish {{ getPronoun($student?->gender, 'possessive', false) }} every success in life.