@extends('template.layout-emr-surat') @section('title') @if ($cekWargaNegaraWNA) Print Certificate of Disability @else Cetak Surat Keterangan Disabilitas @endif @endsection @section('kode', 'RM.14/SK/00') @section('page-style') @endsection @php function translateDateToEnglish($date) { $months = [ 'Januari' => 'January', 'Februari' => 'February', 'Maret' => 'March', 'April' => 'April', 'Mei' => 'May', 'Juni' => 'June', 'Juli' => 'July', 'Agustus' => 'August', 'September' => 'September', 'Oktober' => 'October', 'November' => 'November', 'Desember' => 'December', ]; foreach ($months as $indonesian => $english) { if (strpos($date, $indonesian) !== false) { $date = str_replace($indonesian, $english, $date); break; } } return $date; } function formatDateIndonesian($date) { $timestamp = strtotime($date); if ($timestamp === false) { return '-'; } $day = date('d', $timestamp); $month = getIndonesianMonth(date('n', $timestamp)); $year = date('Y', $timestamp); return "$day $month $year"; } function getIndonesianMonth($monthNumber) { $months = [ 1 => 'Januari', 2 => 'Februari', 3 => 'Maret', 4 => 'April', 5 => 'Mei', 6 => 'Juni', 7 => 'Juli', 8 => 'Agustus', 9 => 'September', 10 => 'Oktober', 11 => 'November', 12 => 'Desember', ]; return $months[$monthNumber] ?? ''; } @endphp @section('content') @if ($cekWargaNegaraWNA == true)
| Name | : {{ $data['TBNamaPasien'] ?? '-' }} | |||
| Place / Date of birth | : {{ isset($data['TBTempatLahirPasien']) ? $data['TBTempatLahirPasien'] : '-' }} / {{ isset($data['DTanggalLahir']) ? formatDateIndonesian($data['DTanggalLahir']) : '-' }} | |||
| Age | : {{ isset($data['TBSUmurPasien']) ? $data['TBSUmurPasien'] : '-' }} Years Old | |||
| Sex |
|
|||
| Address | : {{ isset($data['TAAlamatPasien']) ? $data['TAAlamatPasien'] : '-' }} |
1. Type/Diversity of Disability
| 1). Amputation | Hand | Foot | |
| 2). Limp or stiff paralysis | Hand | Foot | |
| 3). Paraplegia (lower limbs that include both legs and pelvic organs) | |||
| 4. Cerebral Palsy (CP) | |||
| 1). Netra | |||
|
a. Total blindness
|
|||
|
b. Light Perception / Low vision
|
|||
| 2). Deaf | |||
| 3. Speech | |||
|
1). Mental Disability
|
|||
|
2). Down Syndrome
|
|||
|
1). Psychosocial :
|
Schizophrenia | Bipolar | Depression | |
| Anxietas | Personality Disorder | |||
|
2). Developmental disabilities :
|
Autism | Hyperactive | ||
2. Degree of Disability :
{{ isset($data['TADerajatDisabilitas']) ? App\Traits\Valet::english($data['TADerajatDisabilitas']) : '-' }}
3. Causes :
| Since Birth | Accidents on the job | Traffic Accidents | Disease |
| Stroke Consequences | Leprosy Consequences | Other : {{ isset($data['TALainlain']) ? App\Traits\Valet::english($data['TALainlain']) : '-' }} |
4. Tools used :
| No | There is, in the form of : {{ isset($data['TBABYD']) ? App\Traits\Valet::english($data['TBABYD']) : '-' }} |
This certificate is for the purpose of : {{ isset($data['TAskiuk']) ? App\Traits\Valet::english($data['TAskiuk']) : '-' }}
|
Garut, {{ translateDateToEnglish($identitas['dateNow']) }} |
|
| Examiner | |
|
{{-- --}} --}} |
|
| @if (is_array($data['DDDokter']) && array_key_exists('label', $data['DDDokter'])) {{ $data['DDDokter']['label'] ?? '-' }} @else {{ $data['DDDokter'] ?? '-' }} @endif | |
| NIP : @if (isset($data['nip']->nip)) {{ $data['nip']->nip }} @else {{ '-' }} @endif |
| Nama | : {{ $data['TBNamaPasien'] ?? '-' }} | |||
| Tempat / Tanggal lahir | : {{ isset($data['TBTempatLahirPasien']) ? $data['TBTempatLahirPasien'] : '-' }} / {{ isset($data['DTanggalLahir']) ? formatDateIndonesian($data['DTanggalLahir']) : '-' }} | |||
| Umur | : {{ isset($data['TBSUmurPasien']) ? $data['TBSUmurPasien'] : '-' }} Tahun | |||
| Jenis Kelamin |
|
|||
| Alamat | : {{ isset($data['TAAlamatPasien']) ? $data['TAAlamatPasien'] : '-' }} |
1. Jenis/Ragam Disabilitas
| 1). Amputasi | Tangan | Kaki | |
| 2). Lumpuh layuh atau kaku | Tangan | Kaki | |
| 3). Paraplegi (anggota tubuh bagian bawah yang meliputi kedua tungkai dan organ panggul) | |||
| 4. Cerebral Palsy (CP) | |||
| 1). Netra | |||
|
a. Buta total
|
|||
|
b. Persepsi Cahaya/Low vision
|
|||
| 2). Rungu | |||
| 3. Wicara | |||
|
1). Disabilitas Grahita
|
|||
|
2). Down Syndrome
|
|||
|
1). Psikososial :
|
Skizofrenia | Bipolar | Depresi | |
| {{-- | Depresi | --}}Anxietas | Gangguan Kepribadian | |
|
2). Disabilitas perkembangan :
|
Autis | Hiperaktif | ||
2. Derajat Disabilitas :
{{ isset($data['TADerajatDisabilitas']) ? $data['TADerajatDisabilitas'] : '-' }}
3. Penyebab :
| Sejak Lahir | Kecelakaan dalam pekerjaan | Kecelakaan Lalu Lintas | Penyakit |
| Akibat Stroke | Akibat Kusta | Lain-lain : {{ isset($data['TALainlain']) ? $data['TALainlain'] : '-' }} |
4. Alat bantu yang digunakan :
| Tidak | Ada, berupa : {{ isset($data['TBABYD']) ? $data['TBABYD'] : '-' }} |
Surat keterangan ini untuk keperluan : {{ isset($data['TAskiuk']) ? $data['TAskiuk'] : '-' }}
|
Garut, {{ \Carbon\Carbon::parse($data['registrasi']['tglregistrasi'])->format('d F Y') }} |
||
| Pemeriksa | ||
|
{{-- --}} --}} |
||
| @if (is_array($data['DDDokter']) && array_key_exists('label', $data['DDDokter'])) {{ $data['DDDokter']['label'] ?? '-' }} @else {{ $data['DDDokter'] ?? '-' }} @endif | ||
| {{-- | NIP : @if (isset($data['nip']->nip)) {{ $data['nip']->nip }} @else {{ '-' }} @endif | --}}
{{-- @php
$identities = [];
if (isset($data['nip']->nip) && !empty($data['nip']->nip)) {
$identities[] = 'NIP: ' . $data['nip']->nip;
}
if (isset($data['nip']->nosip) && !empty($data['nip']->nosip)) {
$identities[] = 'NOSIP: ' . $data['nip']->nosip;
}
if (isset($data['nip']->nipppk) && !empty($data['nip']->nipppk)) {
$identities[] = 'NIPPPK: ' . $data['nip']->nipppk;
}
if (isset($data['nip']->nosipppk) && !empty($data['nip']->nosipppk)) {
$identities[] = 'NOSIPPPK: ' . $data['nip']->nosipppk;
}
echo $identities ? implode(' / ', $identities) : '-';
@endphp --}}
@if (!empty($data['nip']->nip))
NIP : {{ $data['nip']->nip }} @endif @if (!empty($data['nosip']->nosip)) SIP : {{ $data['nosip']->nosip }} @endif @if (!empty($data['noskp']->noskp)) SKP : {{ $data['noskp']->noskp }} @endif @if (!empty($data['nosippk']->nosippk)) SIPPK : {{ $data['nosippk']->nosippk }} @endif @if (empty($data['nip']->nip) && empty($data['nosip']->nosip) && empty($data['noskp']->noskp)) {{ '-' }} @endif |