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

{{$title}}

@if(Auth::user()->downloadFile('Timbang', Session::get('year')))
@csrf downloadFile('Timbang', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('Timbang', Session::get('year')) && Auth::user()->downloadFile('Timbang', Session::get('year'))->file_name != "-") Download pdf file @endif Report Add
@role('Admin|superadmin') @endrole @role('Puskesmas|Pihak Wajib Pajak') @endrole @role('Admin|superadmin') @endrole @role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @if(isset($item->user) && $item->user->downloadFile('Timbang', Session::get('year'))) @elseif(isset($item->user) && !$item->user->downloadFile('Timbang', Session::get('year'))) @else @endif @if(isset($item->user) && $item->user->hasFile('Timbang', Session::get('year'))) @else @endif @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterTimbang(Session::get('year'))) @php $filterResult = $item->filterTimbang(Session::get('year')); $isDisabled = $filterResult->status == 1 || $filterResult->status == 2 ? "disabled" : ""; @endphp @endif @endforeach @endrole
No KecamatanPuskesmasDesaBalita DitimbangLock data Lock upload File Download Detail Desa
Jumlah Sasaran Balita (S)
Jumlah (D) %(D/S)
L P L+P L P L+P L P L+P
{{$key + 1}} {{$item->kecamatan}} {{$item->nama}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"] + $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_L')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_P')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_P')["total"] + $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_L')["total"]}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"] > 0? number_format($item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_L')["total"] /$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"] > 0? number_format($item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_P')["total"] /$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"] + $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"] > 0? number_format(($item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_L')["total"] + $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'timbang_P')["total"]) /($item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_P')["total"] + $item->unitKerjaAmbil('filterTimbang', Session::get('year'), 'jumlah_L')["total"]) * 100, 2 ):0}} general_lock_get(Session::get('year'), 'filterTimbang') == 1 ? "checked":""}} {{$item->general_lock_get(Session::get('year'), 'filterTimbang') == 2 ? "disabled":""}} class="data-lock" id="{{$item->id}}">user->downloadFile('Timbang', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}">- @if($item->user->downloadFile('Timbang', Session::get('year'))->file_name != "-") Download pdf file @else - @endif -
{{$key + 1}} {{$item->UnitKerja->kecamatan}} {{$item->nama}} {{$item->filterTimbang(Session::get('year'))->jumlah_L + $item->filterTimbang(Session::get('year'))->jumlah_P}} {{$item->filterTimbang(Session::get('year'))->timbang_L + $item->filterTimbang(Session::get('year'))->timbang_P}} {{$item->filterTimbang(Session::get('year'))->jumlah_L>0? number_format($item->filterTimbang(Session::get('year'))->timbang_L /$item->filterTimbang(Session::get('year'))->jumlah_L * 100, 2):0}} {{$item->filterTimbang(Session::get('year'))->jumlah_P>0? number_format($item->filterTimbang(Session::get('year'))->timbang_P /$item->filterTimbang(Session::get('year'))->jumlah_P * 100, 2):0}} {{($item->filterTimbang(Session::get('year'))->jumlah_P + $item->filterTimbang(Session::get('year'))->jumlah_L)>0? number_format(($item->filterTimbang(Session::get('year'))->timbang_L + $item->filterTimbang(Session::get('year'))->timbang_P) /($item->filterTimbang(Session::get('year'))->jumlah_L + $item->filterTimbang(Session::get('year'))->jumlah_P) * 100, 2):0}}
@push('scripts') @endpush @push('scripts') @endpush @endsection