@role('Admin|superadmin')
@foreach ($unit_kerja as $key => $item)
{{$item->kecamatan}} |
{{$item->nama}} |
{{$item->hipertensi_per_desa(Session::get('year'))["jumlah_L"]}} |
{{$item->hipertensi_per_desa(Session::get('year'))["jumlah_P"]}} |
{{$item->hipertensi_per_desa(Session::get('year'))["jumlah_P"] + $item->hipertensi_per_desa(Session::get('year'))["jumlah_L"]}} |
{{$item->hipertensi_per_desa(Session::get('year'))["pelayanan_L"]}} |
{{$item->hipertensi_per_desa(Session::get('year'))["jumlah_L"] > 0?number_format($item->hipertensi_per_desa(Session::get('year'))["pelayanan_L"]/$item->hipertensi_per_desa(Session::get('year'))["jumlah_L"]*100, 2):0}}% |
{{$item->hipertensi_per_desa(Session::get('year'))["pelayanan_P"]}} |
{{$item->hipertensi_per_desa(Session::get('year'))["jumlah_P"] > 0?number_format($item->hipertensi_per_desa(Session::get('year'))["pelayanan_P"]/$item->hipertensi_per_desa(Session::get('year'))["jumlah_P"]*100, 2):0}}% |
{{$item->hipertensi_per_desa(Session::get('year'))["pelayanan_P"] + $item->hipertensi_per_desa(Session::get('year'))["pelayanan_L"]}} |
{{$item->hipertensi_per_desa(Session::get('year'))["jumlah_P"] + $item->hipertensi_per_desa(Session::get('year'))["jumlah_L"] > 0?number_format(($item->hipertensi_per_desa(Session::get('year'))["pelayanan_P"] + $item->hipertensi_per_desa(Session::get('year'))["pelayanan_L"])/($item->hipertensi_per_desa(Session::get('year'))["jumlah_P"] + $item->hipertensi_per_desa(Session::get('year'))["jumlah_L"])*100, 2):0}}% |
@endforeach
TOTAL |
|
{{$total_L}} |
{{$total_P}} |
{{$total_L + $total_P}} |
{{$total_pelayanan_L}} |
{{$total_L > 0?number_format($total_pelayanan_L/$total_L*100, 2):0}}% |
{{$total_pelayanan_P}} |
{{$total_P > 0?number_format($total_pelayanan_P/$total_P*100, 2):0}}% |
{{$total_pelayanan_P + $total_pelayanan_L}} |
{{$total_P + $total_L > 0?number_format(($total_pelayanan_P + $total_pelayanan_L)/($total_P + $total_L)*100, 2):0}}% |
|
@endrole
@role('Puskesmas|Pihak Wajib Pajak')
@foreach ($desa as $key => $item)
@if($item->filterHipertensi(Session::get('year')))
{{$item->UnitKerja->kecamatan}} |
{{$item->nama}} |
{{$item->filterHipertensi(Session::get('year'))->jumlah_L}} |
{{$item->filterHipertensi(Session::get('year'))->jumlah_P}} |
{{$item->filterHipertensi(Session::get('year'))->jumlah_L + $item->filterHipertensi(Session::get('year'))->jumlah_P}}
|
{{$item->filterHipertensi(Session::get('year'))->pelayanan_L}} |
{{$item->filterHipertensi(Session::get('year'))->jumlah_L > 0 ? number_format($item->filterHipertensi(Session::get('year'))->pelayanan_L / $item->filterHipertensi(Session::get('year'))->jumlah_L * 100, 2) : 0}}%
|
{{$item->filterHipertensi(Session::get('year'))->pelayanan_P}} |
{{$item->filterHipertensi(Session::get('year'))->jumlah_P > 0 ? number_format($item->filterHipertensi(Session::get('year'))->pelayanan_P / $item->filterHipertensi(Session::get('year'))->jumlah_P * 100, 2) : 0}}%
|
{{$item->filterHipertensi(Session::get('year'))->pelayanan_P + $item->filterHipertensi(Session::get('year'))->pelayanan_L}}
|
{{$item->filterHipertensi(Session::get('year'))->jumlah_P + $item->filterHipertensi(Session::get('year'))->jumlah_L > 0 ?
number_format(($item->filterHipertensi(Session::get('year'))->pelayanan_P + $item->filterHipertensi(Session::get('year'))->pelayanan_L) /
($item->filterHipertensi(Session::get('year'))->jumlah_P + $item->filterHipertensi(Session::get('year'))->jumlah_L) * 100, 2) : 0}}%
|
@endif
@endforeach
TOTAL |
|
{{$total_L}} |
{{$total_P}} |
{{$total_L + $total_P}} |
{{$total_pelayanan_L}} |
{{$total_L > 0?number_format($total_pelayanan_L/$total_L*100, 2):0}}% |
{{$total_pelayanan_P}} |
{{$total_P > 0?number_format($total_pelayanan_P/$total_P*100, 2):0}}% |
{{$total_pelayanan_P + $total_pelayanan_L}} |
{{$total_P + $total_L > 0?number_format(($total_pelayanan_P + $total_pelayanan_L)/($total_P + $total_L)*100, 2):0}}% |
@endrole