@php $kelText = $header['kelurahan'] ?? ($user->kelurahan->nama ?? '-'); $rwText = $header['rw'] ?? '-'; $rtText = $header['rt'] ?? '-'; $thText = $header['tahun'] ?? date('Y'); $kecText = $header['kecamatan'] ?? ($user->kelurahan && $user->kelurahan->kecamatan ? ($user->kelurahan->kecamatan->nama ?? '') : ''); // Calculate totals $totals = [ 'jumlah_rumah_tangga' => 0, 'jumlah_kepala_keluarga' => 0, 'jumlah_anggota_keluarga' => 0, 'ibu_bersalin' => 0, 'linakes' => 0, 'bayi_kurang_6_bulan' => 0, 'asi_saja' => 0, 'bayi_6_12_bulan' => 0, 'bayi_6_12_lulus_asi' => 0, 'ada_bayi_balita_kk' => 0, 'ditimbang' => 0, 'air_bersih' => 0, 'cuci_tangan_benar_10_plus' => 0, 'jamban_sehat' => 0, 'berantas_jentik' => 0, 'konsumsi_buah_sayur' => 0, 'aktifitas_fisik_10_plus' => 0, 'tidak_merokok_10_plus' => 0, 'rt_sehat_kk' => 0, 'rt_tidak_sehat_kk' => 0, 'cek_tekanan_darah_15_plus' => 0, 'cek_gula_darah_15_plus' => 0, 'phs_sehat' => 0, 'phs_tidak_sehat' => 0 ]; foreach ($rows as $row) { foreach ($totals as $key => $value) { $totals[$key] += (int)($row[$key] ?? 0); } } @endphp
|
RT/RW: {{ $rtText }}/{{ $rwText }}
KELURAHAN: {{ $kelText }}
KECAMATAN: {{ strtoupper($kecText) }}
KOTA BANDUNG:
|
TAHUN: {{ $thText }}
|
| Rukun Tetangga | Nama Ketua RT | Jumlah Rumah Tangga Yang Didata | Jumlah Kepala Keluarga | Jumlah Anggota Keluarga yang didata |
INDIKATOR PERILAKU HIDUP BERSIH DAN SEHAT (PHBS) | STATUS RUMAH TANGGA | INDIKATOR PHS | STATUS PHS | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Persalinan | Memberi ASI Eksklusif | Menimbang | Menggunakan Air Bersih | Melakukan Cuci Tangan Dengan Benar (usia >10 tahun) | Menggunakan Jamban Sehat | Memberantas Jentik di Rumah | Konsumsi Buah dan/atau Sayur | Melakukan Aktifitas Fisik (usia >10 tahun) | Tidak Merokok (usia >10 tahun) | Sehat | Tidak Sehat | Cek Tekanan Darah Minimal 1x dalam setahun (usia >15 tahun) |
Cek Gula Darah Minimal 1x dalam setahun (usia >15 tahun) |
Perilaku Sehat | Perilaku Tidak Sehat | ||||||||||
| Ibu Bersalin | Linakes | Bayi <6 bulan | ASI Saja | Bayi 6-12 Bulan | Bayi 6-12 Bulan Lulus ASI | Ada Bayi dan Balita | Ditimbang | ||||||||||||||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | |
| {{ $row['rt_nomor'] ?? '-' }} | {{ $row['ketua_rt'] ?? '-' }} | {{ $row['jumlah_rumah_tangga'] ?? 0 }} | {{ $row['jumlah_kepala_keluarga'] ?? 0 }} | {{ $row['jumlah_anggota_keluarga'] ?? 0 }} | {{ $row['ibu_bersalin'] ?? 0 }} | {{ $row['linakes'] ?? 0 }} | {{ $row['bayi_kurang_6_bulan'] ?? 0 }} | {{ $row['asi_saja'] ?? 0 }} | {{ $row['bayi_6_12_bulan'] ?? 0 }} | {{ $row['bayi_6_12_lulus_asi'] ?? 0 }} | {{ $row['ada_bayi_balita_kk'] ?? 0 }} | {{ $row['ditimbang'] ?? 0 }} | {{ $row['air_bersih'] ?? 0 }} | {{ $row['cuci_tangan_benar_10_plus'] ?? 0 }} | {{ $row['jamban_sehat'] ?? 0 }} | {{ $row['berantas_jentik'] ?? 0 }} | {{ $row['konsumsi_buah_sayur'] ?? 0 }} | {{ $row['aktifitas_fisik_10_plus'] ?? 0 }} | {{ $row['tidak_merokok_10_plus'] ?? 0 }} | {{ $row['rt_sehat_kk'] ?? 0 }} | {{ $row['rt_tidak_sehat_kk'] ?? 0 }} | {{ $row['cek_tekanan_darah_15_plus'] ?? 0 }} | {{ $row['cek_gula_darah_15_plus'] ?? 0 }} | {{ $row['phs_sehat'] ?? 0 }} | {{ $row['phs_tidak_sehat'] ?? 0 }} |
| Tidak ada data | |||||||||||||||||||||||||
| JUMLAH | {{ $totals['jumlah_rumah_tangga'] }} | {{ $totals['jumlah_kepala_keluarga'] }} | {{ $totals['jumlah_anggota_keluarga'] }} | {{ $totals['ibu_bersalin'] }} | {{ $totals['linakes'] }} | {{ $totals['bayi_kurang_6_bulan'] }} | {{ $totals['asi_saja'] }} | {{ $totals['bayi_6_12_bulan'] }} | {{ $totals['bayi_6_12_lulus_asi'] }} | {{ $totals['ada_bayi_balita_kk'] }} | {{ $totals['ditimbang'] }} | {{ $totals['air_bersih'] }} | {{ $totals['cuci_tangan_benar_10_plus'] }} | {{ $totals['jamban_sehat'] }} | {{ $totals['berantas_jentik'] }} | {{ $totals['konsumsi_buah_sayur'] }} | {{ $totals['aktifitas_fisik_10_plus'] }} | {{ $totals['tidak_merokok_10_plus'] }} | {{ $totals['rt_sehat_kk'] }} | {{ $totals['rt_tidak_sehat_kk'] }} | {{ $totals['cek_tekanan_darah_15_plus'] }} | {{ $totals['cek_gula_darah_15_plus'] }} | {{ $totals['phs_sehat'] }} | {{ $totals['phs_tidak_sehat'] }} | |