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

{{$title}}

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