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

{{$title}}

@if(Auth::user()->downloadFile('Table86', Session::get('year')))
@csrf downloadFile('Table86', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('Table86', Session::get('year')) && Auth::user()->downloadFile('Table86', 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 $Grandsasaran_6_11 = 0; $Grandhasil_vaksinasi_6_11 = 0; $Grandsasaran_12_17 = 0; $Grandhasil_vaksinasi_12_17 = 0; $Grandsasaran_18_59 = 0; $Grandhasil_vaksinasi_18_59 = 0; $Grandsasaran_60_up = 0; $Grandhasil_vaksinasi_60_up = 0; $Grandtotal_sasaran = 0; $Grandtotal_hasil_vaksinasi = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @if(isset($item->user) && $item->user->downloadFile('Table86', Session::get('year'))) @elseif(isset($item->user) && !$item->user->downloadFile('Table86', Session::get('year'))) @else @endif @if(isset($item->user) && $item->user->hasFile('Table86', Session::get('year'))) @else @endif @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if ($item->filterTable86(Session::get('year'), $item->id)) @php $filterResult = $item->filterTable86(Session::get('year'), $item->id); $isDisabled = $filterResult->status == 1 || $filterResult->status == 2 ? "disabled" : ""; @endphp @endif @endforeach @endrole
No KecamatanPuskesmasDesaUSIA 6-11 TAHUN USIA 12-17 TAHUN USIA 18-59 TAHUN USIA > 60 TAHUN CAKUPAN TOTALLock data Lock upload File Download Detail Desa
SASARAN HASIL VAKSINASI % SASARAN HASIL VAKSINASI % SASARAN HASIL VAKSINASI % SASARAN HASIL VAKSINASI % SASARAN HASIL VAKSINASI %
{{ $key + 1 }} {{ $item->kecamatan }} {{ $item->nama }} @php $sasaran_6_11 = $item->unitKerjaAmbilPart2('filterTable86', Session::get('year'), 'sasaran_6_11')['total']; $Grandsasaran_6_11 += $sasaran_6_11; echo $sasaran_6_11; @endphp @php $hasil_vaksinasi_6_11 = $item->unitKerjaAmbilPart2('filterTable86', Session::get('year'), 'hasil_vaksinasi_6_11')['total']; $Grandhasil_vaksinasi_6_11 += $hasil_vaksinasi_6_11; echo $hasil_vaksinasi_6_11; @endphp {{ $sasaran_6_11>0?number_format(($hasil_vaksinasi_6_11 / $sasaran_6_11) * 100, 2) . '%':0 }} @php $sasaran_12_17 = $item->unitKerjaAmbilPart2('filterTable86', Session::get('year'), 'sasaran_12_17')['total']; $Grandsasaran_12_17 += $sasaran_12_17; echo $sasaran_12_17; @endphp @php $hasil_vaksinasi_12_17 = $item->unitKerjaAmbilPart2('filterTable86', Session::get('year'), 'hasil_vaksinasi_12_17')['total']; $Grandhasil_vaksinasi_12_17 += $hasil_vaksinasi_12_17; echo $hasil_vaksinasi_12_17; @endphp {{ $sasaran_12_17>0?number_format(($hasil_vaksinasi_12_17 / $sasaran_12_17) * 100, 2) . '%':0 }} @php $sasaran_18_59 = $item->unitKerjaAmbilPart2('filterTable86', Session::get('year'), 'sasaran_18_59')['total']; $Grandsasaran_18_59 += $sasaran_18_59; echo $sasaran_18_59; @endphp @php $hasil_vaksinasi_18_59 = $item->unitKerjaAmbilPart2('filterTable86', Session::get('year'), 'hasil_vaksinasi_18_59')['total']; $Grandhasil_vaksinasi_18_59 += $hasil_vaksinasi_18_59; echo $hasil_vaksinasi_18_59; @endphp {{ $sasaran_18_59>0?number_format(($hasil_vaksinasi_18_59 / $sasaran_18_59) * 100, 2) . '%':0 }} @php $sasaran_60_up = $item->unitKerjaAmbilPart2('filterTable86', Session::get('year'), 'sasaran_60_up')['total']; $Grandsasaran_60_up += $sasaran_60_up; echo $sasaran_60_up; @endphp @php $hasil_vaksinasi_60_up = $item->unitKerjaAmbilPart2('filterTable86', Session::get('year'), 'hasil_vaksinasi_60_up')['total']; $Grandhasil_vaksinasi_60_up += $hasil_vaksinasi_60_up; echo $hasil_vaksinasi_60_up; @endphp {{ $sasaran_60_up>0?number_format(($hasil_vaksinasi_60_up / $sasaran_60_up) * 100, 2) . '%':0 }} @php $total_sasaran_ = $sasaran_6_11 + $sasaran_12_17 + $sasaran_18_59 + $sasaran_60_up; echo $total_sasaran_; $Grandtotal_sasaran += $total_sasaran_; @endphp @php $total_hasil_vaksinasi_ = $hasil_vaksinasi_6_11 + $hasil_vaksinasi_12_17 + $hasil_vaksinasi_18_59 + $hasil_vaksinasi_60_up; echo $total_hasil_vaksinasi_; $Grandtotal_hasil_vaksinasi += $total_hasil_vaksinasi_; @endphp {{ $total_sasaran_>0?number_format(($total_hasil_vaksinasi_ / $total_sasaran_) * 100, 2) . '%':0 }} general_lock_get2(Session::get('year'), 'filterTable86') == 1 ? "checked":""}} {{$item->general_lock_get2(Session::get('year'), 'filterTable86') == 2 ? "disabled":""}} class="data-lock" id="{{$item->id}}">user->downloadFile('Table86', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}">- @if($item->user->downloadFile('Table86', Session::get('year'))->file_name != "-") Download pdf file @else - @endif -
{{ $key + 1 }} {{ $item->UnitKerja->kecamatan }} {{ $item->nama }} @php $sasaran_6_11 = $item ->filterTable86( Session::get('year'), $item->id, ) ->sasaran_6_11; $Grandsasaran_6_11 += $sasaran_6_11; @endphp @php $hasil_vaksinasi_6_11 = $item ->filterTable86( Session::get('year'), $item->id, ) ->hasil_vaksinasi_6_11; $Grandhasil_vaksinasi_6_11 += $hasil_vaksinasi_6_11; @endphp {{ $sasaran_6_11>0?number_format(($hasil_vaksinasi_6_11 / $sasaran_6_11) * 100, 2) . '%':0 }} @php $sasaran_12_17 = $item ->filterTable86( Session::get('year'), $item->id, ) ->sasaran_12_17; $Grandsasaran_12_17 += $sasaran_12_17; @endphp @php $hasil_vaksinasi_12_17 = $item ->filterTable86( Session::get('year'), $item->id, ) ->hasil_vaksinasi_12_17; $Grandhasil_vaksinasi_12_17 += $hasil_vaksinasi_12_17; @endphp {{ $sasaran_12_17>0?number_format(($hasil_vaksinasi_12_17 / $sasaran_12_17) * 100, 2) . '%':0 }} @php $sasaran_18_59 = $item ->filterTable86( Session::get('year'), $item->id, ) ->sasaran_18_59; $Grandsasaran_18_59 += $sasaran_18_59; @endphp @php $hasil_vaksinasi_18_59 = $item ->filterTable86( Session::get('year'), $item->id, ) ->hasil_vaksinasi_18_59; $Grandhasil_vaksinasi_18_59 += $hasil_vaksinasi_18_59; @endphp {{ $sasaran_18_59>0?number_format(($hasil_vaksinasi_18_59 / $sasaran_18_59) * 100, 2) . '%':0 }} @php $sasaran_60_up = $item ->filterTable86( Session::get('year'), $item->id, ) ->sasaran_60_up; $Grandsasaran_60_up += $sasaran_60_up; @endphp @php $hasil_vaksinasi_60_up = $item ->filterTable86( Session::get('year'), $item->id, ) ->hasil_vaksinasi_60_up; $Grandhasil_vaksinasi_60_up += $hasil_vaksinasi_60_up; @endphp {{ $sasaran_60_up>0?number_format(($hasil_vaksinasi_60_up / $sasaran_60_up) * 100, 2) . '%':0 }} @php $total_sasaran_ = $sasaran_6_11 + $sasaran_12_17 + $sasaran_18_59 + $sasaran_60_up; echo $total_sasaran_; $Grandtotal_sasaran += $total_sasaran_; @endphp @php $total_hasil_vaksinasi_ = $hasil_vaksinasi_6_11 + $hasil_vaksinasi_12_17 + $hasil_vaksinasi_18_59 + $hasil_vaksinasi_60_up; echo $total_hasil_vaksinasi_; $Grandtotal_hasil_vaksinasi += $total_hasil_vaksinasi_; @endphp {{ $total_sasaran_>0?number_format(($total_hasil_vaksinasi_ / $total_sasaran_) * 100, 2) . '%':0 }}
Jumlah {{ $Grandsasaran_6_11 }} {{ $Grandhasil_vaksinasi_6_11 }} {{ $Grandsasaran_6_11>0?number_format(($Grandhasil_vaksinasi_6_11 / $Grandsasaran_6_11) * 100, 2) . '%':0 }} {{ $Grandsasaran_12_17 }} {{ $Grandhasil_vaksinasi_12_17 }} {{ $Grandsasaran_12_17>0?number_format(($Grandhasil_vaksinasi_12_17 / $Grandsasaran_12_17) * 100, 2) . '%':0 }} {{ $Grandsasaran_18_59 }} {{ $Grandhasil_vaksinasi_18_59 }} {{ $Grandsasaran_18_59>0?number_format(($Grandhasil_vaksinasi_18_59 / $Grandsasaran_18_59) * 100, 2) . '%':0 }} {{ $Grandsasaran_60_up }} {{ $Grandhasil_vaksinasi_60_up }} {{ $Grandsasaran_60_up>0?number_format(($Grandhasil_vaksinasi_60_up / $Grandsasaran_60_up) * 100, 2) . '%':0 }} {{ $Grandtotal_sasaran }} {{ $Grandtotal_hasil_vaksinasi }} {{ $Grandtotal_sasaran>0?number_format(($Grandtotal_hasil_vaksinasi / $Grandtotal_sasaran) * 100, 2) . '%':0 }}
@push('scripts') @endpush @push('scripts') @endpush @endsection