@php
$imagePath = $student->profile_pic
? public_path('storage/uploads/students/thumbnail/' . $student->profile_pic)
: public_path('assets/frontend/images/avatar.png');
// Inline image as base64 for PDF
if (file_exists($imagePath)) {
$imageData = base64_encode(file_get_contents($imagePath));
$imageSrc = 'data:image/' . pathinfo($imagePath, PATHINFO_EXTENSION) . ';base64,' . $imageData;
} else {
$imageSrc = '';
}
@endphp
|
| Name: |
{{ $student->first_name }} {{ $student->last_name }} |
| ID: |
{{ $student->id_number }} |
| Email: |
{{ $student->email }} |
| Phone: |
{{ $student->contact_number ?? '-' }} |
| NID/Passport: |
{{ $student->nid_birth ?? '-' }} |
| Blood Group: |
{{ $student->blood_group ?? '-' }} |
| Gender: |
{{ $student->gender == 1 ? 'Male' : 'Female' }} |
|
Blood Group: {{ $student->blood_group ?? '-' }}
Gender: {{ $student->gender == 1 ? 'Male' : 'Female' }}
Date of Birth: {{ $student->dob ? \Carbon\Carbon::parse($student->dob)->format('d M Y') : '-' }}
|
|