@php use App\Values; @endphp Formulir @foreach ($newStudents as $newStudent)

Formulir Pendaftaran

Penerimaan Peserta didik baru
Tahun Ajaran: {{$newStudent->year}}

@if(isset($newStudent->photo) && file_exists(public_path($newStudent->photo))) @else
@endif
No. Pendaftaran : {{$newStudent->registration_number}}
Nama Lengkap Siswa : {{$newStudent->name}}
Nama / Jenis Sekolah : {{$newStudent->school->name??""}}/{{$newStudent->jenjang->name??""}}

A. KETERANGAN SISWA

  • Nama Siswa Baru : {{$newStudent->name}}
  • NIK Anak : {{$newStudent->nik}}
  • No. Akta Lahir : {{$newStudent->akta}}
  • Kelahiran
    • a. Tempat : {{$newStudent->birthPlace??"-"}}
    • b. Tanggal : {{generalFormatDate($newStudent->birthDate)}}
  • No. Handphone : {{$newStudent->mobilePhone}}
  • Email : {{$newStudent->email}}
  • No. SKHUN : {{$newStudent->skhun}}
  • No. Peserta Ujian Nasional : {{$newStudent->pesertaUN}}
  • No. Ijazah : {{$newStudent->ijazah}}
  • Tinggi Badan (cm) : {{$newStudent->height}}
  • Berat Badan (kg) : {{$newStudent->weight}}
  • lingkar kepala (cm) : {{$newStudent->head}}
  • Anak Adopsi : {{$newStudent->adopted}}
  • Jumlah Saudara Kandung : {{$newStudent->siblings??0}}
  • Sekolah Asal : {{$newStudent->oldSchoolName}}
  • Sekolah : {{$newStudent->school->name??""}}
  • Kelas : {{$newStudent->kelas->name??""}}
  • Agama : {{Values::RELIGION_TYPES[$newStudent->religion_value??0]}}
  • Kewarganegaraan : {{Values::NATIONALITY_TYPES[$newStudent->nationality_value??0]}}
  • Anak Ke : {{$newStudent->birthOrder??1}}
  • Yatim / Piatu / Yatim Piatu : {{isYatimPiatu($newStudent->new_parent)}}
  • Jarak Rumah ke Sekolah (km) : {{$newStudent->homeDistance}}

B. KETERANGAN TEMPAT TINGGAL

  • Alamat Lengkap
    • a. Provinsi : {{$newStudent->province->name??"-"}}
    • b. Kota/Kabupaten : {{$newStudent->district->name??"-"}}
    • c. Kecamatan : {{$newStudent->regency->name??"-"}}
    • d. Desa : {{$newStudent->village->name??"-"}}
    • e. Kode Pos : {{$newStudent->postalCode}}
  • Tinggal bersama : {{Values::STAY_WITH_TYPES[$newStudent->stay_with_value??1]}}

C. KETERANGAN KESEHATAN

  • Riwayat penyakit : {{$newStudent->medicalHistory??"-"}}

D. KETERANGAN AYAH

  • Nama : {{ $newStudent->new_parent->fatherName ?? ($newStudent->father_parent->name ?? '-') }}
  • Tempat dan Tanggal Lahir : {{ $newStudent->new_parent->fatherBirthPlace ?? "-"}} {{generalFormatDate($newStudent->new_parent->fatherBirhtDate ?? null)}} {{($newStudent->father_parent->birthPlace ?? null) }} {{generalFormatDate($newStudent->father_parent->birthDate ?? null)}}
  • No Handphone : {{$newStudent->new_parent->fatherPhone ?? ($newStudent->father_parent->mobilePhone ?? "-")}}
  • Pendidikan : @if (isset($newStudent->new_parent->father_education_type_value)) {{ Values::EDUCATION_TYPES[$newStudent->new_parent->father_education_type_value ?? 0] }} @elseif (isset($newStudent->father_parent->education_type_value)) {{ Values::EDUCATION_TYPES[$newStudent->father_parent->education_type_value ?? 0] }} @else - @endif
  • Pekerjaan : @if (isset($newStudent->new_parent->father_job_type_value)) {{ Values::JOB_TYPES[$newStudent->new_parent->father_job_type_value ?? 0] }} @elseif (isset($newStudent->father_parent->job_type_value)) {{ Values::JOB_TYPES[$newStudent->father_parent->job_type_value ?? 0] }} @else - @endif
  • Penghasilan per Bulan : @if (isset($newStudent->new_parent->father_salary_type_value)) {{ Values::SALARY_TYPES[$newStudent->new_parent->father_salary_type_value ?? 0] }} @elseif (isset($newStudent->father_parent->salary_type_value)) {{ Values::SALARY_TYPES[$newStudent->father_parent->salary_type_value ?? 0] }} @else - @endif
  • Status : @if (isset($newStudent->new_parent->isFatherAlive)) {{$newStudent->new_parent->isFatherAlive===1?'Hidup':'Meninggal dunia'}} @elseif (isset($newStudent->father_parent->isAlive)) {{$newStudent->father_parent->isAlive===1?'Hidup':'Meninggal dunia'}} @else - @endif

E. KETERANGAN IBU

  • Nama : {{ $newStudent->new_parent->motherName ?? ($newStudent->mother_parent->name ?? '-') }}
  • {{-- --}}
    Tempat dan Tanggal Lahir :{{$newStudent->new_parent->motherBirthPlace??"-"}} {{generalFormatDate($newStudent->new_parent->motherBirthDate??null)}}{{ $newStudent->new_parent->motherBirthPlace ?? "-"}} {{generalFormatDate($newStudent->new_parent->motherBirthDate ?? null)}} {{($newStudent->mother_parent->birthPlace ?? null) }} {{generalFormatDate($newStudent->mother_parent->birthDate ?? null)}}
  • Pendidikan : @if (isset($newStudent->new_parent->mother_education_type_value)) {{ Values::EDUCATION_TYPES[$newStudent->new_parent->mother_education_type_value ?? 0] }} @elseif (isset($newStudent->mother_parent->education_type_value)) {{ Values::EDUCATION_TYPES[$newStudent->mother_parent->education_type_value ?? 0] }} @else - @endif
  • Pekerjaan : @if (isset($newStudent->new_parent->mother_job_type_value)) {{ Values::JOB_TYPES[$newStudent->new_parent->mother_job_type_value ?? 0] }} @elseif (isset($newStudent->mother_parent->job_type_value)) {{ Values::JOB_TYPES[$newStudent->mother_parent->job_type_value ?? 0] }} @else - @endif
  • Penghasilan per Bulan : @if (isset($newStudent->new_parent->mother_salary_type_value)) {{ Values::SALARY_TYPES[$newStudent->new_parent->mother_salary_type_value ?? 0] }} @elseif (isset($newStudent->mother_parent->salary_type_value)) {{ Values::SALARY_TYPES[$newStudent->mother_parent->salary_type_value ?? 0] }} @else - @endif
  • Status : @if (isset($newStudent->new_parent->isMotherAlive)) {{$newStudent->new_parent->isMotherAlive===1?'Hidup':'Meninggal dunia'}} @elseif (isset($newStudent->mother_parent->isAlive)) {{$newStudent->mother_parent->isAlive===1?'Hidup':'Meninggal dunia'}} @else - @endif
@if(isset($newStudent->new_parent->isHasWali))

F. KETERANGAN WALI

  • Nama : {{$newStudent->new_parent->waliName??""}}
  • Tempat dan Tanggal Lahir : {{$newStudent->new_parent->waliBirthPlace??""}} {{generalFormatDate($newStudent->new_parent->waliBirthDate??null)}}
  • @if (isset($newStudent->new_parent->wali_education_type_value) && $newStudent->new_parent->wali_education_type_value) @else @endif
    Pendidikan :{{Values::EDUCATION_TYPES[$newStudent->new_parent->wali_education_type_value??0]}}-
  • @if (isset($newStudent->new_parent->wali_job_type_value) && $newStudent->new_parent->wali_job_type_value !== 0) @else @endif
    Pekerjaan :{{Values::JOB_TYPES[$newStudent->new_parent->wali_job_type_value??0]}}-
  • @if (isset($newStudent->new_parent->wali_salary_type_value) && $newStudent->new_parent->wali_salary_type_value !== 0) @else @endif
    Penghasilan per Bulan :{{Values::SALARY_TYPES[$newStudent->new_parent->wali_salary_type_value??0]}}-
  • @if (isset($newStudent->new_parent->isWaliAlive) && $newStudent->new_parent->isWaliAlive !== 0) @else @endif
    Status :{{$newStudent->new_parent->isWaliAlive===1?'Hidup':'Meninggal dunia'}}-
@endif
@endforeach