@extends('layouts.app') @section('content')

Detail Wilayah

{{--
@csrf

Export
--}}
@if(Auth::user()->downloadFile('ObatEsensial', Session::get('year')))
@csrf downloadFile('ObatEsensial', Session::get('year'))->status == 1 ?"disabled":""}} class="form-control" placeholder="upload PDF file">
@else
@csrf
@endif @if(Auth::user()->hasFile('ObatEsensial', Session::get('year')) && Auth::user()->downloadFile('ObatEsensial', Session::get('year'))->file_name != "-") Download pdf file @endif Report

@role('Admin|superadmin') @foreach ($unit_kerja as $key => $item) @endforeach @endrole
No Unit Kerja Ketersediaan obat esensial
{{$key + 1}} {{$item->nama}}
ObatEsensial ? $item->ObatEsensial->status == 1?"checked":"" : ""}} name="diatas_80" id="{{$item->id}}" class="data-input">
ObatEsensial ? $item->ObatEsensial->status == 2?"checked":"" : ""}} name="dibawah_80" id="{{$item->id}}" class="data-input">
JUMLAH PUSKESMAS YANG MEMILIKI 80% OBAT DAN VAKSIN ESENSIAL {{$obat_tersedia}}
JUMLAH PUSKESMAS YANG MELAPOR {{$total_obat}}
% KABUPATEN/KOTA DENGAN KETERSEDIAAN OBAT ESENSIAL {{$total_obat?number_format($obat_tersedia/$total_obat * 100, 2):0}}%
@push('scripts') @endpush @push('scripts') @endpush @endsection