@php function fnSpasi($level) { $tmp=""; for ($f=1; $f<=$level; $f++) { $tmp.="    "; } return $tmp; } @endphp
LAPORAN LABA RUGI ANGGARAN DIREKTORAT
{{ $nama_bidang }}
{{ $lokasi }}
Periode {{ $periode }}
@for ($j=0; $j < count($data) ; $j++) @php $line = $data[$j]; $persen1=0;$persen2=0;$persen3=0; if ($line['n3']!=0) { $persen1=($line['n1']/$line['n3'])*100; } if ($line['n4']!=0) { $persen2=($line['n1']/$line['n4'])*100; } if ($line['n2']!=0) { $persen3=($line['n1']-$line['n2'])/$line['n2']*100; } @endphp @if ($line['kode_neraca'] != "OR" && $line['kode_fs'] == "FS4") @else @endif @endfor
Keterangan RKA {{ $tahun }} RKA s.d Bulan Berjalan {{ $tahun }} Realisasi s.d Bulan Berjalan {{ $tahun }} Realisasi s.d Bulan Berjalan {{ $tahunrev }} Realisasi s.d Bulan Berjalan thd RKA {{ $tahun }} Realisasi s.d Bulan Berjalan thd RKA s.d Bulan Berjalan {{ $tahun }} Growth Thd {{ $tahunrev}}
  1 2 3 4 5=3/1 6=3/2 7=(3-4)/4
{!! fnSpasi($line['level_spasi']) !!} {{ $line['nama'] }}{{ number_format($line['n3'],0,",",".") }} {{ number_format($line['n4'],0,",",".") }} {{ number_format($line['n1'],0,",",".") }} {{ number_format($line['n2'],0,",",".") }}{{ number_format($line['n3'],0,",",".") }}% {{ number_format($line['n4'],0,",",".") }}% {{ number_format($line['n1'],0,",",".") }}% {{ number_format($line['n2'],0,",",".") }}%{{ number_format($persen1,0,",",".") }}% {{ number_format($persen2,0,",",".") }}% {{ number_format($persen3,0,",",".") }}%