{{$item->kecamatan}} |
{{$item->nama}} |
{{$item->unitKerjaAmbil('filterOdhiv', Session::get('year'), 'baru')["total"]}} |
{{$item->unitKerjaAmbil('filterOdhiv', Session::get('year'), 'arv')["total"]}} |
{{$item->unitKerjaAmbil('filterOdhiv', Session::get('year'), 'arv')["total"] > 0?
number_format($item->unitKerjaAmbil('filterOdhiv', Session::get('year'), 'baru')["total"]
/$item->unitKerjaAmbil('filterOdhiv', Session::get('year'), 'arv')["total"] * 100, 2
):0}} |
@endforeach
@php
// Calculate total percentage
$totalPercentage = $totalArv > 0 ? number_format($totalBaru / $totalArv * 100, 2) : 0;
@endphp
{{$item->UnitKerja->kecamatan}} |
{{$item->nama}} |
{{$item->filterOdhiv(Session::get('year'))->baru}} |
{{$item->filterOdhiv(Session::get('year'))->arv}} |
{{$item->filterOdhiv(Session::get('year'))->arv>0?
number_format($item->filterOdhiv(Session::get('year'))->baru
/$item->filterOdhiv(Session::get('year'))->arv * 100, 2):0}} |
@endif
@endforeach
@php
// Calculate total percentage
$totalPercentage = $totalArv > 0 ? number_format($totalBaru / $totalArv * 100, 2) : 0;
@endphp