@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
{{$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 }} |
@endforeach
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}} |
@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
{{$item->UnitKerja->kecamatan}} |
{{$item->nama}} |
{{$item->filterDesa(Session::get('year'))->jumlah_ibu_bersalin}} |
@php
$desaData = $item->filterDesa(Session::get('year'));
@endphp
{{ $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
}}
|
@endif
@endforeach
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}} |
@endrole