From c093a98ccf1a3f75e80de09cb8e70e943c1a2056 Mon Sep 17 00:00:00 2001 From: nurafrinaalimi16 Date: Thu, 23 Jan 2025 11:11:13 +0800 Subject: [PATCH] format document pdflelongreport --- resources/views/pdf/pdflelongreport.blade.php | 400 +++++++++--------- 1 file changed, 202 insertions(+), 198 deletions(-) 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 @@ - - - + + + -
- @foreach($datacaw as $data) -
LAPORAN SIMULASI CAWANGAN: {{$data['caw_name']}}
- @endforeach +
+ @foreach ($datacaw as $data) +
+
LAPORAN SIMULASI CAWANGAN: {{ $data['caw_name'] }}
+
+ @endforeach
- -
-
-
- @foreach ($arrayinfo as $laporan) -
Batch Lelong: {{ $laporan['laporan']['lelong_id']}}
- {{-- Fasa Lelong: {{ $laporan['laporan']['fasa']}} --}} -
Tarikh Lelong : @php - $myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] ); - $datez = $myDateTime->format('d-m-Y'); - echo($datez); - @endphp
- - @endforeach -
- - - - - - - - {{-- --}} - - - - - @if($laporan['laporan']['tagujrah'] == '0') - - @elseif($laporan['laporan']['tagujrah'] == '1') - - - - @endif - - - {{-- --}} - - - - - @php - $rugilelong = 0; - $bakilelong = 0; - @endphp - @foreach ($marhuns as $index=> $marhun) - - - - {{-- --}} - - - - - @if($marhun['tagujrah'] == '0') - - @elseif($marhun['tagujrah'] == '1') - - - - @endif - - - @php - $rugi = 0; - $baki = 0; - if(strpos($marhun['baki'], '-') !== false) - { - $baki = -$marhun['baki']; - $bakilelong += $marhun['baki']; - } - else { - $baki = $marhun['baki']; - $bakilelong += $marhun['baki']; - } - @endphp - {{-- --}} - +
+
+
+ @foreach ($arrayinfo as $laporan) +
Batch Lelong: {{ $laporan['laporan']['lelong_id'] }}
+ {{-- --}} +
Tarikh Lelong : @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong']); + $datez = $myDateTime->format('d-m-Y'); + echo $datez; + @endphp
+ @endforeach - +
- - @endforeach - - - - - - - - - @if($marhun['tagujrah'] == '0') - - @elseif($marhun['tagujrah'] == '1') - - - - @endif - - - - - - -
NoNo RujukanNama PelangganTempohBerat (gm)Nilai Marhun Asal (RM)Pembiayaan (RM)Keuntungan (RM)Keuntungan (RM)1% (RM)Lain-Lain Caj (RM)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, '.', ',') }}{{ number_format($marhun['bakiupah'], 2, '.', ',') }}{{ number_format($marhun['bakiupah'], 2, '.', ',') }}{{ number_format($marhun['onepercent'], 2, '.', ',') }}{{ number_format($marhun['ujrah'], 2, '.', ',') }}{{ number_format($marhun['cajlelong'], 2, '.', ',') }}{{ number_format($marhun['hargaasas'], 2, '.', ',') }}{{number_format($rugi, 2, '.', ',')}}@if($marhun['baki'] > 0) - {{number_format($marhun['baki'], 2, '.', ',')}} - @elseif($marhun['baki'] < 0 ) - ({{number_format(-($marhun['baki']), 2, '.', ',')}}) - @endif - Fasa Lelong: {{ $laporan['laporan']['fasa']}}
JUMLAH KESELURUHAN{{ number_format($total_berat, 2, '.', ',') }}{{ number_format($total_nilaimarhun, 2, '.', ',') }}{{ number_format($total_pinjaman, 2, '.', ',') }}{{ number_format($total_bakiupah, 2, '.', ',') }}{{ number_format($total_bakiupah, 2, '.', ',') }}{{ number_format($total_onepercent, 2, '.', ',') }}{{ number_format($total_ujrah, 2, '.', ',') }}{{ number_format($total_cazlelong, 2, '.', ',') }}{{ number_format($total_hargaasas, 2, '.', ',') }}@if($bakilelong > 0) - {{ number_format($bakilelong, 2, '.', ',') }} - @else - ({{number_format(-($bakilelong), 2, '.', ',')}}) - @endif
- + + + + + + {{-- --}} + + + + + @if ($laporan['laporan']['tagujrah'] == '0') + + @elseif($laporan['laporan']['tagujrah'] == '1') + + + + @endif + + + {{-- --}} + + + + + @php + $rugilelong = 0; + $bakilelong = 0; + @endphp + @foreach ($marhuns as $index => $marhun) + + + + {{-- --}} + + + + + @if ($marhun['tagujrah'] == '0') + + @elseif($marhun['tagujrah'] == '1') + + + + @endif + + + @php + $rugi = 0; + $baki = 0; + if (strpos($marhun['baki'], '-') !== false) { + $baki = -$marhun['baki']; + $bakilelong += $marhun['baki']; + } else { + $baki = $marhun['baki']; + $bakilelong += $marhun['baki']; + } + @endphp + {{-- --}} + + + + + + @endforeach + + + + + + + + + @if ($marhun['tagujrah'] == '0') + + @elseif($marhun['tagujrah'] == '1') + + + + @endif + + + + + + +
NoNo RujukanNama PelangganTempohBerat (gm)Nilai Marhun Asal (RM)Pembiayaan (RM)Keuntungan (RM)Keuntungan (RM)1% (RM)Lain-Lain Caj (RM)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, '.', ',') }}{{ number_format($marhun['bakiupah'], 2, '.', ',') }}{{ number_format($marhun['bakiupah'], 2, '.', ',') }}{{ number_format($marhun['onepercent'], 2, '.', ',') }}{{ number_format($marhun['ujrah'], 2, '.', ',') }}{{ number_format($marhun['cajlelong'], 2, '.', ',') }}{{ number_format($marhun['hargaasas'], 2, '.', ',') }}{{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, '.', ',') }}{{ number_format($total_bakiupah, 2, '.', ',') }}{{ number_format($total_bakiupah, 2, '.', ',') }}{{ number_format($total_onepercent, 2, '.', ',') }}{{ number_format($total_ujrah, 2, '.', ',') }}{{ number_format($total_cazlelong, 2, '.', ',') }}{{ number_format($total_hargaasas, 2, '.', ',') }} + @if ($bakilelong > 0) + {{ number_format($bakilelong, 2, '.', ',') }} + @else + ({{ number_format(-$bakilelong, 2, '.', ',') }}) + @endif +
+