| NO | SASARAN / INDIKATOR SASARAN | SATUAN | @foreach ($between as $tahun)TAHUN {!! $tahun !!} | @endforeach|||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TARGET | REALISASI | CAPAIAN (%) | @endforeach||||||||||||||||||||||||||
| 1 | {!! $sasaran->sasaran !!} | |||||||||||||||||||||||||||
| {!! $idxInd + 1 !!} | {!! $indikator->indikator !!} | {!! $indikator->satuan !!} | @foreach ($between as $tahun) @php $target = $indikator->rpjmdSasaranIndikatorTarget()->whereTahun($tahun)->first(); $trxIku = $indikator->trxIku()->whereTahun($tahun)->latest()->first(); $trxRkt = $trxIku?->trxRkt; if(!is_null($trxIku) && !is_null($trxRkt) && !is_null($trxRkt->realisasi)) { if ($trxIku->jenis_perhitungan === 'positif') { $hitung = number_format($trxRkt?->realisasi / $target->target * 100, 2); $hasil = substr($hitung, -2, 2) == 00 ? number_format($trxRkt?->realisasi / $target->target * 100, 0) : $hitung; } else { $hitung = number_format(($target->target - ($trxRkt?->realisasi - $target->target)) / $target->target * 100, 2); $hasil = substr($hitung, -2, 2) == 00 ? number_format(($target->target - ($trxRkt?->realisasi - $target->target)) / $target->target * 100, 2) : $hitung; } } else { $hasil = 0; } @endphp @if (!is_null($target)){!! $target?->target !!} | {!! $trxRkt?->realisasi ? $trxRkt?->realisasi : 0 !!} | {!! $hasil !!} | @else0 | 0 | 0 | @endif @endforeach||||||||||||||||||||
{!! $idxInd + 1 .'. ' . $indikator->indikator !!}
{!! $trxRkt?->analisis ? strip_tags($trxRkt?->analisis) : 'Tidak Ada Analisa' !!}
@endforeach