@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 | @endroleTFU TERDAFTAR | TFU YANG DILAKUKAN PENGAWASAN SESUAI STANDAR (IKL) | @role('Admin|superadmin')Lock data | Lock upload | File Download | Detail Desa | @endrole|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SEKOLAH | PUSKESMAS | PASAR | TOTAL | SARANA PENDIDIKAN | PUSKESMAS | PASAR | TOTAL | |||||||||||||||||
SD / MI | SMP/ MTS | SD / MI | SMP/ MTS | |||||||||||||||||||||
∑ | % | ∑ | % | ∑ | % | ∑ | % | ∑ | % | |||||||||||||||
{{ $key + 1 }} | {{ $item->kecamatan }} | {{ $item->nama }} | @php $sd = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'sd')['total']; $Grandsd += $sd; echo $sd; @endphp | @php $smp = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'smp')['total']; $Grandsmp += $smp; echo $smp; @endphp | @php $puskesmas = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'puskesmas')['total']; $Grandpuskesmas += $puskesmas; echo $puskesmas; @endphp | @php $pasar = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'pasar')['total']; $Grandpasar += $pasar; echo $pasar; @endphp | @php $totals = $sd + $smp + $puskesmas + $pasar; $GrandTotal += $totals; @endphp {{ $totals }} | @php $m_sd = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_sd')['total']; $Grandm_sd += $m_sd; echo $m_sd; @endphp | {{ $sd>0?number_format(($m_sd / $sd) * 100, 2) . '%':0}} | @php $m_smp = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_smp')['total']; $Grandm_smp += $m_smp; echo $m_smp; @endphp | {{ $smp>0?number_format(($m_smp / $smp) * 100, 2) . '%':0}} | @php $m_puskesmas = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_puskesmas')['total']; $Grandm_puskesmas += $m_puskesmas; echo $m_puskesmas; @endphp | {{ $puskesmas>0?number_format(($m_puskesmas / $puskesmas) * 100, 2) . '%':0}} | @php $m_pasar = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_pasar')['total']; $Grandm_pasar += $m_pasar; echo $m_pasar; @endphp | {{ $pasar>0?number_format(($m_pasar / $pasar) * 100, 2) . '%':0}} | @php $total = $m_sd + $m_smp + $m_puskesmas + $m_pasar; $GrandMTotal += $total; @endphp {{ $total }} | {{$totals>0? number_format(($total / $totals) * 100, 2) . '%':0}} | general_lock_get2(Session::get('year'), 'filterTable82') == 1 ? "checked":""}} {{$item->general_lock_get2(Session::get('year'), 'filterTable82') == 2 ? "disabled":""}} class="data-lock" id="{{$item->id}}"> | @if(isset($item->user) && $item->user->downloadFile('Table82', Session::get('year')))user->downloadFile('Table82', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}"> | @elseif(isset($item->user) && !$item->user->downloadFile('Table82', Session::get('year')))@else | - | @endif @if(isset($item->user) && $item->user->hasFile('Table82', Session::get('year')))@if($item->user->downloadFile('Table82', Session::get('year'))->file_name != "-") Download pdf file @else - @endif | @else- | @endif|
{{ $key + 1 }} | {{ $item->UnitKerja->kecamatan }} | {{ $item->nama }} | @php $sd = $item ->filterTable82( Session::get('year'), $item->id, ) ->sd; $Grandsd += $sd; @endphp | @php $smp = $item ->filterTable82( Session::get('year'), $item->id, ) ->smp; $Grandsmp += $smp; @endphp | @php $puskesmas = $item ->filterTable82( Session::get('year'), $item->id, ) ->puskesmas; $Grandpuskesmas += $puskesmas; @endphp | @php $pasar = $item ->filterTable82( Session::get('year'), $item->id, ) ->pasar; $Grandpasar += $pasar; @endphp | @php $totals = $sd + $smp + $puskesmas + $pasar; $GrandTotal += $totals; @endphp {{ $totals }} | @php $m_sd = $item ->filterTable82( Session::get('year'), $item->id, ) ->m_sd; $Grandm_sd += $m_sd; @endphp | {{ $sd>0?number_format(($m_sd / $sd) * 100, 2) . '%':0}} | @php $m_smp = $item ->filterTable82( Session::get('year'), $item->id, ) ->m_smp; $Grandm_smp += $m_smp; @endphp | {{ $smp>0?number_format(($m_smp / $smp) * 100, 2) . '%':0}} | @php $m_puskesmas = $item ->filterTable82( Session::get('year'), $item->id, ) ->m_puskesmas; $Grandm_puskesmas += $m_puskesmas; @endphp | {{ $puskesmas>0?number_format(($m_puskesmas / $puskesmas) * 100, 2) . '%':0}} | @php $m_pasar = $item ->filterTable82( Session::get('year'), $item->id, ) ->m_pasar; $Grandm_pasar += $m_pasar; @endphp | {{ $pasar>0?number_format(($m_pasar / $pasar) * 100, 2) . '%':0}} | @php $total = $m_sd + $m_smp + $m_puskesmas + $m_pasar; $GrandMTotal += $total; @endphp {{ $total }} | {{ $totals>0?number_format(($total / $totals) * 100, 2) . '%':0}} | |||||||
JUMLAH | {{$Grandsd }} | {{$Grandsmp }} | {{$Grandpuskesmas }} | {{$Grandpasar }} | {{$GrandTotal }} | {{$Grandm_sd }} | {{ $Grandsd>0?number_format(($Grandm_sd / $Grandsd) * 100, 2) . '%':0}} | {{$Grandm_smp }} | {{ $Grandsmp>0?number_format(($Grandm_smp / $Grandsmp) * 100, 2) . '%':0}} | {{$Grandm_puskesmas }} | {{ $Grandpuskesmas>0?number_format(($Grandm_puskesmas / $Grandpuskesmas) * 100, 2) . '%':0}} | {{$Grandm_pasar }} | {{$Grandpasar>0? number_format(($Grandm_pasar / $Grandpasar) * 100, 2) . '%':0}} | {{$GrandMTotal }} | {{ $GrandTotal>0?number_format(($GrandMTotal / $GrandTotal) * 100, 2) . '%':0}} |