@role('Admin|superadmin')
@foreach ($unit_kerja as $key => $item)
{{$item->kecamatan}} |
{{$item->nama}} |
{{$item->kelahiran_per_desa(Session::get('year'))["lahir_hidup_L"] + $item->kelahiran_per_desa(Session::get('year'))["lahir_hidup_P"]}} |
{{$item->kematian_ibu_per_desa(Session::get('year'))["jumlah_kematian_ibu_hamil"]}} |
{{$item->kematian_ibu_per_desa(Session::get('year'))["jumlah_kematian_ibu_bersalin"]}} |
{{$item->kematian_ibu_per_desa(Session::get('year'))["jumlah_kematian_ibu_nifas"]}} |
{{$item->kematian_ibu_per_desa(Session::get('year'))["jumlah_kematian_ibu_nifas"] + $item->kematian_ibu_per_desa(Session::get('year'))["jumlah_kematian_ibu_bersalin"] + $item->kematian_ibu_per_desa(Session::get('year'))["jumlah_kematian_ibu_hamil"]}} |
@endforeach
TOTAL |
|
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKelahiran', 'lahir_hidup_L') + \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKelahiran', 'lahir_hidup_P')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_hamil')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_bersalin')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_nifas')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_nifas') +
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_hamil') +
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_bersalin')
}} |
@endrole
@role('Puskesmas|Pihak Wajib Pajak')
@foreach ($desa as $key => $item)
@if($item->filterKematianIbu(Session::get('year')))
{{$item->UnitKerja->kecamatan}} |
{{$item->nama}} |
{{ $item->filterKelahiran(Session::get('year'))->lahir_hidup_L + $item->filterKelahiran(Session::get('year'))->lahir_hidup_P }} |
{{ $item->filterKematianIbu(Session::get('year'))->jumlah_kematian_ibu_hamil }} |
{{ $item->filterKematianIbu(Session::get('year'))->jumlah_kematian_ibu_bersalin }} |
{{ $item->filterKematianIbu(Session::get('year'))->jumlah_kematian_ibu_nifas }} |
{{ $item->filterKematianIbu(Session::get('year'))->jumlah_kematian_ibu_hamil +
$item->filterKematianIbu(Session::get('year'))->jumlah_kematian_ibu_bersalin +
$item->filterKematianIbu(Session::get('year'))->jumlah_kematian_ibu_nifas }}
|
@endif
@endforeach
@php
$total = Auth::user()->unit_kerja;
@endphp
TOTAL |
|
{{$total->admin_total(Session::get('year'), 'filterKelahiran', 'lahir_hidup_L') + $total->admin_total(Session::get('year'), 'filterKelahiran', 'lahir_hidup_P')}} |
{{$total->admin_total(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_hamil')}} |
{{$total->admin_total(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_bersalin')}} |
{{$total->admin_total(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_nifas')}} |
{{$total->admin_total(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_nifas') + $total->admin_total(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_bersalin') + $total->admin_total(Session::get('year'), 'filterKematianIbu', 'jumlah_kematian_ibu_hamil')}} |
@endrole