@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @endforeach @php @endphp @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterKunjungan(Session::get('year'))) @php $kunjungan = $item->filterKunjungan(Session::get('year')); @endphp @endif @endforeach @php $total = Auth::user()->unit_kerja; @endphp @endrole
JUMLAH KUNJUNGAN PASIEN BARU RAWAT JALAN, RAWAT INAP, DAN KUNJUNGAN GANGGUAN JIWA DI SARANA PELAYANAN KESEHATAN
Kabupaten/Kota Kutai Timur
Tahun {{Session::get('year')}}
KecamatanPuskesmasDesaJumlah Kunjungan Kunjungan Gangguan Jiwa
Rawat Jalan Rawat Inap Jumlah
Laki Laki Perempuan Laki Laki + Perempuan Laki Laki Perempuan Laki Laki + Perempuan Laki Laki Perempuan Laki Laki + Perempuan
{{$item->kecamatan}} {{$item->nama}} {{$item->kunjungan_per_desa(Session::get('year'))["jalan_L"]}} {{$item->kunjungan_per_desa(Session::get('year'))["jalan_P"]}} {{$item->kunjungan_per_desa(Session::get('year'))["jalan_P"] + $item->kunjungan_per_desa(Session::get('year'))["jalan_L"]}} {{$item->kunjungan_per_desa(Session::get('year'))["inap_L"]}} {{$item->kunjungan_per_desa(Session::get('year'))["inap_P"]}} {{$item->kunjungan_per_desa(Session::get('year'))["inap_P"] + $item->kunjungan_per_desa(Session::get('year'))["inap_L"]}} {{$item->kunjungan_per_desa(Session::get('year'))["jiwa_L"]}} {{$item->kunjungan_per_desa(Session::get('year'))["jiwa_P"]}} {{$item->kunjungan_per_desa(Session::get('year'))["jiwa_P"] + $item->kunjungan_per_desa(Session::get('year'))["jiwa_L"]}}
TOTAL {{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jalan_L')}} {{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jalan_P')}} {{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jalan_P') + \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jalan_L')}} {{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'inap_L')}} {{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'inap_P')}} {{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'inap_P') + \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'inap_L')}} {{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jiwa_L')}} {{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jiwa_P')}} {{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jiwa_P') + \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jiwa_L')}}
{{$item->UnitKerja->kecamatan}} {{$item->nama}} {{$kunjungan->jalan_L}} {{$kunjungan->jalan_P}} {{$kunjungan->jalan_L + $kunjungan->jalan_P}} {{$kunjungan->inap_L}} {{$kunjungan->inap_P}} {{$kunjungan->inap_L + $kunjungan->inap_P}} {{$kunjungan->jiwa_L}} {{$kunjungan->jiwa_P}} {{$kunjungan->jiwa_L + $kunjungan->jiwa_P}}
TOTAL {{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jalan_L')}} {{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jalan_P')}} {{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jalan_L') + $total->admin_total(Session::get('year'), 'filterKunjungan', 'jalan_P')}} {{$total->admin_total(Session::get('year'), 'filterKunjungan', 'inap_L')}} {{$total->admin_total(Session::get('year'), 'filterKunjungan', 'inap_P')}} {{$total->admin_total(Session::get('year'), 'filterKunjungan', 'inap_L') + $total->admin_total(Session::get('year'), 'filterKunjungan', 'inap_P')}} {{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jiwa_L')}} {{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jiwa_P')}} {{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jiwa_L') + $total->admin_total(Session::get('year'), 'filterKunjungan', 'jiwa_P')}}