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

{{$title}}

@if(Auth::user()->downloadFile('Table66', Session::get('year')))
@csrf downloadFile('Table66', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('Table66', Session::get('year')) && Auth::user()->downloadFile('Table66', Session::get('year'))->file_name != "-") Download pdf file @endif Report Add
@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @role('Admin|superadmin') @endrole @role('Admin|superadmin') @php $GrandPausi_anak = 0; $GrandPausi_dewasa = 0; $GrandPausi_total = 0; $GrandMulti_anak = 0; $GrandMulti_dewasa = 0; $GrandMulti_total = 0; $GrandJumlah_anak = 0; $GrandJumlah_dewasa = 0; $GrandJumlah_total = 0; @endphp @foreach ($unit_kerja as $key => $item) @if(isset($item->user) && $item->user->downloadFile('Table66', Session::get('year'))) @elseif(isset($item->user) && !$item->user->downloadFile('Table66', Session::get('year'))) @else @endif @if(isset($item->user) && $item->user->hasFile('Table66', Session::get('year'))) @else @endif @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @php $GrandPausi_anak = 0; $GrandPausi_dewasa = 0; $GrandPausi_total = 0; $GrandMulti_anak = 0; $GrandMulti_dewasa = 0; $GrandMulti_total = 0; $GrandJumlah_anak = 0; $GrandJumlah_dewasa = 0; $GrandJumlah_total = 0; @endphp @foreach ($desa as $key => $item) @if ($item->filterTable66(Session::get('year'), $item->id)) @php $filterResult = $item->filterTable66(Session::get('year'), $item->id); $isDisabled = $filterResult->status == 1 || $filterResult->status == 2 ? "disabled" : ""; @endphp @endif @endforeach @endrole
No KecamatanPuskesmasDesaKASUS TERDAFTARLock data Lock upload File Download Detail Desa
PAUSI BASILER / KUSTA KERING MULTI BASILER / KUSTA BASAH JUMLAH
ANAK DEWASA TOTAL ANAK DEWASA TOTAL ANAK DEWASA TOTAL
{{ $key + 1 }} {{ $item->kecamatan }} {{ $item->nama }} @php $pausi_anak = $item->unitKerjaAmbilPart2('filterTable66', Session::get('year'), 'pausi_anak')['total']; $GrandPausi_anak += $pausi_anak; // $GrandJumlahBayi += $jumlah_bayi; // $GrandTotalIbuHamil += $totalIbuHamil; echo $pausi_anak; @endphp @php $pausi_dewasa = $item->unitKerjaAmbilPart2('filterTable66', Session::get('year'), 'pausi_dewasa')['total']; $GrandPausi_dewasa += $pausi_dewasa; echo $pausi_dewasa; @endphp @php $GrandPausi_total += $pausi_anak + $pausi_dewasa; @endphp {{$pausi_anak + $pausi_dewasa}} @php $multi_anak = $item->unitKerjaAmbilPart2('filterTable66', Session::get('year'), 'multi_anak')['total']; $GrandMulti_anak += $multi_anak; echo $multi_anak; // $GrandJumlahBayi += $jumlah_bayi; // $GrandTotalIbuHamil += $totalIbuHamil; @endphp @php $multi_dewasa = $item->unitKerjaAmbilPart2('filterTable66', Session::get('year'), 'multi_dewasa')['total']; $GrandMulti_dewasa += $multi_dewasa; echo $multi_dewasa; @endphp @php $GrandMulti_total += $multi_anak + $multi_dewasa; @endphp {{$multi_anak + $multi_dewasa}} @php $jumlah_anak = $multi_anak + $pausi_anak; echo $jumlah_anak; $GrandJumlah_anak += $jumlah_anak; @endphp @php $jumlah_dewasa = $multi_dewasa + $pausi_dewasa; echo $jumlah_dewasa; $GrandJumlah_dewasa += $jumlah_dewasa; @endphp @php $jumlah_total = $jumlah_anak + $jumlah_dewasa; echo $jumlah_total; $GrandJumlah_total += $jumlah_total; @endphp general_lock_get2(Session::get('year'), 'filterTable66') == 1 ? "checked":""}} {{$item->general_lock_get2(Session::get('year'), 'filterTable66') == 2 ? "disabled":""}} class="data-lock" id="{{$item->id}}">user->downloadFile('Table66', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}">- @if($item->user->downloadFile('Table66', Session::get('year'))->file_name != "-") Download pdf file @else - @endif -
JUMLAH {{ $GrandPausi_anak}} {{ $GrandPausi_dewasa}} {{ $GrandPausi_total}} {{ $GrandMulti_anak}} {{ $GrandMulti_dewasa}} {{ $GrandMulti_total}} {{ $GrandJumlah_anak}} {{ $GrandJumlah_dewasa}} {{ $GrandJumlah_total}}
ANGKA PREVALENSI PER 10.000 PENDUDUK {{($GrandJumlah_total / ($jumlah_penduduk_perempuan + $jumlah_penduduk_laki_laki)) * 10000}}
{{ $key + 1 }} {{ $item->UnitKerja->kecamatan }} {{ $item->nama }} @php $pausi_anak = $item ->filterTable66( Session::get('year'), $item->id, ) ->pausi_anak; $GrandPausi_anak += $pausi_anak; // $GrandJumlahBayi += $jumlah_bayi; // $GrandTotalIbuHamil += $totalIbuHamil; @endphp {{-- {{ $totalIbuHamil }} --}} @php $pausi_dewasa = $item->filterTable66( Session::get('year'), $item->id, )->pausi_dewasa; $GrandPausi_dewasa += $pausi_dewasa; @endphp @php $GrandPausi_total += $pausi_anak + $pausi_dewasa; @endphp {{$pausi_anak + $pausi_dewasa}} @php $multi_anak = $item ->filterTable66( Session::get('year'), $item->id, ) ->multi_anak; $GrandMulti_anak += $multi_anak; // $GrandJumlahBayi += $jumlah_bayi; // $GrandTotalIbuHamil += $totalIbuHamil; @endphp {{-- {{ $totalIbuHamil }} --}} @php $multi_dewasa = $item->filterTable66( Session::get('year'), $item->id, )->multi_dewasa; $GrandMulti_dewasa += $multi_dewasa; @endphp @php $GrandMulti_total += $multi_anak + $multi_dewasa; @endphp {{$multi_anak + $multi_dewasa}} @php $jumlah_anak = $multi_anak + $pausi_anak; echo $jumlah_anak; $GrandJumlah_anak += $jumlah_anak; @endphp @php $jumlah_dewasa = $multi_dewasa + $pausi_dewasa; echo $jumlah_dewasa; $GrandJumlah_dewasa += $jumlah_dewasa; @endphp @php $jumlah_total = $jumlah_anak + $jumlah_dewasa; echo $jumlah_total; $GrandJumlah_total += $jumlah_total; @endphp
JUMLAH {{ $GrandPausi_anak}} {{ $GrandPausi_dewasa}} {{ $GrandPausi_total}} {{ $GrandMulti_anak}} {{ $GrandMulti_dewasa}} {{ $GrandMulti_total}} {{ $GrandJumlah_anak}} {{ $GrandJumlah_dewasa}} {{ $GrandJumlah_total}}
ANGKA PREVALENSI PER 10.000 PENDUDUK {{($GrandJumlah_total / ($jumlah_penduduk_perempuan + $jumlah_penduduk_laki_laki)) * 10000}}
@push('scripts') @endpush @push('scripts') @endpush @endsection