{{$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}} |
@endforeach
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 }} |
@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
{{$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}} |
@endif
@endforeach
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 }} |
@endrole