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