@extends('layouts.app') @section('content')
No | Kecamatan | @role('Admin|superadmin')Puskesmas | @endrole @role('Puskesmas|Pihak Wajib Pajak')Desa | @endroleJUMLAH IBU HAMIL | JUMLAH IBU HAMIL DIPERIKSA | % BUMIL DIPERIKSA | % BUMIL REAKTIF | @role('Admin|superadmin')Lock data | Lock upload | File Download | Detail Desa | @endrole||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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}}"> | @if(isset($item->user) && $item->user->downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year')))user->downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}"> | @elseif(isset($item->user) && !$item->user->downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year')))@else | - | @endif @if(isset($item->user) && $item->user->hasFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year')))@if($item->user->downloadFile('DeteksiDiniHepatitisBPadaIbuHamil', Session::get('year'))->file_name != "-") Download pdf file @else - @endif | @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 }} |