@php function getBase64Img($path) { $full = public_path($path); if (!file_exists($full)) return ''; $ext = pathinfo($full, PATHINFO_EXTENSION); return 'data:image/'.$ext.';base64,'.base64_encode(file_get_contents($full)); } $logoMan = getBase64Img('images/logo.png'); $logoKemenag = getBase64Img('images/logo-kemenag.png'); $photo = ''; if ($applicant->photo && file_exists(public_path('storage/'.$applicant->photo))) { $photo = getBase64Img('storage/'.$applicant->photo); } @endphp
KARTU UJIAN

KEMENTERIAN AGAMA REPUBLIK INDONESIA

MADRASAH ALIYAH NEGERI 1 PALEMBANG

Jl. Gubernur H. Ahmad Bastari (Jl.Pendidikan) Jakabaring
KARTU PESERTA UJIAN MASUK
TAHUN PELAJARAN {{ $applicant->academic_year }}
NOMOR PESERTA : {{ $applicant->registration_number }}
NAMA PESERTA : {{ strtoupper($applicant->full_name) }}
TEMPAT, TGL LAHIR : {{ $applicant->birth_place }}, {{ $applicant->birth_date ? $applicant->birth_date->format('d/m/Y') : '' }}
JENIS KELAMIN : {{ $applicant->gender == 'L' ? 'LAKI-LAKI' : 'PEREMPUAN' }}
ASAL SEKOLAH : {{ $applicant->education->previous_school_name ?? '-' }}
JALUR SELEKSI : {{ strtoupper($applicant->pathway->name ?? '-') }}
LOKASI TES : MAN 1 PALEMBANG
@if($photo) Foto @else
FOTO
3x4
@endif
CATATAN PENTING:
  1. Kartu ini wajib dibawa saat mengikuti tes seleksi.
  2. Peserta wajib hadir 30 menit sebelum jadwal tes dimulai.
  3. Memakai seragam sekolah asal dan bersepatu.
  4. Membawa alat tulis (Pensil 2B, Penghapus, Pena Hitam, Papan Ujian).
  5. Dilarang membawa HP/Alat komunikasi ke dalam ruang ujian.