@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @php $totalJumlahTimbang = 0; $totalBbKurang = 0; $totalJumlahTinggi = 0; $totalTbKurang = 0; $totalJumlahGizi = 0; $totalGiziKurang = 0; $totalGiziBuruk = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @php // Fetch data for the current row $jumlahTimbang = $item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_timbang')["total"]; $bbKurang = $item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'bb_kurang')["total"]; $jumlahTinggi = $item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_tinggi')["total"]; $tbKurang = $item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'tb_kurang')["total"]; $jumlahGizi = $item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_gizi')["total"]; $giziKurang = $item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'gizi_kurang')["total"]; $giziBuruk = $item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'gizi_buruk')["total"]; // Accumulate totals $totalJumlahTimbang += $jumlahTimbang; $totalBbKurang += $bbKurang; $totalJumlahTinggi += $jumlahTinggi; $totalTbKurang += $tbKurang; $totalJumlahGizi += $jumlahGizi; $totalGiziKurang += $giziKurang; $totalGiziBuruk += $giziBuruk; @endphp @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterStatusGizi(Session::get('year'))) @php // Fetch data for the current row $jumlahTimbang = $item->filterStatusGizi(Session::get('year'))->jumlah_timbang; $bbKurang = $item->filterStatusGizi(Session::get('year'))->bb_kurang; $jumlahTinggi = $item->filterStatusGizi(Session::get('year'))->jumlah_tinggi; $tbKurang = $item->filterStatusGizi(Session::get('year'))->tb_kurang; $jumlahGizi = $item->filterStatusGizi(Session::get('year'))->jumlah_gizi; $giziKurang = $item->filterStatusGizi(Session::get('year'))->gizi_kurang; $giziBuruk = $item->filterStatusGizi(Session::get('year'))->gizi_buruk; // Accumulate totals $totalJumlahTimbang += $jumlahTimbang; $totalBbKurang += $bbKurang; $totalJumlahTinggi += $jumlahTinggi; $totalTbKurang += $tbKurang; $totalJumlahGizi += $jumlahGizi; $totalGiziKurang += $giziKurang; $totalGiziBuruk += $giziBuruk; @endphp @endif @endforeach @endrole
STATUS GIZI BALITA BERDASARKAN INDEKS BB/U, TB/U, DAN BB/TB MENURUT KECAMATAN DAN PUSKESMAS
Kabupaten/Kota Kutai Timur
Tahun {{Session::get('year')}}
KecamatanPuskesmasDesaJumlah Balita Yang Ditimbang Balita Berat Badan Kurang (BB/U) Jumlah Balita Yang Diukur Tinggi Badan Balita Pendek (TB/U) Jumlah Balita Yang Diukur Tinggi Badan Balita Kurang Gizi (BB/TB: < -2 s.d -3 SD) Balita Gizi Buruk(BB/TB: < -3 SD)
Jumlah % Jumlah % Jumlah % Jumlah %
{{$item->kecamatan}} {{$item->nama}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_timbang')["total"]}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'bb_kurang')["total"]}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_timbang')["total"] > 0? number_format($item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'bb_kurang')["total"] /$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_timbang')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_tinggi')["total"]}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'tb_kurang')["total"]}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_tinggi')["total"] > 0? number_format($item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'tb_kurang')["total"] /$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_tinggi')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_gizi')["total"]}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'gizi_kurang')["total"]}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_gizi')["total"] > 0? number_format($item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'gizi_kurang')["total"] /$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_gizi')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'gizi_buruk')["total"]}} {{$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_gizi')["total"] > 0? number_format($item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'gizi_buruk')["total"] /$item->unitKerjaAmbil('filterStatusGizi', Session::get('year'), 'jumlah_gizi')["total"] * 100, 2 ):0}}
Total {{ $totalJumlahTimbang }} {{ $totalBbKurang }} {{ $totalJumlahTimbang > 0 ? number_format($totalBbKurang / $totalJumlahTimbang * 100, 2) : 0 }} {{ $totalJumlahTinggi }} {{ $totalTbKurang }} {{ $totalJumlahTinggi > 0 ? number_format($totalTbKurang / $totalJumlahTinggi * 100, 2) : 0 }} {{ $totalJumlahGizi }} {{ $totalGiziKurang }} {{ $totalJumlahGizi > 0 ? number_format($totalGiziKurang / $totalJumlahGizi * 100, 2) : 0 }} {{ $totalGiziBuruk }} {{ $totalJumlahGizi > 0 ? number_format($totalGiziBuruk / $totalJumlahGizi * 100, 2) : 0 }}
{{$item->UnitKerja->kecamatan}} {{$item->nama}} {{$item->filterStatusGizi(Session::get('year'))->jumlah_timbang}} {{$item->filterStatusGizi(Session::get('year'))->bb_kurang}} {{$item->filterStatusGizi(Session::get('year'))->jumlah_timbang > 0 ? number_format( $item->filterStatusGizi(Session::get('year'))->bb_kurang / $item->filterStatusGizi(Session::get('year'))->jumlah_timbang * 100, 2 ) : 0}} {{$item->filterStatusGizi(Session::get('year'))->jumlah_tinggi}} {{$item->filterStatusGizi(Session::get('year'))->tb_kurang}} {{$item->filterStatusGizi(Session::get('year'))->jumlah_tinggi > 0 ? number_format( $item->filterStatusGizi(Session::get('year'))->tb_kurang / $item->filterStatusGizi(Session::get('year'))->jumlah_tinggi * 100, 2 ) : 0}} {{$item->filterStatusGizi(Session::get('year'))->jumlah_gizi}} {{$item->filterStatusGizi(Session::get('year'))->tb_kurang}} {{$item->filterStatusGizi(Session::get('year'))->jumlah_gizi > 0 ? number_format( $item->filterStatusGizi(Session::get('year'))->gizi_kurang / $item->filterStatusGizi(Session::get('year'))->jumlah_gizi * 100, 2 ) : 0}} {{$item->filterStatusGizi(Session::get('year'))->gizi_buruk}} {{$item->filterStatusGizi(Session::get('year'))->jumlah_gizi>0? number_format($item->filterStatusGizi(Session::get('year'))->gizi_buruk /$item->filterStatusGizi(Session::get('year'))->jumlah_gizi * 100, 2):0}}
Total {{ $totalJumlahTimbang }} {{ $totalBbKurang }} {{ $totalJumlahTimbang > 0 ? number_format($totalBbKurang / $totalJumlahTimbang * 100, 2) : 0 }} {{ $totalJumlahTinggi }} {{ $totalTbKurang }} {{ $totalJumlahTinggi > 0 ? number_format($totalTbKurang / $totalJumlahTinggi * 100, 2) : 0 }} {{ $totalJumlahGizi }} {{ $totalGiziKurang }} {{ $totalJumlahGizi > 0 ? number_format($totalGiziKurang / $totalJumlahGizi * 100, 2) : 0 }} {{ $totalGiziBuruk }} {{ $totalJumlahGizi > 0 ? number_format($totalGiziBuruk / $totalJumlahGizi * 100, 2) : 0 }}