@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
{!! 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,",",".") }}% |
@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
{!! 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,",",".") }}% |
@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
{!! 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,",",".") }}% |
@endfor
@endif