@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @php // Initialize total variables $totalKonfirmasiL = $totalKonfirmasiP = $totalKonfirmasi = 0; $totalDiobatiL = $totalDiobatiP = $totalDiobati = 0; $totalKesembuhanL = $totalKesembuhanP = $totalKesembuhan = 0; $totalLengkapL = $totalLengkapP = $totalLengkap = 0; $totalBerhasilL = $totalBerhasilP = $totalBerhasil = 0; $totalKematian = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @php // Fetch and sum values $konfirmasiL = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_L')["total"]; $konfirmasiP = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_P')["total"]; $diobatiL = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"]; $diobatiP = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"]; $kesembuhanL = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kesembuhan_L')["total"]; $kesembuhanP = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kesembuhan_P')["total"]; $lengkapL = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'lengkap_L')["total"]; $lengkapP = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'lengkap_P')["total"]; $berhasilL = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'berhasil_L')["total"]; $berhasilP = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'berhasil_P')["total"]; $kematian = $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kematian')["total"]; // Update totals $totalKonfirmasiL += $konfirmasiL; $totalKonfirmasiP += $konfirmasiP; $totalDiobatiL += $diobatiL; $totalDiobatiP += $diobatiP; $totalKesembuhanL += $kesembuhanL; $totalKesembuhanP += $kesembuhanP; $totalLengkapL += $lengkapL; $totalLengkapP += $lengkapP; $totalBerhasilL += $berhasilL; $totalBerhasilP += $berhasilP; $totalKematian += $kematian; @endphp @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterObatTuberkulosis(Session::get('year'))) @php // Fetch and sum values $konfirmasiL = $item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_L; $konfirmasiP = $item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_P; $diobatiL = $item->filterObatTuberkulosis(Session::get('year'))->diobati_L; $diobatiP = $item->filterObatTuberkulosis(Session::get('year'))->diobati_P; $kesembuhanL = $item->filterObatTuberkulosis(Session::get('year'))->kesembuhan_L; $kesembuhanP = $item->filterObatTuberkulosis(Session::get('year'))->kesembuhan_P; $lengkapL = $item->filterObatTuberkulosis(Session::get('year'))->lengkap_L; $lengkapP = $item->filterObatTuberkulosis(Session::get('year'))->lengkap_P; $berhasilL = $item->filterObatTuberkulosis(Session::get('year'))->berhasil_L; $berhasilP = $item->filterObatTuberkulosis(Session::get('year'))->berhasil_P; $kematian = $item->filterObatTuberkulosis(Session::get('year'))->kematian; // Update totals $totalKonfirmasiL += $konfirmasiL; $totalKonfirmasiP += $konfirmasiP; $totalDiobatiL += $diobatiL; $totalDiobatiP += $diobatiP; $totalKesembuhanL += $kesembuhanL; $totalKesembuhanP += $kesembuhanP; $totalLengkapL += $lengkapL; $totalLengkapP += $lengkapP; $totalBerhasilL += $berhasilL; $totalBerhasilP += $berhasilP; $totalKematian += $kematian; @endphp @endif @endforeach @endrole
ANGKA KESEMBUHAN DAN PENGOBATAN LENGKAP SERTA KEBERHASILAN PENGOBATAN TUBERKULOSIS MENURUT JENIS KELAMIN, KECAMATAN, DAN PUSKESMAS
Kabupaten/Kota Kutai Timur
Tahun {{Session::get('year')}}
KecamatanPuskesmasDesaJUMLAH KASUS TUBERKULOSIS PARU TERKONFIRMASI BAKTERIOLOGIS YANG DITEMUKAN DAN DIOBATI* JUMLAH SEMUA KASUS TUBERKULOSIS YANG DITEMUKAN DAN DIOBATI ANGKA KESEMBUHAN (CURE RATE) TUBERKULOSIS PARU TERKONFIRMASI BAKTERIOLOGIS ANGKA PENGOBATAN LENGKAP (COMPLETE RATE) SEMUA KASUS TUBERKULOSIS ANGKA KEBERHASILAN PENGOBATAN (SUCCESS RATE/SR) SEMUA KASUS TUBERKULOSIS JUMLAH KEMATIAN SELAMA PENGOBATAN TUBERKULOSIS
Laki-Laki Perempuan Laki-Laki + Perempuan Laki-Laki Perempuan Laki-Laki + Perempuan Laki-Laki Perempuan Laki-Laki + Perempuan
L P L + P L P L + P Jumlah % Jumlah % Jumlah % Jumlah % Jumlah % Jumlah % Jumlah % Jumlah % Jumlah % Jumlah %
{{$item->kecamatan}} {{$item->nama}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_L')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_P')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_L')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kesembuhan_L')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_L')["total"] > 0? number_format($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kesembuhan_L')["total"] /$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_L')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kesembuhan_P')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_P')["total"] > 0? number_format($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kesembuhan_P')["total"] /$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_P')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kesembuhan_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kesembuhan_L')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_L')["total"] > 0? number_format(($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kesembuhan_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kesembuhan_L')["total"]) /($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_L')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'konfirmasi_P')["total"]) * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'lengkap_L')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"] > 0? number_format($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'lengkap_L')["total"] /$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'lengkap_P')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"] > 0? number_format($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'lengkap_P')["total"] /$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'lengkap_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'lengkap_L')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"] > 0? number_format(($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'lengkap_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'lengkap_L')["total"]) /($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"]) * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'berhasil_L')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"] > 0? number_format($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'berhasil_L')["total"] /$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'berhasil_P')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"] > 0? number_format($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'berhasil_P')["total"] /$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'berhasil_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'berhasil_L')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"] > 0? number_format(($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'berhasil_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'berhasil_L')["total"]) /($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"]) * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kematian')["total"]}} {{$item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"] > 0? number_format($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'kematian')["total"] /($item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_L')["total"] + $item->unitKerjaAmbil('filterObatTuberkulosis', Session::get('year'), 'diobati_P')["total"]) * 100, 2 ):0}}
Total {{ $totalKonfirmasiL }} {{ $totalKonfirmasiP }} {{ $totalKonfirmasiL + $totalKonfirmasiP }} {{ $totalDiobatiL }} {{ $totalDiobatiP }} {{ $totalDiobatiL + $totalDiobatiP }} {{ $totalKesembuhanL }} {{ $totalKonfirmasiL > 0 ? number_format($totalKesembuhanL / $totalKonfirmasiL * 100, 2) : 0 }} {{ $totalKesembuhanP }} {{ $totalKonfirmasiP > 0 ? number_format($totalKesembuhanP / $totalKonfirmasiP * 100, 2) : 0 }} {{ $totalKesembuhanL + $totalKesembuhanP }} {{ ($totalKonfirmasiL + $totalKonfirmasiP) > 0 ? number_format(($totalKesembuhanL + $totalKesembuhanP) / ($totalKonfirmasiL + $totalKonfirmasiP) * 100, 2) : 0 }} {{ $totalLengkapL }} {{ $totalDiobatiL > 0 ? number_format($totalLengkapL / $totalDiobatiL * 100, 2) : 0 }} {{ $totalLengkapP }} {{ $totalDiobatiP > 0 ? number_format($totalLengkapP / $totalDiobatiP * 100, 2) : 0 }} {{ $totalLengkapL + $totalLengkapP }} {{ ($totalDiobatiL + $totalDiobatiP) > 0 ? number_format(($totalLengkapL + $totalLengkapP) / ($totalDiobatiL + $totalDiobatiP) * 100, 2) : 0 }} {{ $totalBerhasilL }} {{ $totalDiobatiL > 0 ? number_format($totalBerhasilL / $totalDiobatiL * 100, 2) : 0 }} {{ $totalBerhasilP }} {{ $totalDiobatiP > 0 ? number_format($totalBerhasilP / $totalDiobatiP * 100, 2) : 0 }} {{ $totalBerhasilL + $totalBerhasilP }} {{ ($totalDiobatiL + $totalDiobatiP) > 0 ? number_format(($totalBerhasilL + $totalBerhasilP) / ($totalDiobatiL + $totalDiobatiP) * 100, 2) : 0 }} {{ $totalKematian }} {{ ($totalDiobatiL + $totalDiobatiP) > 0 ? number_format($totalKematian / ($totalDiobatiL + $totalDiobatiP) * 100, 2) : 0 }}
{{$item->UnitKerja->kecamatan}} {{$item->nama}} {{$item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_L}} {{$item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_P}} {{$item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_P + $item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_L}} {{$item->filterObatTuberkulosis(Session::get('year'))->diobati_L}} {{$item->filterObatTuberkulosis(Session::get('year'))->diobati_P}} {{$item->filterObatTuberkulosis(Session::get('year'))->diobati_P + $item->filterObatTuberkulosis(Session::get('year'))->diobati_L}} {{$item->filterObatTuberkulosis(Session::get('year'))->kesembuhan_L}} {{$item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_L > 0 ? number_format( $item->filterObatTuberkulosis(Session::get('year'))->kesembuhan_L / $item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_L * 100, 2 ) : 0}} {{$item->filterObatTuberkulosis(Session::get('year'))->kesembuhan_P}} {{$item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_P > 0 ? number_format( $item->filterObatTuberkulosis(Session::get('year'))->kesembuhan_P / $item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_P * 100, 2 ) : 0}} {{$item->filterObatTuberkulosis(Session::get('year'))->kesembuhan_P + $item->filterObatTuberkulosis(Session::get('year'))->kesembuhan_L}} {{$item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_P + $item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_L > 0 ? number_format( ($item->filterObatTuberkulosis(Session::get('year'))->kesembuhan_P + $item->filterObatTuberkulosis(Session::get('year'))->kesembuhan_L) / ($item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_L + $item->filterObatTuberkulosis(Session::get('year'))->konfirmasi_P) * 100, 2 ) : 0}} {{$item->filterObatTuberkulosis(Session::get('year'))->lengkap_L}} {{$item->filterObatTuberkulosis(Session::get('year'))->diobati_L > 0 ? number_format( $item->filterObatTuberkulosis(Session::get('year'))->lengkap_L / $item->filterObatTuberkulosis(Session::get('year'))->diobati_L * 100, 2 ) : 0}} {{$item->filterObatTuberkulosis(Session::get('year'))->lengkap_P}} {{$item->filterObatTuberkulosis(Session::get('year'))->diobati_P > 0 ? number_format( $item->filterObatTuberkulosis(Session::get('year'))->lengkap_P / $item->filterObatTuberkulosis(Session::get('year'))->diobati_P * 100, 2 ) : 0}} {{$item->filterObatTuberkulosis(Session::get('year'))->lengkap_P + $item->filterObatTuberkulosis(Session::get('year'))->lengkap_L}} {{$item->filterObatTuberkulosis(Session::get('year'))->diobati_P + $item->filterObatTuberkulosis(Session::get('year'))->diobati_L > 0 ? number_format( ($item->filterObatTuberkulosis(Session::get('year'))->lengkap_P + $item->filterObatTuberkulosis(Session::get('year'))->lengkap_L) / ($item->filterObatTuberkulosis(Session::get('year'))->diobati_L + $item->filterObatTuberkulosis(Session::get('year'))->diobati_P) * 100, 2 ) : 0}} {{$item->filterObatTuberkulosis(Session::get('year'))->berhasil_L}} {{$item->filterObatTuberkulosis(Session::get('year'))->diobati_L > 0 ? number_format( $item->filterObatTuberkulosis(Session::get('year'))->berhasil_L / $item->filterObatTuberkulosis(Session::get('year'))->diobati_L * 100, 2 ) : 0}} {{$item->filterObatTuberkulosis(Session::get('year'))->berhasil_P}} {{$item->filterObatTuberkulosis(Session::get('year'))->diobati_P > 0 ? number_format( $item->filterObatTuberkulosis(Session::get('year'))->berhasil_P / $item->filterObatTuberkulosis(Session::get('year'))->diobati_P * 100, 2 ) : 0}} {{$item->filterObatTuberkulosis(Session::get('year'))->berhasil_P + $item->filterObatTuberkulosis(Session::get('year'))->berhasil_L}} {{$item->filterObatTuberkulosis(Session::get('year'))->diobati_P + $item->filterObatTuberkulosis(Session::get('year'))->diobati_L > 0 ? number_format( ($item->filterObatTuberkulosis(Session::get('year'))->berhasil_P + $item->filterObatTuberkulosis(Session::get('year'))->berhasil_L) / ($item->filterObatTuberkulosis(Session::get('year'))->diobati_L + $item->filterObatTuberkulosis(Session::get('year'))->diobati_P) * 100, 2 ) : 0}} {{$item->filterObatTuberkulosis(Session::get('year'))->kematian}} {{$item->filterObatTuberkulosis(Session::get('year'))->diobati_P + $item->filterObatTuberkulosis(Session::get('year'))->diobati_L>0? number_format($item->filterObatTuberkulosis(Session::get('year'))->kematian /($item->filterObatTuberkulosis(Session::get('year'))->diobati_L + $item->filterObatTuberkulosis(Session::get('year'))->diobati_P) * 100, 2):0}}
Total {{ $totalKonfirmasiL }} {{ $totalKonfirmasiP }} {{ $totalKonfirmasiL + $totalKonfirmasiP }} {{ $totalDiobatiL }} {{ $totalDiobatiP }} {{ $totalDiobatiL + $totalDiobatiP }} {{ $totalKesembuhanL }} {{ $totalKonfirmasiL > 0 ? number_format($totalKesembuhanL / $totalKonfirmasiL * 100, 2) : 0 }} {{ $totalKesembuhanP }} {{ $totalKonfirmasiP > 0 ? number_format($totalKesembuhanP / $totalKonfirmasiP * 100, 2) : 0 }} {{ $totalKesembuhanL + $totalKesembuhanP }} {{ ($totalKonfirmasiL + $totalKonfirmasiP) > 0 ? number_format(($totalKesembuhanL + $totalKesembuhanP) / ($totalKonfirmasiL + $totalKonfirmasiP) * 100, 2) : 0 }} {{ $totalLengkapL }} {{ $totalDiobatiL > 0 ? number_format($totalLengkapL / $totalDiobatiL * 100, 2) : 0 }} {{ $totalLengkapP }} {{ $totalDiobatiP > 0 ? number_format($totalLengkapP / $totalDiobatiP * 100, 2) : 0 }} {{ $totalLengkapL + $totalLengkapP }} {{ ($totalDiobatiL + $totalDiobatiP) > 0 ? number_format(($totalLengkapL + $totalLengkapP) / ($totalDiobatiL + $totalDiobatiP) * 100, 2) : 0 }} {{ $totalBerhasilL }} {{ $totalDiobatiL > 0 ? number_format($totalBerhasilL / $totalDiobatiL * 100, 2) : 0 }} {{ $totalBerhasilP }} {{ $totalDiobatiP > 0 ? number_format($totalBerhasilP / $totalDiobatiP * 100, 2) : 0 }} {{ $totalBerhasilL + $totalBerhasilP }} {{ ($totalDiobatiL + $totalDiobatiP) > 0 ? number_format(($totalBerhasilL + $totalBerhasilP) / ($totalDiobatiL + $totalDiobatiP) * 100, 2) : 0 }} {{ $totalKematian }} {{ ($totalDiobatiL + $totalDiobatiP) > 0 ? number_format($totalKematian / ($totalDiobatiL + $totalDiobatiP) * 100, 2) : 0 }}