{{$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}} |
@endforeach
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 }} |
@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
{{$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}} |
@endif
@endforeach
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 }} |
@endrole