@role('Admin|superadmin')
@foreach ($unit_kerja as $key => $item)
{{$item->kecamatan}} |
{{$item->nama}} |
{{$item->tuberkulosis_per_desa(Session::get('year'))["terduga_kasus"]}} |
{{$item->tuberkulosis_per_desa(Session::get('year'))["kasus_L"]}} |
{{$item->tuberkulosis_per_desa(Session::get('year'))["kasus_LP"] > 0?number_format($item->tuberkulosis_per_desa(Session::get('year'))["kasus_L"]/$item->tuberkulosis_per_desa(Session::get('year'))["kasus_LP"]*100, 2):0}}% |
{{$item->tuberkulosis_per_desa(Session::get('year'))["kasus_P"]}} |
{{$item->tuberkulosis_per_desa(Session::get('year'))["kasus_LP"] > 0?number_format($item->tuberkulosis_per_desa(Session::get('year'))["kasus_P"]/$item->tuberkulosis_per_desa(Session::get('year'))["kasus_LP"]*100, 2):0}}% |
{{$item->tuberkulosis_per_desa(Session::get('year'))["kasus_LP"]}} |
{{$item->tuberkulosis_per_desa(Session::get('year'))["kasus_anak"]}} |
@endforeach
TOTAL |
|
{{$total_terduga_kasus}} |
{{$total_kasus_L}} |
{{$total_kasus_LP > 0?number_format($total_kasus_L/$total_kasus_LP*100, 2):0}}% |
{{$total_kasus_P}} |
{{$total_kasus_LP > 0?number_format($total_kasus_P/$total_kasus_LP*100, 2):0}}% |
{{$total_kasus_LP}} |
{{$total_kasus_anak}} |
|
@endrole
@role('Puskesmas|Pihak Wajib Pajak')
@foreach ($desa as $key => $item)
@if($item->filterTuberkulosis(Session::get('year')))
{{$item->UnitKerja->nama}} |
{{$item->nama}} |
{{$item->filterTuberkulosis(Session::get('year'))->terduga_kasus}} |
{{$item->filterTuberkulosis(Session::get('year'))->kasus_L}} |
{{$item->filterTuberkulosis(Session::get('year'))->kasus_LP > 0 ? number_format($item->filterTuberkulosis(Session::get('year'))->kasus_L / $item->filterTuberkulosis(Session::get('year'))->kasus_LP * 100, 2) : 0}}%
|
{{$item->filterTuberkulosis(Session::get('year'))->kasus_P}} |
{{$item->filterTuberkulosis(Session::get('year'))->kasus_LP > 0 ? number_format($item->filterTuberkulosis(Session::get('year'))->kasus_P / $item->filterTuberkulosis(Session::get('year'))->kasus_LP * 100, 2) : 0}}%
|
{{$item->filterTuberkulosis(Session::get('year'))->kasus_LP}} |
{{$item->filterTuberkulosis(Session::get('year'))->kasus_anak}} |
@endif
@endforeach
TOTAL |
|
{{$total_terduga_kasus}} |
{{$total_kasus_L}} |
{{$total_kasus_LP > 0?number_format($total_kasus_L/$total_kasus_LP*100, 2):0}}% |
{{$total_kasus_P}} |
{{$total_kasus_LP > 0?number_format($total_kasus_P/$total_kasus_LP*100, 2):0}}% |
{{$total_kasus_LP}} |
{{$total_kasus_anak}} |
|
@endrole