@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @php // Initialize total variables $totalKuaL = $totalKuaP = $totalKuaTotal = 0; $totalLayananL = $totalLayananP = $totalLayananTotal = 0; $totalAnemia = $totalGizi = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @php // Fetch values $kuaL = $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_L')["total"]; $kuaP = $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_P')["total"]; $layananL = $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_L')["total"]; $layananP = $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_P')["total"]; $anemia = $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'anemia')["total"]; $gizi = $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'gizi')["total"]; // Increment totals $totalKuaL += $kuaL; $totalKuaP += $kuaP; $totalKuaTotal += $kuaL + $kuaP; $totalLayananL += $layananL; $totalLayananP += $layananP; $totalLayananTotal += $layananL + $layananP; $totalAnemia += $anemia; $totalGizi += $gizi; @endphp @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterCatin(Session::get('year'))) @php // Fetch values $kuaL = $item->filterCatin(Session::get('year'))->kua_L; $kuaP = $item->filterCatin(Session::get('year'))->kua_P; $layananL = $item->filterCatin(Session::get('year'))->layanan_L; $layananP = $item->filterCatin(Session::get('year'))->layanan_P; $anemia = $item->filterCatin(Session::get('year'))->anemia; $gizi = $item->filterCatin(Session::get('year'))->gizi; // Increment totals $totalKuaL += $kuaL; $totalKuaP += $kuaP; $totalKuaTotal += $kuaL + $kuaP; $totalLayananL += $layananL; $totalLayananP += $layananP; $totalLayananTotal += $layananL + $layananP; $totalAnemia += $anemia; $totalGizi += $gizi; @endphp @endif @endforeach @endrole
PELAYANAN KESEHATAN GIGI DAN MULUT PADA ANAK SD DAN SETINGKAT MENURUT JENIS KELAMIN, KECAMATAN, DAN PUSKESMAS
Kabupaten/Kota Kutai Timur
Tahun {{Session::get('year')}}
KecamatanPuskesmasDesaJumlah Catin terdaftar di KUA atau lembaga Agama Lainnya Catin Mendapatkan Layanan Kesehatan Catin Perempuan Anemia Catin Perempuan Gizi Kurang
Laki-Laki Perempuan Laki-Laki + Perempuan
Laki-Laki Perempuan Laki-Laki + Perempuan Jumlah % Jumlah % Jumlah % Jumlah % Jumlah %
{{$item->kecamatan}} {{$item->nama}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_L')["total"]}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_P')["total"]}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_P')["total"] + $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_L')["total"]}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_L')["total"]}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_L')["total"] > 0? number_format($item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_L')["total"] /$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_L')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_P')["total"]}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_P')["total"] > 0? number_format($item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_P')["total"] /$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_P')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_P')["total"] + $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_L')["total"]}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_P')["total"] + $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_L')["total"] > 0? number_format(($item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_P')["total"] + $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_L')["total"]) /($item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_L')["total"] + $item->unitKerjaAmbil('filterCatin', Session::get('year'), 'kua_P')["total"]) * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'anemia')["total"]}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_P')["total"] > 0? number_format($item->unitKerjaAmbil('filterCatin', Session::get('year'), 'anemia')["total"] /$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_P')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'gizi')["total"]}} {{$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_P')["total"] > 0? number_format($item->unitKerjaAmbil('filterCatin', Session::get('year'), 'gizi')["total"] /$item->unitKerjaAmbil('filterCatin', Session::get('year'), 'layanan_P')["total"] * 100, 2 ):0}}
Total {{ $totalKuaL }} {{ $totalKuaP }} {{ $totalKuaTotal }} {{ $totalLayananL }} {{ $totalKuaL > 0 ? number_format($totalLayananL / $totalKuaL * 100, 2) : 0 }} {{ $totalLayananP }} {{ $totalKuaP > 0 ? number_format($totalLayananP / $totalKuaP * 100, 2) : 0 }} {{ $totalLayananTotal }} {{ $totalKuaTotal > 0 ? number_format($totalLayananTotal / $totalKuaTotal * 100, 2) : 0 }} {{ $totalAnemia }} {{ $totalLayananP > 0 ? number_format($totalAnemia / $totalLayananP * 100, 2) : 0 }} {{ $totalGizi }} {{ $totalLayananP > 0 ? number_format($totalGizi / $totalLayananP * 100, 2) : 0 }}
{{$item->UnitKerja->kecamatan}} {{$item->nama}} {{$item->filterCatin(Session::get('year'))->kua_L}} {{$item->filterCatin(Session::get('year'))->kua_P}} {{$item->filterCatin(Session::get('year'))->kua_P + $item->filterCatin(Session::get('year'))->kua_L}} {{$item->filterCatin(Session::get('year'))->layanan_L}} {{$item->filterCatin(Session::get('year'))->kua_L > 0 ? number_format( $item->filterCatin(Session::get('year'))->layanan_L / $item->filterCatin(Session::get('year'))->kua_L * 100, 2 ) : 0}} {{$item->filterCatin(Session::get('year'))->layanan_P}} {{$item->filterCatin(Session::get('year'))->kua_P > 0 ? number_format( $item->filterCatin(Session::get('year'))->layanan_P / $item->filterCatin(Session::get('year'))->kua_P * 100, 2 ) : 0}} {{$item->filterCatin(Session::get('year'))->layanan_P + $item->filterCatin(Session::get('year'))->layanan_L}} {{$item->filterCatin(Session::get('year'))->kua_P + $item->filterCatin(Session::get('year'))->kua_L > 0 ? number_format( ($item->filterCatin(Session::get('year'))->layanan_P + $item->filterCatin(Session::get('year'))->layanan_L) / ($item->filterCatin(Session::get('year'))->kua_L + $item->filterCatin(Session::get('year'))->kua_P) * 100, 2 ) : 0}} {{$item->filterCatin(Session::get('year'))->anemia}} {{$item->filterCatin(Session::get('year'))->layanan_P > 0 ? number_format( $item->filterCatin(Session::get('year'))->anemia / $item->filterCatin(Session::get('year'))->layanan_P * 100, 2 ) : 0}} {{$item->filterCatin(Session::get('year'))->gizi}} {{$item->filterCatin(Session::get('year'))->layanan_P>0? number_format($item->filterCatin(Session::get('year'))->gizi /$item->filterCatin(Session::get('year'))->layanan_P * 100, 2):0}}
Total {{ $totalKuaL }} {{ $totalKuaP }} {{ $totalKuaTotal }} {{ $totalLayananL }} {{ $totalKuaL > 0 ? number_format($totalLayananL / $totalKuaL * 100, 2) : 0 }} {{ $totalLayananP }} {{ $totalKuaP > 0 ? number_format($totalLayananP / $totalKuaP * 100, 2) : 0 }} {{ $totalLayananTotal }} {{ $totalKuaTotal > 0 ? number_format($totalLayananTotal / $totalKuaTotal * 100, 2) : 0 }} {{ $totalAnemia }} {{ $totalLayananP > 0 ? number_format($totalAnemia / $totalLayananP * 100, 2) : 0 }} {{ $totalGizi }} {{ $totalLayananP > 0 ? number_format($totalGizi / $totalLayananP * 100, 2) : 0 }}