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

{{$title}}

@if(Auth::user()->downloadFile('Table84', Session::get('year')))
@csrf downloadFile('Table84', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('Table84', Session::get('year')) && Auth::user()->downloadFile('Table84', 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 $GrandKasus = 0; $GrandSembuh = 0; $GrandMeninggal = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @if(isset($item->user) && $item->user->downloadFile('Table84', Session::get('year'))) @elseif(isset($item->user) && !$item->user->downloadFile('Table84', Session::get('year'))) @else @endif @if(isset($item->user) && $item->user->hasFile('Table84', Session::get('year'))) @else @endif @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if ($item->filterTable84(Session::get('year'), $item->id)) @php $filterResult = $item->filterTable84(Session::get('year'), $item->id); $isDisabled = $filterResult->status == 1 || $filterResult->status == 2 ? "disabled" : ""; @endphp @endif @endforeach @endrole
No KecamatanPuskesmasDesaKASUS SEMBUH MENIGGAL ANGKA KESEMBUHAN (RR) ANGKA KEMATIAN (CFR)Lock data Lock upload File Download Detail Desa
{{ $key + 1 }} {{ $item->kecamatan }} {{ $item->nama }} @php $kasus = $item->unitKerjaAmbilPart2('filterTable84', Session::get('year'), 'kasus')['total']; $GrandKasus += $kasus; echo $kasus; @endphp @php $sembuh = $item->unitKerjaAmbilPart2('filterTable84', Session::get('year'), 'sembuh')['total']; $GrandSembuh += $sembuh; echo $sembuh; @endphp @php $meninggal = $item->unitKerjaAmbilPart2('filterTable84', Session::get('year'), 'meninggal')['total']; $GrandMeninggal += $meninggal; echo $meninggal; @endphp {{$kasus>0?number_format(($sembuh / $kasus) * 100, 2) . '%':0}} {{$kasus>0?number_format(($meninggal / $kasus) * 100, 2) . '%':0}} general_lock_get2(Session::get('year'), 'filterTable84') == 1 ? "checked":""}} {{$item->general_lock_get2(Session::get('year'), 'filterTable84') == 2 ? "disabled":""}} class="data-lock" id="{{$item->id}}">user->downloadFile('Table84', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}">- @if($item->user->downloadFile('Table84', Session::get('year'))->file_name != "-") Download pdf file @else - @endif -
{{ $key + 1 }} {{ $item->UnitKerja->kecamatan }} {{ $item->nama }} @php $kasus = $item ->filterTable84( Session::get('year'), $item->id, ) ->kasus; $GrandKasus += $kasus; @endphp @php $sembuh = $item ->filterTable84( Session::get('year'), $item->id, ) ->sembuh; $GrandSembuh += $sembuh; @endphp @php $meninggal = $item ->filterTable84( Session::get('year'), $item->id, ) ->meninggal; $GrandMeninggal += $meninggal; @endphp {{$kasus>0?number_format(($sembuh / $kasus) * 100, 2) . '%':0}} {{$kasus>0?number_format(($meninggal / $kasus) * 100, 2) . '%':0}}
Jumlah {{ $GrandKasus }} {{ $GrandSembuh }} {{ $GrandMeninggal }} {{$GrandKasus>0?number_format(($GrandSembuh / $GrandKasus) * 100, 2) . '%':0}} {{$GrandKasus>0?number_format(($GrandMeninggal / $GrandKasus) * 100, 2) . '%':0}}
@push('scripts') @endpush @push('scripts') @endpush @endsection