@role('Admin|superadmin')
@foreach ($unit_kerja as $key => $item)
{{$item->kecamatan}} |
{{$item->nama}} |
{{$item->penyebab_kematian_ibu_per_desa(Session::get('year'))["perdarahan"]}} |
{{$item->penyebab_kematian_ibu_per_desa(Session::get('year'))["gangguan_hipertensi"]}} |
{{$item->penyebab_kematian_ibu_per_desa(Session::get('year'))["infeksi"]}} |
{{$item->penyebab_kematian_ibu_per_desa(Session::get('year'))["kelainan_jantung"]}} |
{{$item->penyebab_kematian_ibu_per_desa(Session::get('year'))["gangguan_autoimun"]}} |
{{$item->penyebab_kematian_ibu_per_desa(Session::get('year'))["gangguan_cerebro"]}} |
{{$item->penyebab_kematian_ibu_per_desa(Session::get('year'))["covid_19"]}} |
{{$item->penyebab_kematian_ibu_per_desa(Session::get('year'))["abortus"]}} |
{{$item->penyebab_kematian_ibu_per_desa(Session::get('year'))["lain_lain"]}} |
{{$item->penyebab_kematian_ibu_per_desa(Session::get('year'))["lain_lain"]
+ $item->penyebab_kematian_ibu_per_desa(Session::get('year'))["abortus"]
+ $item->penyebab_kematian_ibu_per_desa(Session::get('year'))["covid_19"]
+ $item->penyebab_kematian_ibu_per_desa(Session::get('year'))["gangguan_cerebro"]
+ $item->penyebab_kematian_ibu_per_desa(Session::get('year'))["gangguan_autoimun"]
+ $item->penyebab_kematian_ibu_per_desa(Session::get('year'))["kelainan_jantung"]
+ $item->penyebab_kematian_ibu_per_desa(Session::get('year'))["infeksi"]
+ $item->penyebab_kematian_ibu_per_desa(Session::get('year'))["gangguan_hipertensi"]
+ $item->penyebab_kematian_ibu_per_desa(Session::get('year'))["perdarahan"]
}} |
@endforeach
TOTAL |
|
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'perdarahan')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_hipertensi')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'infeksi')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'kelainan_jantung')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_autoimun')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_cerebro')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'covid_19')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'abortus')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'lain_lain')}} |
{{
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'lain_lain') +
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'abortus') +
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'covid_19') +
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_cerebro') +
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_autoimun') +
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'kelainan_jantung') +
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'infeksi') +
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_hipertensi') +
\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterPenyebabKematianIbu', 'perdarahan')
}} |
@endrole
@role('Puskesmas|Pihak Wajib Pajak')
@foreach ($desa as $key => $item)
@if($item->filterPenyebabKematianIbu(Session::get('year')))
{{$item->UnitKerja->nama}} |
{{$item->nama}} |
{{ $item->filterPenyebabKematianIbu(Session::get('year'))->perdarahan }} |
{{ $item->filterPenyebabKematianIbu(Session::get('year'))->gangguan_hipertensi }} |
{{ $item->filterPenyebabKematianIbu(Session::get('year'))->infeksi }} |
{{ $item->filterPenyebabKematianIbu(Session::get('year'))->kelainan_jantung }} |
{{ $item->filterPenyebabKematianIbu(Session::get('year'))->gangguan_autoimun }} |
{{ $item->filterPenyebabKematianIbu(Session::get('year'))->gangguan_cerebro }} |
{{ $item->filterPenyebabKematianIbu(Session::get('year'))->covid_19 }} |
{{ $item->filterPenyebabKematianIbu(Session::get('year'))->abortus }} |
{{ $item->filterPenyebabKematianIbu(Session::get('year'))->lain_lain }} |
{{
$item->filterPenyebabKematianIbu(Session::get('year'))->perdarahan
+ $item->filterPenyebabKematianIbu(Session::get('year'))->gangguan_hipertensi
+ $item->filterPenyebabKematianIbu(Session::get('year'))->infeksi
+ $item->filterPenyebabKematianIbu(Session::get('year'))->kelainan_jantung
+ $item->filterPenyebabKematianIbu(Session::get('year'))->gangguan_autoimun
+ $item->filterPenyebabKematianIbu(Session::get('year'))->gangguan_cerebro
+ $item->filterPenyebabKematianIbu(Session::get('year'))->covid_19
+ $item->filterPenyebabKematianIbu(Session::get('year'))->abortus
+ $item->filterPenyebabKematianIbu(Session::get('year'))->lain_lain
}} |
@endif
@endforeach
@php
$total = Auth::user()->unit_kerja;
@endphp
TOTAL |
|
{{$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'perdarahan')}} |
{{$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_hipertensi')}} |
{{$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'infeksi')}} |
{{$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'kelainan_jantung')}} |
{{$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_autoimun')}} |
{{$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_cerebro')}} |
{{$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'covid_19')}} |
{{$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'abortus')}} |
{{$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'lain_lain')}} |
{{
$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'lain_lain') +
$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'abortus') +
$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'covid_19') +
$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_cerebro') +
$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_autoimun') +
$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'kelainan_jantung') +
$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'infeksi') +
$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'gangguan_hipertensi') +
$total->admin_total(Session::get('year'), 'filterPenyebabKematianIbu', 'perdarahan')
}} |
@endrole