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

{{$title}}

@if(Auth::user()->downloadFile('Table82', Session::get('year')))
@csrf downloadFile('Table82', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('Table82', Session::get('year')) && Auth::user()->downloadFile('Table82', Session::get('year'))->file_name != "-") Download pdf file @endif Report Add
{{--
{{--

Pengguna

--}} {{--

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();.

--}}
@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @role('Admin|superadmin') @endrole @php $Grandsd = 0; $Grandsmp = 0; $Grandpuskesmas = 0; $Grandpasar = 0; $GrandTotal = 0; $Grandm_sd = 0; $Grandm_smp = 0; $Grandm_puskesmas = 0; $Grandm_pasar = 0; $GrandMTotal = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @if(isset($item->user) && $item->user->downloadFile('Table82', Session::get('year'))) @elseif(isset($item->user) && !$item->user->downloadFile('Table82', Session::get('year'))) @else @endif @if(isset($item->user) && $item->user->hasFile('Table82', Session::get('year'))) @else @endif @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if ($item->filterTable82(Session::get('year'), $item->id)) @php $filterResult = $item->filterTable82(Session::get('year'), $item->id); $isDisabled = $filterResult->status == 1 || $filterResult->status == 2 ? "disabled" : ""; @endphp @endif @endforeach @endrole
No KecamatanPuskesmasDesaTFU TERDAFTAR TFU YANG DILAKUKAN PENGAWASAN SESUAI STANDAR (IKL)Lock data Lock upload File Download Detail Desa
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}}">user->downloadFile('Table82', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}">- @if($item->user->downloadFile('Table82', Session::get('year'))->file_name != "-") Download pdf file @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}}
@push('scripts') @endpush @push('scripts') @endpush @endsection