@extends('layouts.app') @section('content')
No | Kecamatan | @role('Admin|superadmin')Puskesmas | @endrole @role('Puskesmas|Pihak Wajib Pajak')Desa | @endroleJumlah Kunjungan | Kunjungan Gangguan Jiwa | @role('Admin|superadmin')Lock data | Lock upload | File Download | Detail Desa | @endrole|||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Rawat Jalan | Rawat Inap | Jumlah | ||||||||||||||||
Laki Laki | Perempuan | Laki Laki + Perempuan | Laki Laki | Perempuan | Laki Laki + Perempuan | Laki Laki | Perempuan | Laki Laki + Perempuan | ||||||||||
{{$key + 1}} | {{$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"]}} | kunjungan_lock_get(Session::get('year')) == 1 ? "checked":""}} class="data-lock" id="{{$item->id}}"> | @if(isset($item->user) && $item->user->downloadFile('Kunjungan', Session::get('year')))user->downloadFile('Kunjungan', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}"> | @elseif(isset($item->user) && !$item->user->downloadFile('Kunjungan', Session::get('year')))@else | - | @endif @if(isset($item->user) && $item->user->hasFile('Kunjungan', Session::get('year')))@if($item->user->downloadFile('Kunjungan', Session::get('year'))->file_name != "-") Download pdf file @else - @endif | @else- | @endif|
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')}} | |||||||||
{{$key + 1}} | {{$item->UnitKerja->kecamatan}} | {{$item->nama}} | filterKunjungan(Session::get('year'))->status == 1?"disabled":""}} name="jalan_L" id="{{$item->filterKunjungan(Session::get('year'))->id}}" value="{{$item->filterKunjungan(Session::get('year'))->jalan_L}}" class="form-control data-input" style="border: none"> | filterKunjungan(Session::get('year'))->status == 1?"disabled":""}} name="jalan_P" id="{{$item->filterKunjungan(Session::get('year'))->id}}" value="{{$item->filterKunjungan(Session::get('year'))->jalan_P}}" class="form-control data-input" style="border: none"> | {{$item->filterKunjungan(Session::get('year'))->jalan_P + $item->filterKunjungan(Session::get('year'))->jalan_L}} | filterKunjungan(Session::get('year'))->status == 1?"disabled":""}} name="inap_L" id="{{$item->filterKunjungan(Session::get('year'))->id}}" value="{{$item->filterKunjungan(Session::get('year'))->inap_L}}" class="form-control data-input" style="border: none"> | filterKunjungan(Session::get('year'))->status == 1?"disabled":""}} name="inap_P" id="{{$item->filterKunjungan(Session::get('year'))->id}}" value="{{$item->filterKunjungan(Session::get('year'))->inap_P}}" class="form-control data-input" style="border: none"> | {{$item->filterKunjungan(Session::get('year'))->inap_L + $item->filterKunjungan(Session::get('year'))->inap_P}} | filterKunjungan(Session::get('year'))->status == 1?"disabled":""}} name="jiwa_L" id="{{$item->filterKunjungan(Session::get('year'))->id}}" value="{{$item->filterKunjungan(Session::get('year'))->jiwa_L}}" class="form-control data-input" style="border: none"> | filterKunjungan(Session::get('year'))->status == 1?"disabled":""}} name="jiwa_P" id="{{$item->filterKunjungan(Session::get('year'))->id}}" value="{{$item->filterKunjungan(Session::get('year'))->jiwa_P}}" class="form-control data-input" style="border: none"> | {{$item->filterKunjungan(Session::get('year'))->jiwa_L + $item->filterKunjungan(Session::get('year'))->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')}} |