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

Diabetes

@if(Auth::user()->downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year')))
@csrf downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year')) && Auth::user()->downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', 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 $GrandTotalIbuHamil = 0; $GrandReaktif = 0; $GrandNonReaktif = 0; $GrandTotal = 0; @endphp @foreach ($unit_kerja as $key => $item) @if(isset($item->user) && $item->user->downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year'))) @elseif(isset($item->user) && !$item->user->downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year'))) @else @endif @if(isset($item->user) && $item->user->hasFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year'))) @else @endif @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @php $GrandTotalIbuHamil = 0; $GrandReaktif = 0; $GrandNonReaktif = 0; $GrandTotal = 0; @endphp @foreach ($desa as $key => $item) @if ($item->filterDeteksiDiniHepatitisBPadaIbuHamil(Session::get('year'), $item->id)) @php $filterResult = $item->filterDeteksiDiniHepatitisBPadaIbuHamil(Session::get('year'), $item->id); $isDisabled = $filterResult->status == 1 || $filterResult->status == 2 ? "disabled" : ""; @endphp @endif @endforeach @endrole
No KecamatanPuskesmasDesaJUMLAH IBU HAMIL JUMLAH IBU HAMIL DIPERIKSA % BUMIL DIPERIKSA % BUMIL REAKTIF Lock data Lock upload File Download Detail Desa
REAKTIF NON REAKTIF TOTAL
{{ $key + 1 }} {{ $item->kecamatan }} {{ $item->nama }} @php $totalIbuHamil = $item->unitKerjaAmbil('filterDesa', Session::get('year'), 'jumlah_ibu_hamil')['total']; $GrandTotalIbuHamil += $totalIbuHamil; @endphp {{ $totalIbuHamil }} {{-- --}} @php $reaktif = $item->unitKerjaAmbilPart2('filterDeteksiDiniHepatitisBPadaIbuHamil', Session::get('year'), 'reaktif')['total']; $GrandReaktif += $reaktif; echo $reaktif; @endphp @php $non_reaktif = $item->unitKerjaAmbilPart2('filterDeteksiDiniHepatitisBPadaIbuHamil', Session::get('year'), 'non_reaktif')['total'];; $GrandNonReaktif += $non_reaktif; echo $non_reaktif; @endphp @php $total = $reaktif + $non_reaktif; $GrandTotal += $total; @endphp {{ $total }} @php $bumilDiperiksa = $totalIbuHamil>0?($total / $totalIbuHamil) * 100:0; @endphp {{ number_format($bumilDiperiksa, 2) . '%' }} {{ $total>0?number_format(($reaktif / $total) * 100, 2) . '%':0 }} general_lock_get2(Session::get('year'), 'filterDeteksiDiniHepatitisBPadaIbuHamil') == 1 ? "checked":""}} {{$item->general_lock_get2(Session::get('year'), 'filterDeteksiDiniHepatitisBPadaIbuHamil') == 2 ? "disabled":""}} class="data-lock" id="{{$item->id}}">user->downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}">- @if($item->user->downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year'))->file_name != "-") Download pdf file @else - @endif -
Jumlah {{ $GrandTotalIbuHamil }} {{ $GrandReaktif }} {{ $GrandNonReaktif }} {{ $GrandTotal }} {{ $GrandTotalIbuHamil>0?number_format($GrandTotal / $GrandTotalIbuHamil, 2) . '%':0 }} {{ $GrandTotal>0?number_format($GrandReaktif / $GrandTotal, 2) . '%':0 }}
{{ $key + 1 }} {{ $item->UnitKerja->kecamatan }} {{ $item->nama }} @php $totalIbuHamil = $item ->filterDeteksiDiniHepatitisBPadaIbuHamil( Session::get('year'), $item->id, ) ->IbuHamil($item->id); $GrandTotalIbuHamil += $totalIbuHamil; @endphp {{ $totalIbuHamil }} @php $GrandReaktif += $item->filterDeteksiDiniHepatitisBPadaIbuHamil( Session::get('year'), $item->id, )->reaktif; @endphp @php $GrandNonReaktif += $item->filterDeteksiDiniHepatitisBPadaIbuHamil( Session::get('year'), $item->id, )->non_reaktif; @endphp @php $total = $item->filterDeteksiDiniHepatitisBPadaIbuHamil( Session::get('year'), $item->id, )->reaktif + $item->filterDeteksiDiniHepatitisBPadaIbuHamil( Session::get('year'), $item->id, )->non_reaktif; $GrandTotal += $total; @endphp {{ $total }} @php $bumilDiperiksa = ($total / $totalIbuHamil) * 100; @endphp {{ number_format($bumilDiperiksa, 2) . '%' }} {{ $total>0?number_format(($item->filterDeteksiDiniHepatitisBPadaIbuHamil(Session::get('year'), $item->id)->reaktif / $total) * 100, 2) . '%':0 }}
Jumlah {{ $GrandTotalIbuHamil }} {{ $GrandReaktif }} {{ $GrandNonReaktif }} {{ $GrandTotal }} {{ $GrandTotalIbuHamil>0?number_format($GrandTotal / $GrandTotalIbuHamil, 2) . '%':0 }} {{ $GrandTotal>0?number_format($GrandReaktif / $GrandTotal, 2) * 100 . '%':0 }}
@push('scripts') @endpush @push('scripts') @endpush @endsection