@extends('layouts.app') @section('content')
DataTables has most features enabled by
default, so all you need to do to use it with your own tables is to call
the construction function: $().DataTable();
.
No | Kecamatan | @role('Admin|superadmin')Puskesmas | @endrole @role('Puskesmas|Pihak Wajib Pajak')Desa | @endroleMALARIA | @role('Admin|superadmin')Lock data | Lock upload | File Download | Detail Desa | @endrole|||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SUSPEK | KONFIRMASI LABORATORIUM | % KONFIRMASI LABORATORIUM | POSITIF | PENGOBATAN STANDAR | % PENGOBATAN STANDAR | MENINGGAL | CFR | ||||||||||||||||||
MIKROSKOPIS | RAPID DIAGNOSTIC TEST (RDT) | TOTAL | L | P | L + P | L | P | L + P | L | P | L + P | ||||||||||||||
{{ $key + 1 }} | {{ $item->kecamatan }} | {{ $item->nama }} | @php $suspek = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'suspek')['total']; $Grandsuspek += $suspek; echo $suspek; @endphp | @php $mikroskopis = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'mikroskopis')['total']; $Grandmikroskopis += $mikroskopis; echo $mikroskopis; @endphp | @php $rapid = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'rapid')['total']; $Grandrapid += $rapid; echo $rapid; @endphp | @php $total = $mikroskopis + $rapid; $Grandtotal += $total; @endphp {{ $total }} | {{$suspek>0?number_format(($total / $suspek) * 100, 2) . '%':0}} | @php $l_positif = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'l_positif')['total']; $Grandl_positif += $l_positif; echo $l_positif; @endphp | @php $p_positif = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'p_positif')['total']; $Grandp_positif += $p_positif; echo $p_positif; @endphp | @php $lp_positif = $l_positif + $p_positif; $Grandlp_positif += $lp_positif; echo $lp_positif; @endphp | @php $pengobatan_standar = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'pengobatan_standar')['total']; $Grandpengobatan_standar += $pengobatan_standar; echo $pengobatan_standar; @endphp | {{$lp_positif>0?number_format(($pengobatan_standar / $lp_positif) * 100, 2) . '%':0}} | @php $l_meninggal = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'l_meninggal')['total']; $Grandl_meninggal += $l_meninggal; echo $l_meninggal; @endphp | @php $p_meninggal = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'p_meninggal')['total']; $Grandp_meninggal += $p_meninggal; echo $p_meninggal; @endphp | @php $lp_meninggal = $l_meninggal + $p_meninggal; $Grandlp_meninggal += $lp_meninggal; echo $lp_meninggal; @endphp | {{$l_positif>0?number_format(($l_meninggal / $l_positif) * 100, 2) . '%':0}} | {{$p_positif>0?number_format(($p_meninggal / $p_positif) * 100, 2) . '%':0}} | {{$lp_positif>0?number_format(($lp_meninggal / $lp_positif) * 100, 2) . '%':0}} | general_lock_get2(Session::get('year'), 'filterTable73') == 1 ? "checked":""}} {{$item->general_lock_get2(Session::get('year'), 'filterTable73') == 2 ? "disabled":""}} class="data-lock" id="{{$item->id}}"> | @if(isset($item->user) && $item->user->downloadFile('Table73', Session::get('year')))user->downloadFile('Table73', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}"> | @elseif(isset($item->user) && !$item->user->downloadFile('Table73', Session::get('year')))@else | - | @endif @if(isset($item->user) && $item->user->hasFile('Table73', Session::get('year')))@if($item->user->downloadFile('Table73', Session::get('year'))->file_name != "-") Download pdf file @else - @endif | @else- | @endif|
{{ $key + 1 }} | {{ $item->UnitKerja->kecamatan }} | {{ $item->nama }} | @php $suspek = $item ->filterTable73( Session::get('year'), $item->id, ) ->suspek; $Grandsuspek += $suspek; @endphp | @php $mikroskopis = $item ->filterTable73( Session::get('year'), $item->id, ) ->mikroskopis; $Grandmikroskopis += $mikroskopis; @endphp | @php $rapid = $item ->filterTable73( Session::get('year'), $item->id, ) ->rapid; $Grandrapid += $rapid; @endphp | @php $total = $mikroskopis + $rapid; $Grandtotal += $total; @endphp {{ $total }} | {{$suspek>0?number_format(($total / $suspek) * 100, 2) . '%':0}} | @php $l_positif = $item ->filterTable73( Session::get('year'), $item->id, ) ->l_positif; $Grandl_positif += $l_positif; @endphp | @php $p_positif = $item ->filterTable73( Session::get('year'), $item->id, ) ->p_positif; $Grandp_positif += $p_positif; @endphp | @php $lp_positif = $l_positif + $p_positif; $Grandlp_positif += $lp_positif; echo $lp_positif; @endphp | @php $pengobatan_standar = $item ->filterTable73( Session::get('year'), $item->id, ) ->pengobatan_standar; $Grandpengobatan_standar += $pengobatan_standar; @endphp | {{$lp_positif>0?number_format(($pengobatan_standar / $lp_positif) * 100, 2) . '%':0}} | @php $l_meninggal = $item ->filterTable73( Session::get('year'), $item->id, ) ->l_meninggal; $Grandl_meninggal += $l_meninggal; @endphp | @php $p_meninggal = $item ->filterTable73( Session::get('year'), $item->id, ) ->p_meninggal; $Grandp_meninggal += $p_meninggal; @endphp | @php $lp_meninggal = $l_meninggal + $p_meninggal; $Grandlp_meninggal += $lp_meninggal; echo $lp_meninggal; @endphp | {{$l_positif>0?number_format(($l_meninggal / $l_positif) * 100, 2) . '%':0}} | {{$p_positif>0?number_format(($p_meninggal / $p_positif) * 100, 2) . '%':0}} | {{$lp_positif>0?number_format(($lp_meninggal / $lp_positif) * 100, 2) . '%':0}} | |||||||
JUMLAH (KAB/KOTA) | {{$Grandsuspek }} | {{$Grandmikroskopis }} | {{$Grandrapid }} | {{$Grandtotal }} | {{$Grandsuspek>0?number_format(($Grandtotal / $Grandsuspek) * 100, 2) . '%':0}} | {{$Grandl_positif }} | {{$Grandp_positif }} | {{$Grandlp_positif }} | {{$Grandpengobatan_standar }} | {{$Grandlp_positif>0?number_format(($Grandpengobatan_standar / $Grandlp_positif) * 100, 2) . '%':0}} | {{$Grandl_meninggal }} | {{$Grandp_meninggal }} | {{$Grandlp_meninggal }} | {{$Grandl_positif>0?number_format(($Grandl_meninggal / $Grandl_positif) * 100, 2) . '%':0}} | {{$Grandp_positif>0?number_format(($Grandp_meninggal / $Grandp_positif) * 100, 2) . '%':0}} | {{$Grandlp_positif>0?number_format(($Grandlp_meninggal / $Grandlp_positif) * 100, 2) . '%':0}} | |||||||||
ANGKA KESAKITAN (ANNUAL PARASITE INCIDENCE) PER 1.000 PENDUDUK | {{$jumlah_penduduk_perempuan + $jumlah_penduduk_laki_laki>0?($Grandlp_positif / ($jumlah_penduduk_perempuan + $jumlah_penduduk_laki_laki)) * 1000:0}} |