@php function fnSpasi($level) { $tmp=""; for ($f=1; $f<=$level; $f++) { $tmp.="    "; } return $tmp; } @endphp
LAPORAN LABA RUGI ANGGARAN
{{ $lokasi }}
Periode {{ $periode }}
@for ($i=0; $i < count($data) ; $i++) @php $line = $data[$i]; $persen1=0;$persen2=0;$persen3=0; if ($line['n1']!=0) { $persen1=($line['n4']/$line['n1'])*100; } if ($line['n2']!=0) { $persen2=($line['n4']/$line['n2'])*100; } if ($line['n5']!=0) { $persen3=($line['n4']-$line['n5'])/$line['n5']*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['n1'],0,",",".") }} {{ number_format($line['n2'],0,",",".") }} {{ number_format($line['n4'],0,",",".") }} {{ number_format($line['n5'],0,",",".") }}{{ number_format($line['n1'],0,",",".") }}% {{ number_format($line['n2'],0,",",".") }}% {{ number_format($line['n4'],0,",",".") }}% {{ number_format($line['n5'],0,",",".") }}%{{ number_format($persen1,0,",",".") }}% {{ number_format($persen2,0,",",".") }}% {{ number_format($persen3,0,",",".") }}%