@role('Admin|superadmin')
@foreach ($unit_kerja as $key => $item)
{{$item->kecamatan}} |
{{$item->nama}} |
{{$item->odgj_per_desa(Session::get('year'))["sasaran"]}} |
{{$item->odgj_per_desa(Session::get('year'))["skizo_0"]}} |
{{$item->odgj_per_desa(Session::get('year'))["skizo_15"]}} |
{{$item->odgj_per_desa(Session::get('year'))["skizo_60"]}} |
{{$item->odgj_per_desa(Session::get('year'))["psiko_0"]}} |
{{$item->odgj_per_desa(Session::get('year'))["psiko_15"]}} |
{{$item->odgj_per_desa(Session::get('year'))["psiko_60"]}} |
{{$item->odgj_per_desa(Session::get('year'))["psiko_0"] + $item->odgj_per_desa(Session::get('year'))["skizo_0"]}} |
{{$item->odgj_per_desa(Session::get('year'))["psiko_15"] + $item->odgj_per_desa(Session::get('year'))["skizo_15"]}} |
{{$item->odgj_per_desa(Session::get('year'))["psiko_60"] + $item->odgj_per_desa(Session::get('year'))["skizo_60"]}} |
{{$item->kunjungan_per_desa(Session::get('year'))["jiwa_L"] + $item->kunjungan_per_desa(Session::get('year'))["jiwa_P"]}} |
{{$item->kunjungan_per_desa(Session::get('year'))["jiwa_L"] + $item->kunjungan_per_desa(Session::get('year'))["jiwa_P"]>0?number_format(($item->kunjungan_per_desa(Session::get('year'))["jiwa_L"] + $item->kunjungan_per_desa(Session::get('year'))["jiwa_P"])/$item->odgj_per_desa(Session::get('year'))["sasaran"]*100, 2):0}} |
@endforeach
TOTAL |
|
{{$total_sasaran}} |
{{$total_skizo_0}} |
{{$total_skizo_15}} |
{{$total_skizo_60}} |
{{$total_psiko_0}} |
{{$total_psiko_15}} |
{{$total_psiko_60}} |
{{$total_psiko_0 + $total_skizo_0}} |
{{$total_psiko_15 + $total_skizo_15}} |
{{$total_psiko_60 + $total_skizo_60}} |
{{$total_jiwa_L + $total_jiwa_P}} |
{{$total_jiwa_L + $total_jiwa_P>0?number_format(($total_jiwa_L + $total_jiwa_P)/$total_sasaran*100, 2):0}} |
|
@endrole
@role('Puskesmas|Pihak Wajib Pajak')
@foreach ($desa as $key => $item)
@if($item->filterOdgj(Session::get('year')))
{{$item->UnitKerja->kecamatan}} |
{{$item->nama}} |
{{ $item->filterOdgj(Session::get('year'))->sasaran }} |
{{ $item->filterOdgj(Session::get('year'))->skizo_0 }} |
{{ $item->filterOdgj(Session::get('year'))->skizo_15 }} |
{{ $item->filterOdgj(Session::get('year'))->skizo_60 }} |
{{ $item->filterOdgj(Session::get('year'))->psiko_0 }} |
{{ $item->filterOdgj(Session::get('year'))->psiko_15 }} |
{{ $item->filterOdgj(Session::get('year'))->psiko_60 }} |
{{$item->filterOdgj(Session::get('year'))->psiko_0 + $item->filterOdgj(Session::get('year'))->skizo_0}} |
{{$item->filterOdgj(Session::get('year'))->psiko_15 + $item->filterOdgj(Session::get('year'))->skizo_15}} |
{{$item->filterOdgj(Session::get('year'))->psiko_60 + $item->filterOdgj(Session::get('year'))->skizo_60}} |
{{$item->filterKunjungan(Session::get('year'))->jiwa_L + $item->filterKunjungan(Session::get('year'))->jiwa_P}} |
{{$item->filterOdgj(Session::get('year'))->sasaran > 0? number_format(($item->filterKunjungan(Session::get('year'))->jiwa_L + $item->filterKunjungan(Session::get('year'))->jiwa_P) / $item->filterOdgj(Session::get('year'))->sasaran * 100, 2):0}}% |
@endif
@endforeach
TOTAL |
|
{{$total_sasaran}} |
{{$total_skizo_0}} |
{{$total_skizo_15}} |
{{$total_skizo_60}} |
{{$total_psiko_0}} |
{{$total_psiko_15}} |
{{$total_psiko_60}} |
{{$total_psiko_0 + $total_skizo_0}} |
{{$total_psiko_15 + $total_skizo_15}} |
{{$total_psiko_60 + $total_skizo_60}} |
{{$total_jiwa_L + $total_jiwa_P}} |
{{$total_jiwa_L + $total_jiwa_P>0?number_format(($total_jiwa_L + $total_jiwa_P)/$total_sasaran*100, 2):0}} |
|
@endrole