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

{{$title}}

@if(Auth::user()->downloadFile('Table64', Session::get('year')))
@csrf downloadFile('Table64', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('Table64', Session::get('year')) && Auth::user()->downloadFile('Table64', 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 $GrandL_PB = 0; $GrandP_PB = 0; $GrandLP_PB = 0; $GrandL_MB = 0; $GrandP_MB = 0; $GrandLP_MB = 0; $GrandL_PBMB = 0; $GrandP_PBMB = 0; $GrandLP_PBMB = 0; @endphp @foreach ($unit_kerja as $key => $item) @if(isset($item->user) && $item->user->downloadFile('Table64', Session::get('year'))) @elseif(isset($item->user) && !$item->user->downloadFile('Table64', Session::get('year'))) @else @endif @if(isset($item->user) && $item->user->hasFile('Table64', Session::get('year'))) @else @endif @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @php $GrandL_PB = 0; $GrandP_PB = 0; $GrandLP_PB = 0; $GrandL_MB = 0; $GrandP_MB = 0; $GrandLP_MB = 0; $GrandL_PBMB = 0; $GrandP_PBMB = 0; $GrandLP_PBMB = 0; @endphp @foreach ($desa as $key => $item) @if ($item->filterTable64(Session::get('year'), $item->id)) @php $filterResult = $item->filterTable64(Session::get('year'), $item->id); $isDisabled = $filterResult->status == 1 || $filterResult->status == 2 ? "disabled" : ""; @endphp @endif @endforeach {{-- {{-- --}} @endrole
No KecamatanPuskesmasDesaKASUS BARULock data Lock upload File Download Detail Desa
PAUSI BASILER (PB)/ KUSTA KERING MULTI BASILER (MB)/ KUSTA BASAH PB + MB
L P L + P L P L + P L P L + P
{{ $key + 1 }} {{ $item->kecamatan }} {{ $item->nama }} @php $l_pb = $item->unitKerjaAmbilPart2('filterTable64', Session::get('year'), 'l_pb')['total']; $GrandL_PB += $l_pb; // $GrandJumlahBayi += $jumlah_bayi; // $GrandTotalIbuHamil += $totalIbuHamil; @endphp {{ $l_pb }} @php $p_pb = $item->unitKerjaAmbilPart2('filterTable64', Session::get('year'), 'p_pb')['total']; $GrandP_PB += $p_pb; // $GrandJumlahK24 += $jumlah_k_24; @endphp {{ $p_pb }} {{$p_pb + $l_pb}} @php $GrandLP_PB += ($p_pb + $l_pb); @endphp {{-- {{ number_format(($jumlah_k_24 / $jumlah_bayi) * 100, 2).'%' }} --}} @php $l_mb = $item->unitKerjaAmbilPart2('filterTable64', Session::get('year'), 'l_mb')['total']; $GrandL_MB += ($l_mb); // $GrandJumlahB24 += $jumlah_b_24; @endphp {{ $l_mb }} @php $p_mb = $item->unitKerjaAmbilPart2('filterTable64', Session::get('year'), 'p_mb')['total']; $GrandP_MB += $p_mb; // $GrandJumlahB24 += $jumlah_b_24; @endphp {{ $p_mb }} {{$l_mb + $p_mb}} @php $GrandLP_MB += ($l_mb + $p_mb); @endphp {{$l_pb + $l_mb}} @php $GrandL_PBMB += ($l_pb + $l_mb); @endphp {{$p_pb + $p_mb}} @php $GrandP_PBMB += ($p_pb + $p_mb); @endphp {{$l_pb + $l_mb + $p_pb + $p_mb}} @php $GrandLP_PBMB += ($l_pb + $l_mb + $p_pb + $p_mb); @endphp general_lock_get2(Session::get('year'), 'filterTable64') == 1 ? "checked":""}} {{$item->general_lock_get2(Session::get('year'), 'filterTable64') == 2 ? "disabled":""}} class="data-lock" id="{{$item->id}}">user->downloadFile('Table64', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}">- @if($item->user->downloadFile('Table64', Session::get('year'))->file_name != "-") Download pdf file @else - @endif -
Jumlah {{$GrandL_PB}} {{$GrandP_PB}} {{$GrandLP_PB}} {{$GrandL_MB}} {{$GrandP_MB}} {{$GrandLP_MB}} {{$GrandL_PBMB}} {{$GrandP_PBMB}} {{$GrandLP_PBMB}}
PROPORSI JENIS KELAMIN @php try { echo number_format(($GrandL_PB / $GrandLP_PB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp @php try { echo number_format(($GrandP_PB / $GrandLP_PB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp @php try { echo number_format(($GrandL_MB / $GrandLP_MB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp @php try { echo number_format(($GrandP_MB / $GrandLP_MB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp @php try { echo number_format(($GrandL_PBMB / $GrandLP_PBMB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp @php try { echo number_format(($GrandP_PBMB / $GrandLP_PBMB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp
ANGKA PENEMUAN KASUS BARU (NCDR/NEW CASE DETECTION RATE) PER 100.000 PENDUDUK {{($GrandL_PBMB / $jumlah_penduduk_laki_laki) * 100000}} {{($GrandP_PBMB / $jumlah_penduduk_perempuan) * 100000}} {{($GrandLP_PBMB / ($jumlah_penduduk_perempuan + $jumlah_penduduk_laki_laki)) * 100000}}
{{ $key + 1 }} {{ $item->UnitKerja->kecamatan }} {{ $item->nama }} @php $l_pb = $item ->filterTable64( Session::get('year'), $item->id, ) ->l_pb; $GrandL_PB += $l_pb; // $GrandJumlahBayi += $jumlah_bayi; // $GrandTotalIbuHamil += $totalIbuHamil; @endphp {{-- {{ $totalIbuHamil }} --}} @php $p_pb = $item->filterTable64( Session::get('year'), $item->id, )->p_pb; $GrandP_PB += $p_pb; // $GrandJumlahK24 += $jumlah_k_24; @endphp {{$p_pb + $l_pb}} @php $GrandLP_PB += ($p_pb + $l_pb); @endphp {{-- {{ number_format(($jumlah_k_24 / $jumlah_bayi) * 100, 2).'%' }} --}} @php $l_mb = $item->filterTable64( Session::get('year'), $item->id, )->l_mb; $GrandL_MB += ($l_mb); // $GrandJumlahB24 += $jumlah_b_24; @endphp @php $p_mb = $item->filterTable64( Session::get('year'), $item->id, )->p_mb; $GrandP_MB += $p_mb; // $GrandJumlahB24 += $jumlah_b_24; @endphp {{$l_mb + $p_mb}} @php $GrandLP_MB += ($l_mb + $p_mb); @endphp {{$l_pb + $l_mb}} @php $GrandL_PBMB += ($l_pb + $l_mb); @endphp {{$p_pb + $p_mb}} @php $GrandP_PBMB += ($p_pb + $p_mb); @endphp {{$l_pb + $l_mb + $p_pb + $p_mb}} @php $GrandLP_PBMB += ($l_pb + $l_mb + $p_pb + $p_mb); @endphp
Jumlah {{$GrandL_PB}} {{$GrandP_PB}} {{$GrandLP_PB}} {{$GrandL_MB}} {{$GrandP_MB}} {{$GrandLP_MB}} {{$GrandL_PBMB}} {{$GrandP_PBMB}} {{$GrandLP_PBMB}}
PROPORSI JENIS KELAMIN @php try { echo number_format(($GrandL_PB / $GrandLP_PB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp @php try { echo number_format(($GrandP_PB / $GrandLP_PB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp @php try { echo number_format(($GrandL_MB / $GrandLP_MB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp @php try { echo number_format(($GrandP_MB / $GrandLP_MB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp @php try { echo number_format(($GrandL_PBMB / $GrandLP_PBMB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp @php try { echo number_format(($GrandP_PBMB / $GrandLP_PBMB) * 100, 2)."%"; } catch (DivisionByZeroError $e) { echo "0"; } @endphp
ANGKA PENEMUAN KASUS BARU (NCDR/NEW CASE DETECTION RATE) PER 100.000 PENDUDUK {{($GrandL_PBMB / $jumlah_penduduk_laki_laki) * 100000}} {{($GrandP_PBMB / $jumlah_penduduk_perempuan) * 100000}} {{($GrandLP_PBMB / ($jumlah_penduduk_perempuan + $jumlah_penduduk_laki_laki)) * 100000}}
Jumlah {{ $GrandJumlahBayi }} {{ $GrandJumlahK24 }} {{ number_format(($GrandJumlahK24 / $GrandJumlahBayi) * 100, 2).'%' }} {{ $GrandJumlahB24 }} {{ number_format(($GrandJumlahB24 / $GrandJumlahBayi) * 100, 2).'%' }} {{$GrandJumlahB24 + $GrandJumlahK24 }} {{ number_format((($GrandJumlahB24 + $GrandJumlahK24) / $GrandJumlahBayi) * 100, 2).'%' }} {{ number_format($GrandReaktif / $GrandTotal, 2) . '%' }}
@push('scripts') @endpush @push('scripts') @endpush @endsection