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

{{$title}}

@if(Auth::user()->downloadFile('Table72', Session::get('year')))
@csrf downloadFile('Table72', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('Table72', Session::get('year')) && Auth::user()->downloadFile('Table72', 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 $Grandl_kasus = 0; $Grandp_kasus = 0; $Grandpl_kasus = 0; $Grandl_meninggal = 0; $Grandp_meninggal = 0; $Grandpl_meninggal = 0; $Grandl_kasus_meninggal = 0; $Grandp_kasus_meninggal = 0; $Grandpl_kasus_meninggal = 0; @endphp @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @if(isset($item->user) && $item->user->downloadFile('Table72', Session::get('year'))) @elseif(isset($item->user) && !$item->user->downloadFile('Table72', Session::get('year'))) @else @endif @if(isset($item->user) && $item->user->hasFile('Table72', Session::get('year'))) @else @endif @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if ($item->filterTable72(Session::get('year'), $item->id)) @php $filterResult = $item->filterTable72(Session::get('year'), $item->id); $isDisabled = $filterResult->status == 1 || $filterResult->status == 2 ? "disabled" : ""; @endphp @endif @endforeach @endrole
No KecamatanPuskesmasDesaDEMAM BERDARAH DENGUE (DBD)Lock data Lock upload File Download Detail Desa
JUMLAH KASUS MENINGGAL CFR (%)
L P L + p L P L + p L P L + p
{{ $key + 1 }} {{ $item->kecamatan }} {{ $item->nama }} @php $l_kasus = $item->unitKerjaAmbilPart2('filterTable72', Session::get('year'), 'l_kasus')['total']; $Grandl_kasus += $l_kasus; echo $l_kasus; @endphp @php $p_kasus = $item->unitKerjaAmbilPart2('filterTable72', Session::get('year'), 'p_kasus')['total']; $Grandp_kasus += $p_kasus; echo $p_kasus; @endphp @php $Grandpl_kasus += $l_kasus + $p_kasus; @endphp {{$l_kasus + $p_kasus}} @php $l_meninggal = $item->unitKerjaAmbilPart2('filterTable72', Session::get('year'), 'l_meninggal')['total']; $Grandl_meninggal += $l_meninggal; echo $l_meninggal; @endphp @php $p_meninggal = $item->unitKerjaAmbilPart2('filterTable72', Session::get('year'), 'p_meninggal')['total']; $Grandp_meninggal += $p_meninggal; echo $p_meninggal; @endphp @php $Grandpl_meninggal += $l_meninggal + $p_meninggal; @endphp {{$l_meninggal + $p_meninggal}} @php $Grandl_kasus_meninggal += $l_kasus + $l_meninggal; @endphp {{$l_kasus>0?number_format($l_meninggal/$l_kasus * 100, 2):0 }}% @php $Grandp_kasus_meninggal += $p_kasus + $p_meninggal; @endphp {{$p_kasus>0?number_format($p_meninggal/$p_kasus * 100, 2):0}}% @php $Grandpl_kasus_meninggal += ($p_kasus + $p_meninggal) + ($l_kasus + $l_meninggal); @endphp {{ ($p_kasus + $l_kasus) > 0?number_format(($l_meninggal + $p_meninggal)/ ($p_kasus + $l_kasus) * 100, 2):0 }}% general_lock_get2(Session::get('year'), 'filterTable72') == 1 ? "checked":""}} {{$item->general_lock_get2(Session::get('year'), 'filterTable72') == 2 ? "disabled":""}} class="data-lock" id="{{$item->id}}">user->downloadFile('Table72', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}">- @if($item->user->downloadFile('Table72', Session::get('year'))->file_name != "-") Download pdf file @else - @endif -
{{ $key + 1 }} {{ $item->UnitKerja->kecamatan }} {{ $item->nama }} @php $l_kasus = $item ->filterTable72( Session::get('year'), $item->id, ) ->l_kasus; $Grandl_kasus += $l_kasus; @endphp @php $p_kasus = $item ->filterTable72( Session::get('year'), $item->id, ) ->p_kasus; $Grandp_kasus += $p_kasus; @endphp @php $Grandpl_kasus += $l_kasus + $p_kasus; @endphp {{$l_kasus + $p_kasus}} @php $l_meninggal = $item ->filterTable72( Session::get('year'), $item->id, ) ->l_meninggal; $Grandl_meninggal += $l_meninggal; @endphp @php $p_meninggal = $item ->filterTable72( Session::get('year'), $item->id, ) ->p_meninggal; $Grandp_meninggal += $p_meninggal; @endphp @php $Grandpl_meninggal += $l_meninggal + $p_meninggal; @endphp {{$l_meninggal + $p_meninggal}} @php $Grandl_kasus_meninggal += $l_kasus + $l_meninggal; @endphp {{$l_kasus>0?number_format($l_meninggal/$l_kasus * 100, 2):0 }}% @php $Grandp_kasus_meninggal += $p_kasus + $p_meninggal; @endphp {{$p_kasus>0?number_format($p_meninggal/$p_kasus * 100, 2):0}}% @php $Grandpl_kasus_meninggal += ($p_kasus + $p_meninggal) + ($l_kasus + $l_meninggal); @endphp {{ ($p_kasus + $l_kasus) > 0?number_format(($l_meninggal + $p_meninggal)/ ($p_kasus + $l_kasus) * 100, 2):0 }}%
JUMLAH {{$Grandl_kasus}} {{$Grandp_kasus}} {{$Grandpl_kasus}} {{$Grandl_meninggal}} {{$Grandp_meninggal}} {{$Grandpl_meninggal}} {{$Grandl_kasus > 0?number_format($Grandl_meninggal / $Grandl_kasus * 100, 2):0}}% {{$Grandp_kasus > 0?number_format($Grandp_meninggal / $Grandp_kasus * 100, 2):0}}% {{$Grandpl_kasus > 0?number_format($Grandpl_meninggal / $Grandpl_kasus * 100, 2):0}}%
ANGKA KESAKITAN DBD PER 100.000 PENDUDUK {{($Grandpl_kasus / ($jumlah_penduduk_perempuan + $jumlah_penduduk_laki_laki)) * 100000}}
@push('scripts') @endpush @push('scripts') @endpush @endsection