diff --git a/resources/views/reports/penebusan/index.blade.php b/resources/views/reports/penebusan/index.blade.php index 6778f56..bf3af46 100644 --- a/resources/views/reports/penebusan/index.blade.php +++ b/resources/views/reports/penebusan/index.blade.php @@ -106,8 +106,30 @@ + @php + $totalbiltebus = 0; + $totalberat = 0; + $totalnm = 0; + $totalpinjaman = 0; + $totalbakipinjaman = 0; + $totalkeuntunganasal = 0; + $totalkeuntunganrebet = 0; + $totalbayaran = 0; + + @endphp
@forelse ($penebusan as $tebus) + @php + $totalbiltebus += $tebus['bilangan_tebus']; + $totalberat += $tebus['berat']; + $totalnm += $tebus['nilai_marhun']; + $totalpinjaman += $tebus['nilai_pinjaman']; + $totalbakipinjaman += $tebus['baki_pinjaman']; + $totalkeuntunganasal += $tebus['keuntungan_asal']; + $totalkeuntunganrebet += $tebus['keuntungan_rebet']; + $totalbayaran += $tebus['bayaran_penebusan']; + + @endphp+ {{ number_format($tebus['nilai_marhun'], 2) }}
+- {{ number_format($tebus['nilai_marhun'], 2) }}
-Jumlah Keseluruhan
++ {{ number_format($totalbiltebus,0) }}
++ {{ number_format($totalberat,2) }}
++ {{ number_format($totalnm,2) }}
++ {{ number_format($totalpinjaman,2) }}
++ {{ number_format($totalbakipinjaman,2) }}
++ {{ number_format($totalkeuntunganasal,2) }}
++ {{ number_format($totalkeuntunganrebet,2) }}
++ {{ number_format($totalbayaran,2) }}
++
+