diff --git a/resources/views/pdf/pdflelongreport.blade.php b/resources/views/pdf/pdflelongreport.blade.php index cdc112dd..02c2a48c 100644 --- a/resources/views/pdf/pdflelongreport.blade.php +++ b/resources/views/pdf/pdflelongreport.blade.php @@ -1,84 +1,85 @@ - - - + + +
-| No | -No Rujukan | - {{--Nama Pelanggan | --}} -Tempoh | -Berat (gm) | -Nilai Marhun Asal (RM) | -Pembiayaan (RM) | - @if($laporan['laporan']['tagujrah'] == '0') -Keuntungan (RM) | - @elseif($laporan['laporan']['tagujrah'] == '1') -Keuntungan (RM) | -1% (RM) | -Lain-Lain Caj (RM) | - @endif -Caj Lelong (RM) | -Harga Asas (RM) | - {{--Rugi Lelong (RM) | --}} -Baki Lelong (RM) | -|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$loop->iteration}} | -{{ $marhun['norujukan']}} | - {{--{{ $marhun['nama']}} | --}} -{{ number_format($marhun['jbg'], 2, '.', ',') }} | -{{ number_format($marhun['berat'], 2, '.', ',') }} | -{{ number_format($marhun['nilaimarhun'], 2, '.', ',') }} | -{{ number_format($marhun['pinjaman'], 2, '.', ',') }} | - @if($marhun['tagujrah'] == '0') -{{ number_format($marhun['bakiupah'], 2, '.', ',') }} | - @elseif($marhun['tagujrah'] == '1') -{{ number_format($marhun['bakiupah'], 2, '.', ',') }} | -{{ number_format($marhun['onepercent'], 2, '.', ',') }} | -{{ number_format($marhun['ujrah'], 2, '.', ',') }} | - @endif -{{ number_format($marhun['cajlelong'], 2, '.', ',') }} | -{{ number_format($marhun['hargaasas'], 2, '.', ',') }} | - @php - $rugi = 0; - $baki = 0; - if(strpos($marhun['baki'], '-') !== false) - { - $baki = -$marhun['baki']; - $bakilelong += $marhun['baki']; - } - else { - $baki = $marhun['baki']; - $bakilelong += $marhun['baki']; - } - @endphp - {{--{{number_format($rugi, 2, '.', ',')}} | --}} -@if($marhun['baki'] > 0) - {{number_format($marhun['baki'], 2, '.', ',')}} - @elseif($marhun['baki'] < 0 ) - ({{number_format(-($marhun['baki']), 2, '.', ',')}}) - @endif - | + + @foreach ($arrayinfo as $laporan) +Fasa Lelong: {{ $laporan['laporan']['fasa']}} | --}} +
| JUMLAH KESELURUHAN | -{{ number_format($total_berat, 2, '.', ',') }} | -{{ number_format($total_nilaimarhun, 2, '.', ',') }} | -{{ number_format($total_pinjaman, 2, '.', ',') }} | - - @if($marhun['tagujrah'] == '0') -{{ number_format($total_bakiupah, 2, '.', ',') }} | - @elseif($marhun['tagujrah'] == '1') -{{ number_format($total_bakiupah, 2, '.', ',') }} | -{{ number_format($total_onepercent, 2, '.', ',') }} | -{{ number_format($total_ujrah, 2, '.', ',') }} | - @endif -{{ number_format($total_cazlelong, 2, '.', ',') }} | -{{ number_format($total_hargaasas, 2, '.', ',') }} | -@if($bakilelong > 0) - {{ number_format($bakilelong, 2, '.', ',') }} - @else - ({{number_format(-($bakilelong), 2, '.', ',')}}) - @endif | -|||||
| No | +No Rujukan | + {{--Nama Pelanggan | --}} +Tempoh | +Berat (gm) | +Nilai Marhun Asal (RM) | +Pembiayaan (RM) | + @if ($laporan['laporan']['tagujrah'] == '0') +Keuntungan (RM) | + @elseif($laporan['laporan']['tagujrah'] == '1') +Keuntungan (RM) | +1% (RM) | +Lain-Lain Caj (RM) | + @endif +Caj Lelong (RM) | +Harga Asas (RM) | + {{--Rugi Lelong (RM) | --}} +Baki Lelong (RM) | +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | +{{ $marhun['norujukan'] }} | + {{--{{ $marhun['nama']}} | --}} +{{ number_format($marhun['jbg'], 2, '.', ',') }} | +{{ number_format($marhun['berat'], 2, '.', ',') }} | +{{ number_format($marhun['nilaimarhun'], 2, '.', ',') }} | +{{ number_format($marhun['pinjaman'], 2, '.', ',') }} | + @if ($marhun['tagujrah'] == '0') +{{ number_format($marhun['bakiupah'], 2, '.', ',') }} | + @elseif($marhun['tagujrah'] == '1') +{{ number_format($marhun['bakiupah'], 2, '.', ',') }} | +{{ number_format($marhun['onepercent'], 2, '.', ',') }} | +{{ number_format($marhun['ujrah'], 2, '.', ',') }} | + @endif +{{ number_format($marhun['cajlelong'], 2, '.', ',') }} | +{{ number_format($marhun['hargaasas'], 2, '.', ',') }} | + @php + $rugi = 0; + $baki = 0; + if (strpos($marhun['baki'], '-') !== false) { + $baki = -$marhun['baki']; + $bakilelong += $marhun['baki']; + } else { + $baki = $marhun['baki']; + $bakilelong += $marhun['baki']; + } + @endphp + {{--{{number_format($rugi, 2, '.', ',')}} | --}} ++ @if ($marhun['baki'] > 0) + {{ number_format($marhun['baki'], 2, '.', ',') }} + @elseif($marhun['baki'] < 0) + ({{ number_format(-$marhun['baki'], 2, '.', ',') }}) + @endif + | + + + +
| JUMLAH KESELURUHAN | +{{ number_format($total_berat, 2, '.', ',') }} | +{{ number_format($total_nilaimarhun, 2, '.', ',') }} | +{{ number_format($total_pinjaman, 2, '.', ',') }} | + + @if ($marhun['tagujrah'] == '0') +{{ number_format($total_bakiupah, 2, '.', ',') }} | + @elseif($marhun['tagujrah'] == '1') +{{ number_format($total_bakiupah, 2, '.', ',') }} | +{{ number_format($total_onepercent, 2, '.', ',') }} | +{{ number_format($total_ujrah, 2, '.', ',') }} | + @endif +{{ number_format($total_cazlelong, 2, '.', ',') }} | +{{ number_format($total_hargaasas, 2, '.', ',') }} | ++ @if ($bakilelong > 0) + {{ number_format($bakilelong, 2, '.', ',') }} + @else + ({{ number_format(-$bakilelong, 2, '.', ',') }}) + @endif + | +||||