diff --git a/resources/views/pdf/pdflelongreport.blade.php b/resources/views/pdf/pdflelongreport.blade.php index d928b929..9250c548 100644 --- a/resources/views/pdf/pdflelongreport.blade.php +++ b/resources/views/pdf/pdflelongreport.blade.php @@ -8,22 +8,16 @@ } #sim td { - padding: 3px 5px 3px 5px; + padding: 3px 5px; padding-right: 10px; } - , #sim th { border: 0px solid; padding: 1px; text-align: left; - } - #sim tr:nth-child(even) {} - - #sim tr:hover {} - #sim2 th { text-align: center; border: 0px solid; @@ -36,28 +30,10 @@ box-sizing: border-box; } - .row { - margin-right: -5px; - margin-right: -5px; - } - - .column { - float: right; - width: 100%; - padding: 5px; - } - - /* Clearfix (clear floats) */ - .row::after { - content: ""; - clear: both; - display: table; - } - table { border-collapse: collapse; border-spacing: 0; - width: 200%; + width: 100%; border: 0px solid #ddd; } @@ -71,50 +47,46 @@ padding: 16px; } - tr:nth-child(even) {} - .font { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-size: 12px; } - - -
@foreach ($datacaw as $data) -
+
LAPORAN SIMULASI CAWANGAN: {{ $data['caw_name'] }}
@endforeach @@ -137,130 +108,119 @@
+ @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
+
Tarikh Lelong : + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong']); + echo $myDateTime->format('d-m-Y'); + @endphp +
@endforeach
- - +
- @hasrole('jurulelong') - - - - - @endhasrole + @hasrole('jurulelong') + + + + + @endhasrole - @hasrole('operasi') - - - {{-- --}} - - - - - @if ($laporan['laporan']['tagujrah'] == '0') - - @elseif($laporan['laporan']['tagujrah'] == '1') - - - - @endif - - - {{-- --}} - - @endhasrole + @hasrole('operasi') + + + + + + + @if ($laporan['laporan']['tagujrah'] == '0') + + @elseif($laporan['laporan']['tagujrah'] == '1') + + + + @endif + + + + @endhasrole + - @php - $rugilelong = 0; - $bakilelong = 0; - @endphp + @php $bakilelong = 0; @endphp @foreach ($marhuns as $index => $marhun) - @hasrole('jurulelong') - - - - - @endhasrole - @hasrole('operasi') - - - {{-- --}} - - - - - @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 - {{-- --}} - + + + + @endhasrole + + @hasrole('operasi') + + + + + + + @if ($marhun['tagujrah'] == '0') + + @elseif($marhun['tagujrah'] == '1') + + + @endif - + + + + @php + $baki = $marhun['baki']; + $bakilelong += $baki; + @endphp + @endhasrole @endforeach + - @hasrole('jurulelong') - - - - @endhasrole + @hasrole('jurulelong') + + + + @endhasrole - @hasrole('operasi') + @hasrole('operasi') + + + + - - - - + @if ($marhun['tagujrah'] == '0') + + @elseif($marhun['tagujrah'] == '1') + + + + @endif - @if ($marhun['tagujrah'] == '0') - - @elseif($marhun['tagujrah'] == '1') - - - - @endif - - - + + -
NoNo RujukanBerat (gm)Harga Asas (RM)NoNo RujukanBerat (gm)Harga Asas (RM)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)NoNo RujukanTempohBerat (gm)Nilai Marhun Asal (RM)Pembiayaan (RM)Keuntungan (RM)Keuntungan (RM)1% (RM)Lain-Lain Caj (RM)Caj Lelong (RM)Harga Asas (RM)Baki Lelong (RM)
{{ $loop->iteration }}{{ $marhun['norujukan'] }}{{ number_format($marhun['berat'], 2, '.', ',') }}{{ number_format($marhun['hargaasas'], 2, '.', ',') }}{{ $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, '.', ',') }}) + @hasrole('jurulelong') + {{ $loop->iteration }}{{ $marhun['norujukan'] }}{{ number_format($marhun['berat'], 2, '.', ',') }}{{ number_format($marhun['hargaasas'], 2, '.', ',') }}{{ $loop->iteration }}{{ $marhun['norujukan'] }}{{ 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, '.', ',') }} + @if ($baki > 0) + {{ number_format($baki, 2, '.', ',') }} + @elseif($baki < 0) + ({{ number_format(-$baki, 2, '.', ',') }}) + @endif +
JUMLAH KESELURUHAN{{ number_format($total_berat, 2, '.', ',') }}{{ number_format($total_hargaasas, 2, '.', ',') }}JUMLAH KESELURUHAN{{ number_format($total_berat, 2, '.', ',') }}{{ number_format($total_hargaasas, 2, '.', ',') }}JUMLAH KESELURUHAN{{ number_format($total_berat, 2, '.', ',') }}{{ number_format($total_nilaimarhun, 2, '.', ',') }}{{ number_format($total_pinjaman, 2, '.', ',') }}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_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, '.', ',') }} + {{ number_format($total_cazlelong, 2, '.', ',') }}{{ number_format($total_hargaasas, 2, '.', ',') }} @if ($bakilelong > 0) {{ number_format($bakilelong, 2, '.', ',') }} @else @@ -270,6 +230,15 @@ @endhasrole
+ +