@role('Admin|superadmin')
@foreach ($unit_kerja as $key => $item)
{{$item->kecamatan}} |
{{$item->nama}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"]}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["td1"]}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] > 0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["td1"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] * 100, 2):0}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["td2"]}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] > 0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["td2"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] * 100, 2):0}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["td3"]}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] > 0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["td3"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] * 100, 2):0}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["td4"]}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] > 0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["td4"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] * 100, 2):0}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["td5"]}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] > 0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["td5"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] * 100, 2):0}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["td2_plus"]}} |
{{$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] > 0?number_format($item->ibu_hamil_per_desa(Session::get('year'))["td2_plus"]/$item->ibu_hamil_per_desa(Session::get('year'))["jumlah_ibu_hamil"] * 100, 2):0}} |
@endforeach
TOTAL |
|
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td1')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format((\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td1') / \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100, 2):0
}}% |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td2')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format((\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td2') / \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100, 2):0
}}% |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td3')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format((\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td3') / \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100, 2):0
}}% |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td4')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format((\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td4') / \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100, 2):0
}}% |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td5')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format((\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td5') / \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100, 2):0
}}% |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td2_plus')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format((\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'td2_plus') / \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100, 2):0
}}% |
@endrole
@role('Puskesmas|Pihak Wajib Pajak')
@foreach ($desa as $key => $item)
@if($item->filterDesa(Session::get('year')))
{{$item->UnitKerja->kecamatan}} |
{{$item->nama}} |
{{$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil}} |
|
{{$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil > 0 ? number_format(($item->filterDesa(Session::get('year'))->td1/($item->filterDesa(Session::get('year'))->jumlah_ibu_hamil))*100, '2'):0}}% |
|
{{$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil > 0 ? number_format(($item->filterDesa(Session::get('year'))->td2/$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil) * 100, '2'):0}}% |
|
{{$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil > 0 ? number_format(($item->filterDesa(Session::get('year'))->td3/$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil) * 100, '2'):0}}% |
|
{{$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil > 0 ? number_format(($item->filterDesa(Session::get('year'))->td4/$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil) * 100, '2'):0}}% |
|
{{$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil > 0 ? number_format(($item->filterDesa(Session::get('year'))->td5/$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil) * 100, '2'):0}}% |
|
{{$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil > 0 ? number_format(($item->filterDesa(Session::get('year'))->td2_plus/$item->filterDesa(Session::get('year'))->jumlah_ibu_hamil) * 10, '2'):0}}% |
@endif
@endforeach
@php
$total = Auth::user()->unit_kerja;
@endphp
TOTAL |
|
{{$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')}} |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'td1')}} |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format(($total->admin_total(Session::get('year'), 'filterDesa', 'td1')/$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100,2):0
}}% |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'td2')}} |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format(($total->admin_total(Session::get('year'), 'filterDesa', 'td2')/$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100,2):0
}}% |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'td3')}} |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format(($total->admin_total(Session::get('year'), 'filterDesa', 'td3')/$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100,2):0
}}% |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'td4')}} |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format(($total->admin_total(Session::get('year'), 'filterDesa', 'td4')/$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100,2):0
}}% |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'td5')}} |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format(($total->admin_total(Session::get('year'), 'filterDesa', 'td5')/$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100,2):0
}}% |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'td2_plus')}} |
{{$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil') > 0?
number_format(($total->admin_total(Session::get('year'), 'filterDesa', 'td2_plus')/$total->admin_total(Session::get('year'), 'filterDesa', 'jumlah_ibu_hamil')) * 100,2):0
}}% |
@endrole