@php $path = public_path("images/company/$company->image"); $type = pathinfo($path, PATHINFO_EXTENSION); // if image file exists if(file_exists($path)){ $image = file_get_contents($path); $base64 = 'data:image/' . $type . ';base64,' . base64_encode($image); } if(!empty($admissionExam->sign_img) && file_exists(public_path("images/eims/admission_exam/sign/$admissionExam->sign_img"))){ $path = public_path("images/eims/admission_exam/sign/$admissionExam->sign_img"); $type = pathinfo($path, PATHINFO_EXTENSION); $image = file_get_contents($path); $signature = 'data:image/' . $type . ';base64,' . base64_encode($image); } @endphp
{{-- make the image vertically and horizontally center inside this div--}}
@if(isset($base64)) {{ $company->name }} @else
@endif
{{$company->name}}
{{$admissionExam->eims_faculty->name ?? null}}
@if(!empty($company->address))
Address: {{$company->address}}
@endif
{{ $company->phone ? "Phone: $company->phone" : null }} {{$company->telephone ? ', Telephone: ' . $company->telephone : null}}
@if(!empty($company->email))
Email: {{$company->email}}
@endif @if(!empty($company->website))
Website: {{$company->website}}
@endif


{{$admissionExam->name}} | {{$admissionExam->eims_semester_class->name}} | {{$admissionExam->eims_program->name}} | {{$admissionExam->eims_session->name}}

{{ $admissionExam->header_description }}

@php $meritPreAdmissions = $preAdmissions->where('eims_admission_exam_marks.ranking', '<=', $admissionExam->available_seat); $waitingPreAdmissions = $preAdmissions->where('eims_admission_exam_marks.ranking', '>', $admissionExam->available_seat) ->where('eims_admission_exam_marks.ranking', '<=', $admissionExam->available_seat + $admissionExam->waiting_seat); @endphp @if($meritPreAdmissions->count() > 0)

# Merit List:

@foreach($meritPreAdmissions as $index => $meritPreAdmission) @endforeach
SL Roll No Name Gender
{{ $index +1 }} {{ $meritPreAdmission->admission_no ?? 'N/A' }} {{ $meritPreAdmission->name ?? 'N/A' }} {{ ucfirst($meritPreAdmission->gender ?? 'N/A') }}
@endif @if($waitingPreAdmissions->count() > 0)

# Waiting List:

@php($sl = 1) @foreach($waitingPreAdmissions as $index => $waitingPreAdmission) @endforeach
SL Roll No Name Gender
{{$sl++ }} {{ $waitingPreAdmission->admission_no ?? 'N/A' }} {{ $waitingPreAdmission->name ?? 'N/A' }} {{ ucfirst($waitingPreAdmission->gender ?? 'N/A') }}
@endif

{{ $admissionExam->footer_description }}


@if(!empty($signature))
Signature
@endif
................................................
Authorized Signature