@role('Admin|superadmin')
@foreach ($unit_kerja as $key => $item)
{{$item->kecamatan}} |
{{$item->nama}} |
{{$item->diabetes_per_desa(Session::get('year'))["jumlah"]}} |
{{$item->diabetes_per_desa(Session::get('year'))["pelayanan"]}} |
{{$item->diabetes_per_desa(Session::get('year'))["jumlah"] >0? number_format($item->diabetes_per_desa(Session::get('year'))["pelayanan"]/$item->diabetes_per_desa(Session::get('year'))["jumlah"] * 100, 2):0 }} |
diabetes_lock_get(Session::get('year')) == 1 ? "checked":""}} class="data-lock" id="{{$item->id}}"> |
@endforeach
TOTAL |
|
{{$total_diabetes}} |
{{$total_pelayanan_diabetes}} |
{{$total_diabetes >0? number_format($total_pelayanan_diabetes/$total_diabetes * 100, 2):0 }} |
|
@endrole
@role('Puskesmas|Pihak Wajib Pajak')
@foreach ($desa as $key => $item)
@if($item->filterDiabetes(Session::get('year')))
{{$item->UnitKerja->kecamatan}} |
{{$item->nama}} |
{{$item->filterDiabetes(Session::get('year'))->jumlah}} |
{{$item->filterDiabetes(Session::get('year'))->pelayanan}} |
{{$item->filterDiabetes(Session::get('year'))->jumlah > 0 ? number_format($item->filterDiabetes(Session::get('year'))->pelayanan / $item->filterDiabetes(Session::get('year'))->jumlah * 100, 2): 0}}% |
@endif
@endforeach
TOTAL |
|
{{$total_diabetes}} |
{{$total_pelayanan_diabetes}} |
{{$total_diabetes >0? number_format($total_pelayanan_diabetes/$total_diabetes * 100, 2):0 }} |
|
@endrole