@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @php $totalJumlahL = 0; $totalJumlahP = 0; $totalJumlahAll = 0; $totalTimbangL = 0; $totalTimbangP = 0; $totalTimbangAll = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @php // Fetch data for the current row $jumlahL = $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"]; $jumlahP = $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"]; $jumlahAll = $jumlahL + $jumlahP; $timbangL = $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_L')["total"]; $timbangP = $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_P')["total"]; $timbangAll = $timbangL + $timbangP; // Accumulate totals $totalJumlahL += $jumlahL; $totalJumlahP += $jumlahP; $totalJumlahAll += $jumlahAll; $totalTimbangL += $timbangL; $totalTimbangP += $timbangP; $totalTimbangAll += $timbangAll; @endphp @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterTimbang(Session::get('year'))) @php // Fetch data for the current row $jumlahL = $item->filterTimbang(Session::get('year'))->jumlah_L; $jumlahP = $item->filterTimbang(Session::get('year'))->jumlah_P; $jumlahAll = $jumlahL + $jumlahP; $timbangL = $item->filterTimbang(Session::get('year'))->timbang_L; $timbangP = $item->filterTimbang(Session::get('year'))->timbang_P; $timbangAll = $timbangL + $timbangP; // Accumulate totals $totalJumlahL += $jumlahL; $totalJumlahP += $jumlahP; $totalJumlahAll += $jumlahAll; $totalTimbangL += $timbangL; $totalTimbangP += $timbangP; $totalTimbangAll += $timbangAll; @endphp @endif @endforeach @endrole
JUMLAH BALITA DITIMBANG MENURUT JENIS KELAMIN, KECAMATAN, DAN PUSKESMAS
Kabupaten/Kota Kutai Timur
Tahun {{Session::get('year')}}
KecamatanPuskesmasDesaBalita Ditimbang
Jumlah Sasaran Balita (S)
Jumlah (D) %(D/S)
L P L+P L P L+P L P L+P
{{$item->kecamatan}} {{$item->nama}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"] + $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_L')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_P')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_P')["total"] + $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_L')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"] > 0? number_format($item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_L')["total"] /$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"] > 0? number_format($item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_P')["total"] /$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"] + $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"] > 0? number_format(($item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_L')["total"] + $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_P')["total"]) /($item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"] + $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"]) * 100, 2 ):0}}
Total {{ $totalJumlahL }} {{ $totalJumlahP }} {{ $totalJumlahAll }} {{ $totalTimbangL }} {{ $totalTimbangP }} {{ $totalTimbangAll }} {{ $totalJumlahL > 0 ? number_format($totalTimbangL / $totalJumlahL * 100, 2) : 0 }} {{ $totalJumlahP > 0 ? number_format($totalTimbangP / $totalJumlahP * 100, 2) : 0 }} {{ $totalJumlahAll > 0 ? number_format($totalTimbangAll / $totalJumlahAll * 100, 2) : 0 }}
{{$item->UnitKerja->kecamatan}} {{$item->nama}} {{$item->filterTimbang(Session::get('year'))->jumlah_L}} {{$item->filterTimbang(Session::get('year'))->jumlah_P}} {{$item->filterTimbang(Session::get('year'))->jumlah_L + $item->filterTimbang(Session::get('year'))->jumlah_P}} {{$item->filterTimbang(Session::get('year'))->timbang_L}} {{$item->filterTimbang(Session::get('year'))->timbang_P}} {{$item->filterTimbang(Session::get('year'))->timbang_L + $item->filterTimbang(Session::get('year'))->timbang_P}} {{$item->filterTimbang(Session::get('year'))->jumlah_L>0? number_format($item->filterTimbang(Session::get('year'))->timbang_L /$item->filterTimbang(Session::get('year'))->jumlah_L * 100, 2):0}} {{$item->filterTimbang(Session::get('year'))->jumlah_P>0? number_format($item->filterTimbang(Session::get('year'))->timbang_P /$item->filterTimbang(Session::get('year'))->jumlah_P * 100, 2):0}} {{($item->filterTimbang(Session::get('year'))->jumlah_P + $item->filterTimbang(Session::get('year'))->jumlah_L)>0? number_format(($item->filterTimbang(Session::get('year'))->timbang_L + $item->filterTimbang(Session::get('year'))->timbang_P) /($item->filterTimbang(Session::get('year'))->jumlah_L + $item->filterTimbang(Session::get('year'))->jumlah_P) * 100, 2):0}}
Total {{ $totalJumlahL }} {{ $totalJumlahP }} {{ $totalJumlahAll }} {{ $totalTimbangL }} {{ $totalTimbangP }} {{ $totalTimbangAll }} {{ $totalJumlahL > 0 ? number_format($totalTimbangL / $totalJumlahL * 100, 2) : 0 }} {{ $totalJumlahP > 0 ? number_format($totalTimbangP / $totalJumlahP * 100, 2) : 0 }} {{ $totalJumlahAll > 0 ? number_format($totalTimbangAll / $totalJumlahAll * 100, 2) : 0 }}