@php $tahun = substr($periode,0,4); $tahun_rev = intval($tahun) - 1; $bln = substr($periode,4,2); $bulan= App\Helper\SaiHelpers::getNamaBulan($bln); if ($bln=="01") { $bulan_rev=App\Helper\SaiHelpers::getNamaBulan($bln); } else { $bulan_rev=App\Helper\SaiHelpers::getNamaBulan($bln-1); } @endphp
{{ $lokasi }}

LAPORAN SISA HASIL USAHA UNIT

{{ App\Helper\SaiHelpers::getNamaBulan($periode) }}
@if($anggaran[1] == "Original") @elseif($angggaran[1] == "RRA") @else @endif @if($anggaran[1] == "Original") @for($x=0; $x < count($data); $x++) @php $line2 = $data[$x]; $persen1=0;$persen2=0;$persen3=0;$persen4=0; if ($line2['n5']!=0) { $persen1=($line2['n4']/$line2['n5'])*100; } if ($line2['n6']!=0) { $persen2=($line2['n4']/$line2['n6'])*100; } if ($line2['n9']!=0) { $persen3=(($line2['n4']-$line2['n9'])/$line2['n9'])*100; } @endphp @endfor @elseif($anggaran[1] == "RRA") @for($x=0; $x < count($data); $x++) @php $line2 = $data[$x]; $persen1=0;$persen2=0;$persen3=0;$persen4=0; if ($line2['n3']!=0) { $persen1=($line2['n6']/$line2['n3'])*100; } if ($line2['n6']!=0) { $persen2=(($line2['n6'] - $line2['n9'])/$line2['n9'])*100; } if ($line2['n8']!=0) { $persen3=($line2['n4']/$line2['n8'])*100; } if ($line2['n5']!=0) { $persen4=(($line2['n4']-$line2['n5'])/$line2['n5'])*100; } @endphp @endfor @else @for($x=0; $x < count($data); $x++) @php $line2 = $data[$x]; $persen1=0;$persen2=0;$persen3=0;$persen4=0; if ($line2['n12']!=0) { $persen1=($line2['n6']/$line2['n12'])*100; } if ($line2['n6']!=0) { $persen2=(($line2['n6'] - $line2['n9'])/$line2['n9'])*100; } if ($line2['n2']!=0) { $persen3=($line2['n4']/$line2['n2'])*100; } if ($line2['n13']!=0) { $persen4=(($line2['n4']-$line2['n13'])/$line2['n13'])*100; } @endphp @endfor @endif
Keterangan RKA {{ $tahun }} RKA s.d Bulan Berjalan {{ $tahun }} Realisasi s.d Bulan Berjalan {{ $tahun }} Realisasi s.d Bulan Berjalan {{ $tahun_rev }} Realisasi s.d Bulan Berjalan th RKA {{ $tahun }} Realisasi s.d Bulan Berjalan th RKA s.d Bulan Berjalan {{ $tahun }} Growth Thd {{ $tahun_rev }}
  1 2 3 4 5=3/1 6=3/2 7=(3-4)/4
P&L ITEMS (in Rp.Bn) Budget RRA {{ $tahun }} Actual {{ $bulan_rev }} {{ $tahun }} {{ $bulan }} {{ $tahun }} Actual Ytd {{ $bulan }} {{ $tahun_rev }} Ytd {{ $bulan }} {{ $tahun }}
Budget RRA Actual Ach. MoM Growth Budget RRA Actual Ach. YoY Growth
P&L ITEMS (in Rp.Bn) Budget Reset {{ $tahun}} Actual {{ $bulan_rev }} {{ $tahun}} {{ $bulan }} {{ $tahun}} Actual Ytd {{ $bulan }} {{ $tahun_rev}} Ytd {{ $bulan }} {{ $tahun}}
Budget RRA Actual Ach. MoM Growth Budget RRA Actual Ach. YoY Growth
{!! App\Helper\SaiHelpers::fnSpasi($line2['level_spasi'])." ".$line2['nama'] !!} {{ number_format($line2['n5'],0,",",".") }} {{ number_format($line2['n6'],0,",",".") }} {{ number_format($line2['n4'],0,",",".") }} {{ number_format($line2['n9'],0,",",".") }} {{ number_format($persen1,2,",",".") }}% {{ number_format($persen2,2,",",".") }}% {{ number_format($persen3,2,",",".") }}%
{!! App\Helper\SaiHelpers::fnSpasi($line2['level_spasi'])." ".$line2['nama'] !!} {{ number_format($line2['n11'],0,",",".") }} {{ number_format($line2['n9'],0,",",".") }} {{ number_format($line2['n3'],0,",",".") }} {{ number_format($line2['n6'],0,",",".") }} {{ number_format($persen1,2,",",".") }}% {{ number_format($persen2,2,",",".") }}% {{ number_format($line2['n5'],0,",",".") }} {{ number_format($line2['n8'],0,",",".") }} {{ number_format($line2['n4'],0,",",".") }} {{ number_format($persen3,2,",",".") }}% {{ number_format($persen4,2,",",".") }}%
{!! App\Helper\SaiHelpers::fnSpasi($line2['level_spasi'])." ".$line2['nama'] !!} {{ number_format($line2['n14'],0,",",".") }} {{ number_format($line2['n9'],0,",",".") }} {{ number_format($line2['n12'],0,",",".") }} {{ number_format($line2['n6'],0,",",".") }} {{ number_format($persen1,2,",",".") }}% {{ number_format($persen2,2,",",".") }}% {{ number_format($line2['n13'],0,",",".") }} {{ number_format($line2['n2'],0,",",".") }} {{ number_format($line2['n4'],0,",",".") }} {{ number_format($persen3,2,",",".") }}% {{ number_format($persen4,2,",",".") }}%