@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @php $totalJumlahSD = 0; $totalJumlahSikat = 0; $totalJumlahYan = 0; $totalSdL = 0; $totalSdP = 0; $totalDiperiksaL = 0; $totalDiperiksaP = 0; $totalRawatL = 0; $totalRawatP = 0; $totalDapatL = 0; $totalDapatP = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @php // Fetch data for the current row $jumlahSD = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_sd')["total"]; $jumlahSikat = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_sikat')["total"]; $jumlahYan = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_yan')["total"]; $sdL = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_L')["total"]; $sdP = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_P')["total"]; $diperiksaL = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'diperiksa_L')["total"]; $diperiksaP = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'diperiksa_P')["total"]; $rawatL = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_L')["total"]; $rawatP = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_P')["total"]; $dapatL = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'dapat_L')["total"]; $dapatP = $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'dapat_P')["total"]; // Accumulate totals $totalJumlahSD += $jumlahSD; $totalJumlahSikat += $jumlahSikat; $totalJumlahYan += $jumlahYan; $totalSdL += $sdL; $totalSdP += $sdP; $totalDiperiksaL += $diperiksaL; $totalDiperiksaP += $diperiksaP; $totalRawatL += $rawatL; $totalRawatP += $rawatP; $totalDapatL += $dapatL; $totalDapatP += $dapatP; @endphp @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterGigiAnak(Session::get('year'))) @php // Fetch data for the current row $jumlahSD = $item->filterGigiAnak(Session::get('year'))->jumlah_sd; $jumlahSikat = $item->filterGigiAnak(Session::get('year'))->jumlah_sikat; $jumlahYan = $item->filterGigiAnak(Session::get('year'))->jumlah_yan; $sdL = $item->filterGigiAnak(Session::get('year'))->sd_L; $sdP = $item->filterGigiAnak(Session::get('year'))->sd_P; $diperiksaL = $item->filterGigiAnak(Session::get('year'))->diperiksa_L; $diperiksaP = $item->filterGigiAnak(Session::get('year'))->diperiksa_P; $rawatL = $item->filterGigiAnak(Session::get('year'))->rawat_L; $rawatP = $item->filterGigiAnak(Session::get('year'))->rawat_P; $dapatL = $item->filterGigiAnak(Session::get('year'))->dapat_L; $dapatP = $item->filterGigiAnak(Session::get('year'))->dapat_P; // Accumulate totals $totalJumlahSD += $jumlahSD; $totalJumlahSikat += $jumlahSikat; $totalJumlahYan += $jumlahYan; $totalSdL += $sdL; $totalSdP += $sdP; $totalDiperiksaL += $diperiksaL; $totalDiperiksaP += $diperiksaP; $totalRawatL += $rawatL; $totalRawatP += $rawatP; $totalDapatL += $dapatL; $totalDapatP += $dapatP; @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')}}
KecamatanPuskesmasDesaUsaha Kesehatan Gigi Sekolah (UKGS)
Jumlah SD/MI Jumlah SD/MI dengan Sikat Gigi Massal % Jumlah SD/MI mendapat Yan. Gigi % Jumlah Murid SD/MI Murid SD/MI Diperiksa Murid SD/MI Perlu Perawatan Murid SD/MI Mendapat Perawatan
L P L+P L % P % L+P % L P L+P L % P % L+P %
{{$item->kecamatan}} {{$item->nama}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_sd')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_sikat')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_sd')["total"] > 0? number_format($item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_sikat')["total"] /$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_sd')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_yan')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_sd')["total"] > 0? number_format($item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_yan')["total"] /$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'jumlah_sd')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_L')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_P')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_P')["total"] + $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_L')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'diperiksa_L')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_L')["total"] > 0? number_format($item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'diperiksa_L')["total"] /$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_L')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'diperiksa_P')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_P')["total"] > 0? number_format($item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'diperiksa_P')["total"] /$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_P')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'diperiksa_P')["total"] + $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'diperiksa_L')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_P')["total"] + $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_L')["total"]> 0? number_format(($item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'diperiksa_L')["total"] + $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'diperiksa_P')["total"]) /($item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_L')["total"] + $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'sd_P')["total"]) * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_L')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_P')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_P')["total"] + $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_L')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'dapat_L')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_L')["total"] > 0? number_format($item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'dapat_L')["total"] /$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_L')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'dapat_P')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_P')["total"] > 0? number_format($item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'dapat_P')["total"] /$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_P')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'dapat_P')["total"] + $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'dapat_L')["total"]}} {{$item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_P')["total"] + $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_L')["total"]> 0? number_format(($item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'dapat_L')["total"] + $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'dapat_P')["total"]) /($item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_L')["total"] + $item->unitKerjaAmbil('filterGigiAnak', Session::get('year'), 'rawat_P')["total"]) * 100, 2 ):0}}
Total {{ $totalJumlahSD }} {{ $totalJumlahSikat }} {{ $totalJumlahSD > 0 ? number_format($totalJumlahSikat / $totalJumlahSD * 100, 2) : 0 }} {{ $totalJumlahYan }} {{ $totalJumlahSD > 0 ? number_format($totalJumlahYan / $totalJumlahSD * 100, 2) : 0 }} {{ $totalSdL }} {{ $totalSdP }} {{ $totalSdL + $totalSdP }} {{ $totalDiperiksaL }} {{ $totalSdL > 0 ? number_format($totalDiperiksaL / $totalSdL * 100, 2) : 0 }} {{ $totalDiperiksaP }} {{ $totalSdP > 0 ? number_format($totalDiperiksaP / $totalSdP * 100, 2) : 0 }} {{ $totalDiperiksaL + $totalDiperiksaP }} {{ ($totalSdL + $totalSdP) > 0 ? number_format(($totalDiperiksaL + $totalDiperiksaP) / ($totalSdL + $totalSdP) * 100, 2) : 0 }} {{ $totalRawatL }} {{ $totalRawatP }} {{ $totalRawatL + $totalRawatP }} {{ $totalDapatL }} {{ $totalRawatL > 0 ? number_format($totalDapatL / $totalRawatL * 100, 2) : 0 }} {{ $totalDapatP }} {{ $totalRawatP > 0 ? number_format($totalDapatP / $totalRawatP * 100, 2) : 0 }} {{ $totalDapatL + $totalDapatP }} {{ ($totalRawatL + $totalRawatP) > 0 ? number_format(($totalDapatL + $totalDapatP) / ($totalRawatL + $totalRawatP) * 100, 2) : 0 }}
{{$item->UnitKerja->kecamatan}} {{$item->nama}} {{$item->filterGigiAnak(Session::get('year'))->jumlah_sd}} {{$item->filterGigiAnak(Session::get('year'))->jumlah_sikat}} {{$item->filterGigiAnak(Session::get('year'))->jumlah_sd > 0 ? number_format( $item->filterGigiAnak(Session::get('year'))->jumlah_sikat / $item->filterGigiAnak(Session::get('year'))->jumlah_sd * 100, 2 ) : 0}} {{$item->filterGigiAnak(Session::get('year'))->jumlah_yan}} {{$item->filterGigiAnak(Session::get('year'))->jumlah_sd > 0 ? number_format( $item->filterGigiAnak(Session::get('year'))->jumlah_yan / $item->filterGigiAnak(Session::get('year'))->jumlah_sd * 100, 2 ) : 0}} {{$item->filterGigiAnak(Session::get('year'))->sd_L}} {{$item->filterGigiAnak(Session::get('year'))->sd_P}} {{$item->filterGigiAnak(Session::get('year'))->sd_L + $item->filterGigiAnak(Session::get('year'))->sd_P}} {{$item->filterGigiAnak(Session::get('year'))->diperiksa_L}} {{$item->filterGigiAnak(Session::get('year'))->sd_L > 0 ? number_format( $item->filterGigiAnak(Session::get('year'))->diperiksa_L / $item->filterGigiAnak(Session::get('year'))->sd_L * 100, 2 ) : 0}} {{$item->filterGigiAnak(Session::get('year'))->diperiksa_P}} {{$item->filterGigiAnak(Session::get('year'))->sd_P > 0 ? number_format( $item->filterGigiAnak(Session::get('year'))->diperiksa_P / $item->filterGigiAnak(Session::get('year'))->sd_P * 100, 2 ) : 0}} {{$item->filterGigiAnak(Session::get('year'))->diperiksa_L + $item->filterGigiAnak(Session::get('year'))->diperiksa_P}} {{$item->filterGigiAnak(Session::get('year'))->sd_P + $item->filterGigiAnak(Session::get('year'))->sd_L > 0 ? number_format( ($item->filterGigiAnak(Session::get('year'))->diperiksa_L + $item->filterGigiAnak(Session::get('year'))->diperiksa_P) / ($item->filterGigiAnak(Session::get('year'))->sd_L + $item->filterGigiAnak(Session::get('year'))->sd_P) * 100, 2 ) : 0}} {{$item->filterGigiAnak(Session::get('year'))->rawat_L}} {{$item->filterGigiAnak(Session::get('year'))->rawat_P}} {{$item->filterGigiAnak(Session::get('year'))->rawat_L + $item->filterGigiAnak(Session::get('year'))->rawat_P}} {{$item->filterGigiAnak(Session::get('year'))->dapat_L}} {{$item->filterGigiAnak(Session::get('year'))->rawat_L > 0 ? number_format( $item->filterGigiAnak(Session::get('year'))->dapat_L / $item->filterGigiAnak(Session::get('year'))->rawat_L * 100, 2 ) : 0}} {{$item->filterGigiAnak(Session::get('year'))->dapat_P}} {{$item->filterGigiAnak(Session::get('year'))->rawat_P>0? number_format($item->filterGigiAnak(Session::get('year'))->dapat_P /$item->filterGigiAnak(Session::get('year'))->rawat_P * 100, 2):0}} {{$item->filterGigiAnak(Session::get('year'))->dapat_L + $item->filterGigiAnak(Session::get('year'))->dapat_P}} {{$item->filterGigiAnak(Session::get('year'))->rawat_P + $item->filterGigiAnak(Session::get('year'))->rawat_L>0? number_format(( $item->filterGigiAnak(Session::get('year'))->dapat_L + $item->filterGigiAnak(Session::get('year'))->dapat_P) /($item->filterGigiAnak(Session::get('year'))->rawat_L + $item->filterGigiAnak(Session::get('year'))->rawat_P) * 100, 2):0}}
Total {{ $totalJumlahSD }} {{ $totalJumlahSikat }} {{ $totalJumlahSD > 0 ? number_format($totalJumlahSikat / $totalJumlahSD * 100, 2) : 0 }} {{ $totalJumlahYan }} {{ $totalJumlahSD > 0 ? number_format($totalJumlahYan / $totalJumlahSD * 100, 2) : 0 }} {{ $totalSdL }} {{ $totalSdP }} {{ $totalSdL + $totalSdP }} {{ $totalDiperiksaL }} {{ $totalSdL > 0 ? number_format($totalDiperiksaL / $totalSdL * 100, 2) : 0 }} {{ $totalDiperiksaP }} {{ $totalSdP > 0 ? number_format($totalDiperiksaP / $totalSdP * 100, 2) : 0 }} {{ $totalDiperiksaL + $totalDiperiksaP }} {{ ($totalSdL + $totalSdP) > 0 ? number_format(($totalDiperiksaL + $totalDiperiksaP) / ($totalSdL + $totalSdP) * 100, 2) : 0 }} {{ $totalRawatL }} {{ $totalRawatP }} {{ $totalRawatL + $totalRawatP }} {{ $totalDapatL }} {{ $totalRawatL > 0 ? number_format($totalDapatL / $totalRawatL * 100, 2) : 0 }} {{ $totalDapatP }} {{ $totalRawatP > 0 ? number_format($totalDapatP / $totalRawatP * 100, 2) : 0 }} {{ $totalDapatL + $totalDapatP }} {{ ($totalRawatL + $totalRawatP) > 0 ? number_format(($totalDapatL + $totalDapatP) / ($totalRawatL + $totalRawatP) * 100, 2) : 0 }}