@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 Testimonial @foreach($students as $student)
@if($studentTestimonialDesign->is_visible_watermark) is_visible_logo_image && is_file("images/eims/setting/marksheet_design/logo_image/$studentTestimonialDesign->logo_image")) src="{{ asset("images/eims/setting/student_testimonial_design/logo_image/$studentTestimonialDesign->logo_image") }}" @elseif(is_file("images/company/$company->image")) src="{{ asset("images/company/$company->image") }}" @endif class="watermark" alt="Watermark" > @endif image")}}" alt="Institute Logo" class="logo">
{{$company->name}}
{{$company->address}}
Tel: {{$company->telephone}}
e-mail: {{$company->email}}
web: {{$company->website}}
Testimonial
SL No: {{$slNo++}}
Date: {{date('j/m/Y', strtotime($branch_campus_active_date))}}

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.






@if( file_exists(base_path() . "/public/images/eims/setting/student_testimonial_design/principal_signature_image/$studentTestimonialDesign->principal_signature_image")) {{-- signature image--}} principal_signature_image")}}" alt="{{$studentTestimonialDesign->principal_name}} Signature" style="width: 80px; height: 30px;" class="photo"> @else
@endif
{{$studentTestimonialDesign->principal_name}}
{{$principalLabel}}
@endforeach