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

{{$title}}

@if(Auth::user()->downloadFile('BalitaVita', Session::get('year')))
@csrf downloadFile('BalitaVita', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('BalitaVita', Session::get('year')) && Auth::user()->downloadFile('BalitaVita', 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('BalitaVita', Session::get('year'))) @elseif(isset($item->user) && !$item->user->downloadFile('BalitaVita', Session::get('year'))) @else @endif @if(isset($item->user) && $item->user->hasFile('BalitaVita', Session::get('year'))) @else @endif @endforeach @endrole @role('Puskesmas|Pihak Wajib Pajak') @foreach ($desa as $key => $item) @if($item->filterBalitaVita(Session::get('year'))) @php $filterResult = $item->filterBalitaVita(Session::get('year')); $isDisabled = $filterResult->status == 1 || $filterResult->status == 2 ? "disabled" : ""; @endphp @endif @endforeach @endrole
No KecamatanPuskesmasDesaBayi 6-11 Bulan Bayi 12-59 Bulan Bayi 6-59 BulanLock data Lock upload File Download Detail Desa
Jumlah Bayi Mendapat Vit A Jumlah Bayi Mendapat Vit A Jumlah Bayi Mendapat Vit A
Jumlah % Jumlah % Jumlah %
{{$key + 1}} {{$item->kecamatan}} {{$item->nama}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_6')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"] > 0? number_format($item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_6')["total"] /$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_12')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"] > 0? number_format($item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_12')["total"] /$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"] * 100, 2 ):0}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"] + $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_12')["total"] + $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_6')["total"]}} {{$item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"] + $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"] > 0? number_format(($item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_12')["total"] + $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'vita_6')["total"]) /($item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_6')["total"] + $item->unitKerjaAmbil('filterBalitaVita', Session::get('year'), 'jumlah_12')["total"]) * 100, 2 ):0}} general_lock_get(Session::get('year'), 'filterBalitaVita') == 1 ? "checked":""}} {{$item->general_lock_get(Session::get('year'), 'filterBalitaVita') == 2 ? "disabled":""}} class="data-lock" id="{{$item->id}}">user->downloadFile('BalitaVita', Session::get('year'))->status == 1 ? "checked":""}} class="data-lock-upload" id="{{$item->user->id}}">- @if($item->user->downloadFile('BalitaVita', Session::get('year'))->file_name != "-") Download pdf file @else - @endif -
{{$key + 1}} {{$item->UnitKerja->kecamatan}} {{$item->nama}} {{$item->filterBalitaVita(Session::get('year'))->jumlah_6>0? number_format($item->filterBalitaVita(Session::get('year'))->vita_6 /$item->filterBalitaVita(Session::get('year'))->jumlah_6 * 100, 2):0}} {{$item->filterBalitaVita(Session::get('year'))->jumlah_12>0? number_format($item->filterBalitaVita(Session::get('year'))->vita_12 /$item->filterBalitaVita(Session::get('year'))->jumlah_12 * 100, 2):0}} {{$item->filterBalitaVita(Session::get('year'))->jumlah_6 + $item->filterBalitaVita(Session::get('year'))->jumlah_12}} {{$item->filterBalitaVita(Session::get('year'))->vita_6 + $item->filterBalitaVita(Session::get('year'))->vita_12}} {{$item->filterBalitaVita(Session::get('year'))->jumlah_6 + $item->filterBalitaVita(Session::get('year'))->jumlah_12>0? number_format(($item->filterBalitaVita(Session::get('year'))->vita_6 + $item->filterBalitaVita(Session::get('year'))->vita_12) /($item->filterBalitaVita(Session::get('year'))->jumlah_6 + $item->filterBalitaVita(Session::get('year'))->jumlah_12) * 100, 2):0}}
@push('scripts') @endpush @push('scripts') @endpush @endsection