@php // Fungsi untuk convert gambar ke base64 function imageToBase64($path) { if (file_exists($path)) { $type = pathinfo($path, PATHINFO_EXTENSION); $data = file_get_contents($path); return 'data:image/' . $type . ';base64,' . base64_encode($data); } return ''; } // Cek beberapa kemungkinan path logo $logoPaths = [ public_path('images/logo/logo1.png'), public_path('images/logo/logo1.jpg'), public_path('img/logo/logo1.png'), public_path('assets/images/logo/logo1.png'), base_path('public/images/logo/logo1.png'), $_SERVER['DOCUMENT_ROOT'] . '/images/logo/logo1.png', ]; $logoBase64 = ''; foreach ($logoPaths as $path) { if (file_exists($path)) { $logoBase64 = imageToBase64($path); break; } } // Cek beberapa kemungkinan path TTD $ttdPaths = [ public_path('images/ttd_cap_fix.png'), public_path('images/ttd_cap_fix.jpg'), public_path('img/ttd_cap_fix.png'), public_path('assets/images/ttd_cap_fix.png'), base_path('public/images/ttd_cap_fix.png'), $_SERVER['DOCUMENT_ROOT'] . '/images/ttd_cap_fix.png', ]; $ttdBase64 = ''; foreach ($ttdPaths as $path) { if (file_exists($path)) { $ttdBase64 = imageToBase64($path); break; } } // Jika masih tidak ditemukan, coba cari manual dengan glob if (empty($logoBase64)) { $foundLogo = glob(public_path('**/logo1.png')); if (!empty($foundLogo)) { $logoBase64 = imageToBase64($foundLogo[0]); } } if (empty($ttdBase64)) { $foundTtd = glob(public_path('**/ttd_cap_fix.png')); if (!empty($foundTtd)) { $ttdBase64 = imageToBase64($foundTtd[0]); } } @endphp
@if(!empty($logoBase64)) @else
Logo
@endif

FORMULIR PENDAFTARAN

CALON MAHASISWA BARU
{{ strtoupper($settings['nama kampus'] ?? 'INSTITUT SAINS DAN TEKNOLOGI AL-KAMAL') }}

Nomor Pendaftaran {{ $registrationData->daftar_id }}
Tanggal Pendaftaran {{ date('d-m-Y H:i:s') }}
Biaya Pendaftaran S1: Rp 200.000,-  |  S1 RPL: Rp 500.000,-  |  S2 RPL: Rp 1.000.000,-  |  S2: Rp 1.500.000,-
Nomor Rekening
BANK BNI
8282823875
a.n. Edukasi Indonesia Jaya
Note: Bisa juga datang ke kampus bertemu dengan staff PMB kami untuk melakukan pembayaran langsung.
A. DATA PRIBADI
Nama Lengkap {{ strtoupper($registrationData->nama_leng) }}
Jenis Kelamin {{ $registrationData->j_kel == 'L' ? 'Laki-laki' : 'Perempuan' }}
Tempat, Tanggal Lahir {{ $registrationData->tmpt_lahir }}, {{ $registrationData->tgl_lahir }}
Nama Ibu Kandung {{ $registrationData->ibu }}
Agama {{ $registrationData->agama }}
B. ALAMAT & KONTAK
Alamat KTP {{ $registrationData->al_ktp }}
Alamat Domisili {{ $registrationData->al_dom ?: '-' }}
Nomor KTP {{ $registrationData->no_ktp }}
Nomor Darurat (Orang Tidak Serumah) {{ $registrationData->no_hp ?: '-' }}
Nomor HP/WhatsApp {{ $registrationData->no_wa }}
Email {{ $registrationData->email }}
C. DATA PENDIDIKAN
Perguruan Tinggi {{ $registrationData->kampus }}
Jurusan {{ $registrationData->jurusan }}
Kelas {{ $registrationData->kelas }}
Lulusan {{ $registrationData->lulusan }}
Nama Sekolah / Universitas {{ $registrationData->sekolah }}
D. DATA LAINNYA
Pekerjaan {{ $registrationData->pekerjaan }}
Ukuran Jaket Almamater {{ $registrationData->jaket }}
Sumber Informasi {{ $registrationData->info }}
Biaya {{ $registrationData->biaya }}

{{ $settings['nama kampus'] ?? 'INSTITUT SAINS DAN TEKNOLOGI AL-KAMAL' }}

@if(!empty($ttdBase64)) TTD Cap @else
Cap & TTD
@endif

STAFF PMB

(_____________________)

{{ date('d-m-Y') }}

Calon Mahasiswa,

{{ strtoupper($registrationData->nama_leng) }}