@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @php $totalJumlah6 = 0; $totalVita6 = 0; $totalJumlah12 = 0; $totalVita12 = 0; $totalJumlahAll = 0; $totalVitaAll = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @php // Fetch data for the current row $jumlah6 = $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"]; $vita6 = $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_6')["total"]; $jumlah12 = $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"]; $vita12 = $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_12')["total"]; $jumlahAll = $jumlah6 + $jumlah12; $vitaAll = $vita6 + $vita12; // Accumulate totals $totalJumlah6 += $jumlah6; $totalVita6 += $vita6; $totalJumlah12 += $jumlah12; $totalVita12 += $vita12; $totalJumlahAll += $jumlahAll; $totalVitaAll += $vitaAll; @endphp @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterBalitaVita(Session::get('year'))) @php // Fetch data for the current row $jumlah6 = $item->filterBalitaVita(Session::get('year'))->jumlah_6; $vita6 = $item->filterBalitaVita(Session::get('year'))->vita_6; $jumlah12 = $item->filterBalitaVita(Session::get('year'))->jumlah_12; $vita12 = $item->filterBalitaVita(Session::get('year'))->vita_12; $jumlahAll = $jumlah6 + $jumlah12; $vitaAll = $vita6 + $vita12; // Accumulate totals $totalJumlah6 += $jumlah6; $totalVita6 += $vita6; $totalJumlah12 += $jumlah12; $totalVita12 += $vita12; $totalJumlahAll += $jumlahAll; $totalVitaAll += $vitaAll; @endphp @endif @endforeach @endrole
CAKUPAN PEMBERIAN VITAMIN A PADA BAYI DAN ANAK BALITA MENURUT KECAMATAN DAN PUSKESMAS
Kabupaten/Kota Kutai Timur
Tahun {{Session::get('year')}}
KecamatanPuskesmasDesaBayi 6-11 Bulan Bayi 12-59 Bulan Bayi 6-59 Bulan
Jumlah Bayi Mendapat Vit A Jumlah Bayi Mendapat Vit A Jumlah Bayi Mendapat Vit A
Jumlah % Jumlah % Jumlah %
{{$item->kecamatan}} {{$item->nama}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_6')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"] > 0? number_format($item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_6')["total"] /$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_12')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"] > 0? number_format($item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_12')["total"] /$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"] + $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_12')["total"] + $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_6')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"] + $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"] > 0? number_format(($item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_12')["total"] + $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_6')["total"]) /($item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"] + $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"]) * 100, 2 ):0}}
Total {{ $totalJumlah6 }} {{ $totalVita6 }} {{ $totalJumlah6 > 0 ? number_format($totalVita6 / $totalJumlah6 * 100, 2) : 0 }} {{ $totalJumlah12 }} {{ $totalVita12 }} {{ $totalJumlah12 > 0 ? number_format($totalVita12 / $totalJumlah12 * 100, 2) : 0 }} {{ $totalJumlahAll }} {{ $totalVitaAll }} {{ $totalJumlahAll > 0 ? number_format($totalVitaAll / $totalJumlahAll * 100, 2) : 0 }}
{{$item->UnitKerja->kecamatan}} {{$item->nama}} {{$item->filterBalitaVita(Session::get('year'))->jumlah_6}} {{$item->filterBalitaVita(Session::get('year'))->vita_6}} {{$item->filterBalitaVita(Session::get('year'))->jumlah_6 > 0 ? number_format($item->filterBalitaVita(Session::get('year'))->vita_6 / $item->filterBalitaVita(Session::get('year'))->jumlah_6 * 100, 2) : 0}} {{$item->filterBalitaVita(Session::get('year'))->jumlah_12}} {{$item->filterBalitaVita(Session::get('year'))->vita_12}} {{$item->filterBalitaVita(Session::get('year'))->jumlah_12 > 0 ? number_format($item->filterBalitaVita(Session::get('year'))->vita_12 / $item->filterBalitaVita(Session::get('year'))->jumlah_12 * 100, 2) : 0}} {{$item->filterBalitaVita(Session::get('year'))->jumlah_6 + $item->filterBalitaVita(Session::get('year'))->jumlah_12}} {{$item->filterBalitaVita(Session::get('year'))->vita_6 + $item->filterBalitaVita(Session::get('year'))->vita_12}} {{$item->filterBalitaVita(Session::get('year'))->jumlah_6 + $item->filterBalitaVita(Session::get('year'))->jumlah_12>0? number_format(($item->filterBalitaVita(Session::get('year'))->vita_6 + $item->filterBalitaVita(Session::get('year'))->vita_12) /($item->filterBalitaVita(Session::get('year'))->jumlah_6 + $item->filterBalitaVita(Session::get('year'))->jumlah_12) * 100, 2):0}}
Total {{ $totalJumlah6 }} {{ $totalVita6 }} {{ $totalJumlah6 > 0 ? number_format($totalVita6 / $totalJumlah6 * 100, 2) : 0 }} {{ $totalJumlah12 }} {{ $totalVita12 }} {{ $totalJumlah12 > 0 ? number_format($totalVita12 / $totalJumlah12 * 100, 2) : 0 }} {{ $totalJumlahAll }} {{ $totalVitaAll }} {{ $totalJumlahAll > 0 ? number_format($totalVitaAll / $totalJumlahAll * 100, 2) : 0 }}