@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @php $jumlah = 0; $kondom = 0; $suntik = 0; $pil = 0; $akdr = 0; $mop = 0; $mow = 0; $implan = 0; $mal = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @php $jumlah += $item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]; $kondom += $item->ibu_hamil_per_desa(Session::get('year'))["kondom"]; $suntik += $item->ibu_hamil_per_desa(Session::get('year'))["suntik"]; $pil += $item->ibu_hamil_per_desa(Session::get('year'))["pil"]; $akdr += $item->ibu_hamil_per_desa(Session::get('year'))["akdr"]; $mop += $item->ibu_hamil_per_desa(Session::get('year'))["mop"]; $mow += $item->ibu_hamil_per_desa(Session::get('year'))["mow"]; $implan += $item->ibu_hamil_per_desa(Session::get('year'))["implan"]; $mal += $item->ibu_hamil_per_desa(Session::get('year'))["mal"]; @endphp @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterDesa(Session::get('year'))) @php $jumlah += $item->filterDesa(Session::get('year'))->jumlah_ibu_bersalin; $kondom += $item->filterDesa(Session::get('year'))->kondom; $suntik += $item->filterDesa(Session::get('year'))->suntik; $pil += $item->filterDesa(Session::get('year'))->pil; $akdr += $item->filterDesa(Session::get('year'))->akdr; $mop += $item->filterDesa(Session::get('year'))->mop; $mow += $item->filterDesa(Session::get('year'))->mow; $implan += $item->filterDesa(Session::get('year'))->implan; $mal += $item->filterDesa(Session::get('year'))->mal; @endphp @php $desaData = $item->filterDesa(Session::get('year')); @endphp @endif @endforeach @endrole
CAKUPAN DAN PROPORSI PESERTA KB PASCA PERSALINAN MENURUT JENIS KONTRASEPSI, KECAMATAN, DAN PUSKESMAS
Kabupaten/Kota Kutai Timur
Tahun {{Session::get('year')}}
KecamatanPuskesmasDesaJumlah Ibu Bersalin Peserta Aktif KB Modern
Kondom % Suntik         % Pil            % Akdr            % MOP            % MOW            % Implan            % MAL            % Jumlah %
{{$item->kecamatan}} {{$item->nama}} {{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]}} {{$item->ibu_hamil_per_desa(Session::get('year'))["kondom"]}} {{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]>0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["kondom"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"] * 100, 2):0 }} {{$item->ibu_hamil_per_desa(Session::get('year'))["suntik"]}} {{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]>0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["suntik"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"] * 100, 2):0 }} {{$item->ibu_hamil_per_desa(Session::get('year'))["pil"]}} {{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]>0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["pil"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"] * 100, 2):0 }} {{$item->ibu_hamil_per_desa(Session::get('year'))["akdr"]}} {{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]>0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["akdr"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"] * 100, 2):0 }} {{$item->ibu_hamil_per_desa(Session::get('year'))["mop"]}} {{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]>0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["mop"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"] * 100, 2):0 }} {{$item->ibu_hamil_per_desa(Session::get('year'))["mow"]}} {{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]>0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["mow"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"] * 100, 2):0 }} {{$item->ibu_hamil_per_desa(Session::get('year'))["implan"]}} {{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]>0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["implan"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"] * 100, 2):0 }} {{$item->ibu_hamil_per_desa(Session::get('year'))["mal"]}} {{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]>0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["mal"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"] * 100, 2):0 }} {{$item->ibu_hamil_per_desa(Session::get('year'))["mal"] + $item->ibu_hamil_per_desa(Session::get('year'))["implan"] + $item->ibu_hamil_per_desa(Session::get('year'))["mow"] + $item->ibu_hamil_per_desa(Session::get('year'))["mop"] + $item->ibu_hamil_per_desa(Session::get('year'))["pil"] + $item->ibu_hamil_per_desa(Session::get('year'))["akdr"] + $item->ibu_hamil_per_desa(Session::get('year'))["suntik"] + $item->ibu_hamil_per_desa(Session::get('year'))["kondom"] }} {{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]>0?number_format((($item->ibu_hamil_per_desa(Session::get('year'))["mal"] + $item->ibu_hamil_per_desa(Session::get('year'))["implan"] + $item->ibu_hamil_per_desa(Session::get('year'))["mow"] + $item->ibu_hamil_per_desa(Session::get('year'))["mop"] + $item->ibu_hamil_per_desa(Session::get('year'))["pil"] + $item->ibu_hamil_per_desa(Session::get('year'))["akdr"] + $item->ibu_hamil_per_desa(Session::get('year'))["suntik"] + $item->ibu_hamil_per_desa(Session::get('year'))["kondom"])/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_bersalin"]) * 100, 2):0 }}
TOTAL {{$jumlah}} {{$kondom}} {{$jumlah>0?number_format(($kondom/$jumlah) * 100, 2):0}} {{$suntik}} {{$jumlah>0?number_format(($suntik/$jumlah) * 100, 2):0}} {{$pil}} {{$jumlah>0?number_format(($pil/$jumlah) * 100, 2):0}} {{$akdr}} {{$jumlah>0?number_format(($akdr/$jumlah) * 100, 2):0}} {{$mop}} {{$jumlah>0?number_format(($mop/$jumlah) * 100, 2):0}} {{$mow}} {{$jumlah>0?number_format(($mow/$jumlah) * 100, 2):0}} {{$implan}} {{$jumlah>0?number_format(($implan/$jumlah) * 100, 2):0}} {{$mal}} {{$jumlah>0?number_format(($mal/$jumlah) * 100, 2):0}} {{$mal + $implan + $mow + $mop + $akdr + $pil + $suntik + $kondom}} {{$jumlah>0?number_format((($mal + $implan + $mow + $mop + $akdr + $pil + $suntik + $kondom)/$jumlah) * 100, 2):0}}
{{$item->UnitKerja->kecamatan}} {{$item->nama}} {{$item->filterDesa(Session::get('year'))->jumlah_ibu_bersalin}}{{ $desaData->kondom }} {{ $desaData->jumlah_ibu_bersalin > 0 ? number_format(($desaData->kondom / $desaData->jumlah_ibu_bersalin) * 100, 2) : 0 }} {{ $desaData->suntik }} {{ $desaData->jumlah_ibu_bersalin > 0 ? number_format(($desaData->suntik / $desaData->jumlah_ibu_bersalin) * 100, 2) : 0 }} {{ $desaData->pil }} {{ $desaData->jumlah_ibu_bersalin > 0 ? number_format(($desaData->pil / $desaData->jumlah_ibu_bersalin) * 100, 2) : 0 }} {{ $desaData->akdr }} {{ $desaData->jumlah_ibu_bersalin > 0 ? number_format(($desaData->akdr / $desaData->jumlah_ibu_bersalin) * 100, 2) : 0 }} {{ $desaData->mop }} {{ $desaData->jumlah_ibu_bersalin > 0 ? number_format(($desaData->mop / $desaData->jumlah_ibu_bersalin) * 100, 2) : 0 }} {{ $desaData->mow }} {{ $desaData->jumlah_ibu_bersalin > 0 ? number_format(($desaData->mow / $desaData->jumlah_ibu_bersalin) * 100, 2) : 0 }} {{ $desaData->implan }} {{ $desaData->jumlah_ibu_bersalin > 0 ? number_format(($desaData->implan / $desaData->jumlah_ibu_bersalin) * 100, 2) : 0 }} {{ $desaData->mal }} {{ $desaData->jumlah_ibu_bersalin > 0 ? number_format(($desaData->mal / $desaData->jumlah_ibu_bersalin) * 100, 2) : 0 }} {{ $desaData->mal + $desaData->implan + $desaData->mow + $desaData->mop + $desaData->pil + $desaData->akdr + $desaData->suntik + $desaData->kondom }} {{ $desaData->jumlah_ibu_bersalin > 0 ? number_format( ( $desaData->mal + $desaData->implan + $desaData->mow + $desaData->mop + $desaData->pil + $desaData->akdr + $desaData->suntik + $desaData->kondom ) / $desaData->jumlah_ibu_bersalin * 100, 2) : 0 }}
TOTAL {{$jumlah}} {{$kondom}} {{$jumlah>0?number_format(($kondom/$jumlah) * 100, 2):0}} {{$suntik}} {{$jumlah>0?number_format(($suntik/$jumlah) * 100, 2):0}} {{$pil}} {{$jumlah>0?number_format(($pil/$jumlah) * 100, 2):0}} {{$akdr}} {{$jumlah>0?number_format(($akdr/$jumlah) * 100, 2):0}} {{$mop}} {{$jumlah>0?number_format(($mop/$jumlah) * 100, 2):0}} {{$mow}} {{$jumlah>0?number_format(($mow/$jumlah) * 100, 2):0}} {{$implan}} {{$jumlah>0?number_format(($implan/$jumlah) * 100, 2):0}} {{$mal}} {{$jumlah>0?number_format(($mal/$jumlah) * 100, 2):0}} {{$mal + $implan + $mow + $mop + $akdr + $pil + $suntik + $kondom}} {{$jumlah>0?number_format((($mal + $implan + $mow + $mop + $akdr + $pil + $suntik + $kondom)/$jumlah) * 100, 2):0}}