@php
function getBase64($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 = getBase64('images/logo.png');
$logoKemenag = getBase64('images/logo-kemenag.png');
$photo = '';
if ($applicant->photo && file_exists(public_path('storage/'.$applicant->photo))) {
$photo = getBase64('storage/'.$applicant->photo);
}
@endphp
MAN 1 PALEMBANG
PANITIA PENERIMAAN MURID BARU (PMB) JALUR {{ strtoupper($applicant->pathway->name ?? 'REGULER') }}
TAHUN PELAJARAN {{ $applicant->academic_year }}
KARTU TANDA DAFTAR PESERTA MURID BARU
NO. DAFTAR : {{ $applicant->registration_number }} | TANGGAL DAFTAR : {{ $applicant->created_at->format('d/m/Y') }}
| NISN / NIS |
: |
{{ $applicant->nisn }} |
| NIK Siswa |
: |
{{ $applicant->nik ?? '-' }} |
| Nama Calon Siswa |
: |
{{ 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 ?? '-' }} |
| Nama Orang Tua |
: |
{{ $applicant->parents->father_name ?? $applicant->parent_name ?? '-' }} |
| Email / Kontak |
: |
{{ $applicant->user->email }} |
|
@if($photo)

@else
FOTO 3x4
@endif
|
@php
$isPmpa = \Illuminate\Support\Str::contains(strtoupper($applicant->pathway->name ?? ''), 'PMPA');
$startSem = $isPmpa ? 1 : 3;
$labels = [
1 => 'Kls 7 Smt 1', 2 => 'Kls 7 Smt 2',
3 => 'Kls 8 Smt 1', 4 => 'Kls 8 Smt 2',
5 => 'Kls 9 Smt 1'
];
$grades = $applicant->grades->groupBy('subject')['average']->pluck('grade', 'semester')->toArray() ?? [];
$avg = count($grades) > 0 ? number_format(array_sum($grades)/count($grades), 2) : '0.00';
@endphp
@for($s=$startSem; $s<=5; $s++) | {{ $labels[$s] }} | @endfor
Rata-Rata |
@for($s=$startSem; $s<=5; $s++)
| {{ isset($grades[$s]) ? number_format($grades[$s], 2) : '-' }} |
@endfor
{{ $avg }} |
Palembang, {{ now()->format('d/m/Y') }}
Panitia,
Catatan:
1. Kartu ini wajib dibawa saat verifikasi berkas.
2. Data yang tertera adalah data yang diinput oleh calon siswa dan dapat dipertanggungjawabkan.
MAN 1 PALEMBANG
DAFTAR CHECKLIST DOKUMEN
| No. Daftar |
: |
{{ $applicant->registration_number }} |
| Nama Siswa |
: |
{{ strtoupper($applicant->full_name) }} |
| No |
Nama Dokumen |
Check |
@php
$isReguler = \Illuminate\Support\Str::contains(strtoupper($applicant->pathway->name ?? ''), 'REGULER');
$docs = [
'Printout Kartu Bukti Pendaftaran (2 Lembar)',
'Fotokopi Kartu Keluarga (1 Lembar)',
'Fotokopi Akte Kelahiran (1 Lembar)',
'Pas Foto 3x4 Latar Belakang Merah (3 Lembar)',
'Pas Foto 2x3 Latar Belakang Merah (3 Lembar)',
'Print Out NISN (1 Lembar)',
];
if ($isReguler) {
$docs[] = 'Fotokopi Raport Semester 3-5 Dilegalisir (1 Lembar)';
} else {
$docs[] = 'Fotokopi Raport Semester 1-5 Dilegalisir (1 Lembar)';
$docs[] = 'Surat Rekomendasi dari Sekolah Asal (1 Lembar)';
}
$docs[] = 'Sertifikat Tahfidz/Prestasi/Pendukung';
@endphp
@foreach($docs as $i => $d)
| {{ $i+1 }} |
{{ $d }} |
[ ] |
@endforeach
Instruksi:
Mohon urutkan berkas sesuai nomor urut di atas. Coret yang tidak perlu.
Verifikator,
(___________________)
|
Siswa,
( {{ $applicant->full_name }} )
|