@if($line2['kode_beban1'] == "A")
{{ $line2['kode_beban1'] }} |
|
{{ $line2['nama'] }} |
|
|
|
|
|
@else
{{ $line2['kode_beban1'] }} |
|
{{ $line2['nama'] }} |
|
|
|
|
|
|
|
@endif
@for($k=0; $k < count($line2['master']); $k++)
@php $line3 = $line2['master'][$k];
if($line2['kode_beban1'] == "B"){
$total+= floatval($line3['total']);
$ppn+= floatval($line3['ppn']);
$panjar+= floatval($line3['panjar']);
}else{
$total_pdpt+= floatval($line3['total']);
}
@endphp
@if($line2['kode_beban1'] == "A")
{{ $line3['kode_beban2'] }} |
|
{{ $line3['nama'] }} |
|
|
|
{{ number_format($line3['total'],0,",",".") }} |
|
@else
{{ $line3['kode_beban2'] }} |
|
{{ $line3['nama'] }} |
|
|
|
{{ number_format($line3['total'],0,",",".") }} |
{{ number_format($line3['ppn'],0,",",".") }} |
{{ number_format($line3['panjar'],0,",",".") }} |
|
@endif
@for($l=0; $l < count($line3['detail']); $l++)
@php $line4 = $line3['detail'][$l]; @endphp
@if($line2['kode_beban1'] == "A")
|
{{ ($l+1) }} |
{{ $line4['nama'] }} |
{{ $line4['satuan'] }} |
{{ number_format($line4['vol'],0,",",".") }} |
{{ number_format($line4['harga'],0,",",".") }} |
{{ number_format($line4['total'],0,",",".") }} |
{{ $line4['spesifikasi'] }} |
@else
|
{{ ($l+1) }} |
{{ $line4['nama'] }} |
{{ $line4['satuan'] }} |
{{ number_format($line4['vol'],0,",",".") }} |
{{ number_format($line4['vol2'],0,",",".") }} |
{{ number_format($line4['harga'],0,",",".") }} |
{{ number_format($line4['total'],0,",",".") }} |
{{ number_format($line4['ppn'],0,",",".") }} |
{{ number_format($line4['panjar'],0,",",".") }} |
{{ $line4['spesifikasi'] }} |
@endif
@endfor
@endfor
@php
$profit = $total_pdpt - $total;
$or = $total_pdpt != 0 ? ($total/$total_pdpt)*100 : 0;
$status = ( $or >= 90 ? "NOT RECOMENDED" : ($or >= 80 ? "WARNING" : ($or > 70 ? "FAIR" : ($or > 60 ? "GOOD" : "VERY GOOD"))));
@endphp
@if($line2['kode_beban1'] == "B")
|
|
TOTAL KOMPONEN BIAYA |
{{ number_format($total,0,",",".") }} |
{{ number_format($ppn,0,",",".") }} |
{{ number_format($panjar,0,",",".") }} |
|
|
|
PROFIT |
{{ number_format($profit,0,",",".") }} |
|
|
|
|
|
OR |
{{ number_format($or,2,",",".") }}% |
|
|
|
|
|
STATUS |
{{ $status }} |
|
|
|
|
|
TOTAL BIAYA YANG DI PANJAR |
|
|
{{ number_format($panjar) }} |
|
@endif