@extends('layouts.app') @section('content')
@include('layouts.includes.sticky-table')

Kunjungan

@if(Auth::user()->downloadFile('Kunjungan', Session::get('year')))
@csrf downloadFile('Kunjungan', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('Kunjungan', Session::get('year'))) Download pdf file @endif Report Add
@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @role('Admin|superadmin') @endrole @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @if(isset($item->user) && $item->user->downloadFile('Kunjungan', Session::get('year'))) @elseif(isset($item->user) && !$item->user->downloadFile('Kunjungan', Session::get('year'))) @else @endif @if(isset($item->user) && $item->user->hasFile('Kunjungan', Session::get('year'))) @else @endif @endforeach @php @endphp @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterKunjungan(Session::get('year'))) @endif @endforeach @php $total = Auth::user()->unit_kerja; @endphp @endrole
No KecamatanPuskesmasDesaJumlah Kunjungan Kunjungan Gangguan JiwaLock data Lock upload File Download Detail Desa
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}}">user->downloadFile('Kunjungan', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}">- @if($item->user->downloadFile('Kunjungan', Session::get('year'))->file_name != "-") Download pdf file @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')}}
@push('scripts') @endpush @push('scripts') @endpush @endsection